OpenSprinkler › Forums › Hardware Questions › OpenSprinkler › OSPI – UI not coming up after update
- This topic has 11 replies, 4 voices, and was last updated 6 years, 6 months ago by Ray.
-
AuthorPosts
-
July 23, 2018 at 2:45 pm #51300
SebastianParticipantI did a firmware update by executing as pi user:
git pull
./build.sh ospithen rebooted the OS and the UI is not coming up.
I see the “OpenSprinkler” process running as root but when I go to port 8080 I get the connection refused.
Is there a log file that I can check to see what happens?
Thanks.
July 23, 2018 at 3:10 pm #51303
SebastianParticipantI did some more testing:
$ git checkout 2.1.8
Branch 2.1.8 set up to track remote branch 2.1.8 from origin.
Switched to a new branch ‘2.1.8’
$ sudo ./build.sh ospi
Building OpenSprinkler…
gpio.cpp: In function ‘void attachInterrupt(int, const char*, void (*)())’:
gpio.cpp:411:14: error: ‘delay’ was not declared in this scope
Done!
The binary was not updated.$ git checkout 2.1.7
Branch 2.1.7 set up to track remote branch 2.1.7 from origin.
Switched to a new branch ‘2.1.7’
$ sudo ./build.sh ospi
Building OpenSprinkler…
Done!
$ sudo /etc/init.d/OpenSprinkler.sh restartChecked the UI and it works.
$ git checkout master
Switched to branch ‘master’
$ sudo ./build.sh ospi
Building OpenSprinkler…
Done!
$ sudo /etc/init.d/OpenSprinkler.sh restartChecked the UI and it does NOT work.
July 23, 2018 at 3:12 pm #51304
SebastianParticipantAbout page lists:
App Version: 1.7.9
Firmware: 2.1.7
Hardware Version: OSPi – ACJuly 24, 2018 at 10:00 am #51317
RayKeymasterfirst of all, apologies for the confusion about branch 2.1.8: any branch named 2.1.8 or 2.1.7 is development branch, we should have deleted them, you should only check out from the master branch, or download the Release file. We only have release tags 218, 217 etc., the branches 2.1.8, 2.1.7 etc should have been deleted.
Second, I just checked out a from master, compiled and run it on my RPi, it works fine, I don’t see UI hanging issue. My about page shows:
App Version 1.8.0
Firmware 2.1.8(1)I would suggest that you try to use a private browsing window or clear browser cache, to avoid any browser cache issue. If that still isn’t working, delete your firmware folder and re-install firmware to see if that works.
July 24, 2018 at 10:20 am #51326
SamerKeymaster@Sebastian I would suggest performing the following steps:
git checkout master git pull sudo ./build.sh ospi sudo /etc/init.d/OpenSprinkler.sh restart
See if that helps your issue. A restart after the following steps if the issue persist might help.
Let us know what you find.
Thanks!
July 24, 2018 at 11:14 am #51330
SebastianParticipantI just did what Samer recommended, same outcome:
My major concern is that “netstat -an” doesn’t even list as listening on port 8080.
With the latest version I get:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
even though I do see the process running:
pi@ospi ~/OpenSprinklerGen2 $ ps aux | grep Open
root 7127 2.0 0.2 11568 2020 ? Sl 12:08 0:03 /home/pi/OpenSprinklerGen2/OpenSprinklerwith 2.1.7 I get:
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
I even did:
sudo rm -rf OpenSprinklerGen2 git clone https://github.com/OpenSprinkler/OpenSprinklerGen2.git cd OpenSprinklerGen2/ sudo ./build.sh ospi sudo /etc/init.d/OpenSprinkler.sh restart
same outcome. The process is NOT listening to port 8080.
July 24, 2018 at 11:33 am #51333
RayKeymasterOpenSprinklerGen2.git??? that’s not where the firmware is. The correct firmware is at:
https://github.com/OpenSprinkler/OpenSprinkler-FirmwareMaybe try rebooting your RPi. Also, I assume you have a fairly recent Raspbian, otherwise the issue could be due to IPv6 binding. In any case, I tried on two of my RPis and both work fine, so I can’t reproduce the issue.
July 24, 2018 at 12:21 pm #51340
RayKeymasterBy the way, I don’t think you should solely rely on netstat — I tried on a third RPi: RPi 0 WiFi, port 8080 doesn’t show up in netstat and still I can access its web interface at :8080
July 24, 2018 at 2:32 pm #51350
bolParticipantJuly 24, 2018 at 2:41 pm #51351
RayKeymasterIf your firmware folder is named OpenSprinklerGen2.git, chances are you started from the pre-configured SD card image, which was from more than 3 years ago, and as was discussed in various other threads, is not compatible with the latest firmware anymore due to IPv6 support. What you need to do is to install the latest Raspbian, and follow instructions here:
https://openthings.freshdesk.com/solution/articles/5000631599-installing-and-updating-the-unified-firmware
to install firmware.
@bol: you said “This is the link”, without giving a link. If you can post the link, we will fix outdated information.If you want to revert back to firmware 2.1.7, you can follow instructions here:
https://opensprinkler.com/forums/topic/opensprinkler-unified-firmware-compilation-error/#post-50250
But next time you update you will encounter the same problem. So it’s better to update your Raspbian now than to wait later.July 24, 2018 at 2:49 pm #51354July 24, 2018 at 6:43 pm #51366
RayKeymasterOK, good catch. I’ve updated that page. Turns out it didn’t matter as OpenSprinkleGen2.git is aliased to OpenSprinkler-Firmware. So that’s not the issue turns out.
What caught my attention is this post:
https://opensprinkler.com/forums/topic/after-update-no-access-via-opensprinkler/#post-51356
it might have to do with the app version. Are you using the OpenSprinkler mobile app to access it, or direct web (by using IP address)? -
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › Hardware Questions › OpenSprinkler › OSPI – UI not coming up after update