Connecting to webpage #30
|
Hi there, I'm trying to set up Garage Zero on my Pi Zero W and I am having issues connecting to the webpage, I can ping the Pi and SSH into it but I get an "ERR_CONNECTION_REFUSED" when trying to access it through a web browser using 192.168.1.142:9001. I did the automatic software install and everything worked fine, any ideas as to what may be causing this? |
Replies: 4 comments 10 replies
|
What version of the OS are you running on your Pi Zero W? There might have been some errors during the install that zipped past without seeing them. Since even the supervisor is not responding, that would indicate to me that something didn't quite go right. Before we try to re-install, let me know what OS you are using and we can make sure it's expected to work. |
|
Probably Raspberry Pi OS Bullseye then. Frankly, it should work just fine, but we can try to repair the install by running some of the commands again. sudo apt install python3-dev python3-pip python3-rpi.gpio nginx git gunicorn3 supervisor -yLet me know if you see any errors with this or if the anything appears to actually get installed. Also, if you could send me the result of the 'pip list' command: pip listIf Flask is not in the list you just printed out, you may have to run the |
|
OK, looks like supervisor is not running. Also, please confirm you have a /home/pi/garage-zero folder, just for my sanity. Double check supervisor is installed: sudo apt install supervisorThen if installed: sudo service supervisor start Then let me know what you see. |
This is a hint. Something happened with the git clone then, and this is why nothing is running properly. OK, for fun, let's try the following command and see if it works: cd ~
git clone https://github.com/nebhead/garage-zeroBTW, is your username 'pi'? For this version of garage-zero, it relies on the base username 'pi' and only works if using that directory. |


I think we cracked the case!
So, the solution here would be to re-flash the OS and setup with the user 'pi' instead.
BTW - There is a newer version of the garage-zero software here: https://github.com/nebhead/garage-zero-v2 which does not use the pi user (if that's a problem for you) and installs to a globally accessible directory.