OpenSprinkler Forums Hardware Questions OpenSprinkler OSPI – UI not coming up after update

  • This topic has 11 replies, 4 voices, and was last updated 3 years ago by Ray.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #51300

    Sebastian
    Participant

    I did a firmware update by executing as pi user:

    git pull
    ./build.sh ospi

    then 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.

    #51303

    Sebastian
    Participant

    I 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 restart

    Checked 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 restart

    Checked the UI and it does NOT work.

    #51304

    Sebastian
    Participant

    About page lists:

    App Version: 1.7.9
    Firmware: 2.1.7
    Hardware Version: OSPi – AC

    #51317

    Ray
    Keymaster

    first 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.

    #51326

    Samer
    Keymaster

    @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!

    #51330

    Sebastian
    Participant

    I 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:

    [email protected] ~/OpenSprinklerGen2 $ ps aux | grep Open
    root 7127 2.0 0.2 11568 2020 ? Sl 12:08 0:03 /home/pi/OpenSprinklerGen2/OpenSprinkler

    with 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.

    #51333

    Ray
    Keymaster

    OpenSprinklerGen2.git??? that’s not where the firmware is. The correct firmware is at:
    https://github.com/OpenSprinkler/OpenSprinkler-Firmware

    Maybe 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.

    #51340

    Ray
    Keymaster

    By 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

    #51350

    bol
    Participant

    This is the link with install instruction
    and is write OpenSprinklerGen2.git…

    By the way no solution at the moment…

    How to revert back to 2.1.7?

    #51351

    Ray
    Keymaster

    If 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.

    #51354

    bol
    Participant

    Here

    Link

    #51366

    Ray
    Keymaster

    OK, 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)?

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler OSPI – UI not coming up after update