diff --git a/dockerfiles/start.sh b/dockerfiles/start.sh index 8158b0c6..2129eb35 100755 --- a/dockerfiles/start.sh +++ b/dockerfiles/start.sh @@ -92,6 +92,9 @@ else fi fi +# Create an empty execution_queue.log file +echo '' > $INSTALL_DIR/pialert/front/log/execution_queue.log + # Fixing file permissions echo "[INSTALL] Fixing file permissions" @@ -140,7 +143,7 @@ fi # Activate the virtual python environment source myenv/bin/activate -echo "[INSTALL] 🟢 Starting app - navigate to your :20211 (or custom port)" +echo "[INSTALL] 🚀 Starting app - navigate to your :$LISTEN_ADDR " # Start the PiAlert python script python $INSTALL_DIR/pialert/pialert/ diff --git a/docs/WEB_UI_PORT_DEBUG.md b/docs/WEB_UI_PORT_DEBUG.md new file mode 100755 index 00000000..be598c32 --- /dev/null +++ b/docs/WEB_UI_PORT_DEBUG.md @@ -0,0 +1,12 @@ +# Debugging inaccessible UI + +When opening an issue please : + +1. Include a screenshot of what you see when accessing `HTTP:///20211` (or your custom port) +1. [Follow steps 1, 2, 3, 4 on this page](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/DEBUG_TIPS.md) +1. Execute the following in the container to see the processes and their ports and submit a screenshot of the result: + 1. `sudo apt-get install lsof` + 1. `sudo lsof -i` + + +![lsof ports](/docs/img/WEB_UI_PORT_DEBUG/container_port.png) \ No newline at end of file diff --git a/docs/img/WEB_UI_PORT_DEBUG/container_port.png b/docs/img/WEB_UI_PORT_DEBUG/container_port.png new file mode 100755 index 00000000..38403927 Binary files /dev/null and b/docs/img/WEB_UI_PORT_DEBUG/container_port.png differ diff --git a/install/install.sh b/install/install.sh index ea08e9f3..ade64de9 100755 --- a/install/install.sh +++ b/install/install.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +# 🛑 Important: This is only used for the bare-metal install 🛑 +# Update /dockerfiles/start.sh in most cases is preferred + echo "---------------------------------------------------------" echo "[INSTALL] Run install.sh" echo "---------------------------------------------------------"