Page 1 of 4

Need help with webapp update

PostPosted: Sat Jan 30, 2016 12:54 pm
by s2928
How does the "Update Available" feature in the web app work?

I cannot get the software to update by following the prompts.

I am wondering if i am doing something wrong.

Here's what i have...

When i log on to the keypad screen, i see a notification / link that there is an "Update Available!"

Screen Shot 2016-01-30 at 10.20.13 AM.png
keypad screenshot, note "Update Available!" at top of screen
Screen Shot 2016-01-30 at 10.20.13 AM.png (146.36 KiB) Viewed 10094 times


When i follow the link i come to the "update screen" below...

Screen Shot 2016-01-30 at 10.24.50 AM.png
update screenshot, note "update" button at lower right
Screen Shot 2016-01-30 at 10.24.50 AM.png (60.73 KiB) Viewed 10094 times


When i click the "update" button, the screen refreshes, and there is a red "X" next to the "update" button.

What's even weirder, is that the cursor appears in the middle of the update button, and i can edit the text in the button. see below...

Screen Shot 2016-01-30 at 10.27.40 AM.png
after pressing the update button, there is a red X next to the "update" button
Screen Shot 2016-01-30 at 10.27.40 AM.png (80.17 KiB) Viewed 10094 times

Re: Need help with webapp update

PostPosted: Sat Jan 30, 2016 8:55 pm
by kevin
Have you modified any of the source files that are linked to the git repository? Can you ssh in and go to your web application location and do a "git status" and see what the problem might be?

Re: Need help with webapp update

PostPosted: Sun Jan 31, 2016 5:15 am
by s2928
Not to my knowledge but I will ssh and see. Will post what I find.

Thank you for the suggestion.

Re: Need help with webapp update

PostPosted: Tue Feb 02, 2016 5:42 pm
by scut77
Hi there,

I have the same exact issue here as above.

Please help. Nothing was changed since installation.

Thanks

Re: Need help with webapp update

PostPosted: Tue Feb 02, 2016 8:03 pm
by kevin
ssh to the pi
go to the webapp installation directory - on our default image this would be in /opt/alarmdecoder-webapp (cd /opt/alarmdecoder-webapp)
then you need to check and make sure your git status is good (git status)
then from the command line you can do this: git pull origin master to force a download of the components if git status returns ok - then make sure to restart gunicorn (sudo /etc/init.d/gunicorn restart) and you should be up to date with the code branch.

Re: Need help with webapp update

PostPosted: Sun Feb 28, 2016 6:35 pm
by s2928
Finally got around to following your instructions, and it worked for me. thank you.

just to clarify for others, here's what i did (which is exactly as you instructed)...

1. ssh to the pi from my mac... ssh pi@nameofpi
2. go to the webapp installation directory... cd /opt/alarmdecoder-webapp
3. check and make sure git status is good... git status
4. from the command line you can do this: git pull origin master
to force a download of the components if git status returns ok -
5. restart gunicorn... sudo /etc/init.d/gunicorn restart)

Re: Need help with webapp update

PostPosted: Mon Feb 29, 2016 11:20 am
by Scott
Thanks for the follow up! Did you notice anything strange with 'git status'?

Re: Need help with webapp update

PostPosted: Thu Mar 03, 2016 2:03 pm
by wilsonb
This worked for me.. FYI it might take a while for webserver to become available. Mine took 3-5minutes after logging in SSH.

Re: Need help with webapp update

PostPosted: Mon Mar 07, 2016 5:54 am
by pyrodex
I just updated to the GIT commit of ebe4fbe11cf1e4d7d6e6536faf35025a3d75105d via the webapp since it said there was an update available as the app stated. After doing all the proper updates and restarts per the process the application is running but the keypad is now stuck at "Please Wait Loading..." and never fully shows my panel status. I've even rebooted and still had no luck. I've let the webapp up for a good 5 minutes with no updates.

Any help here since I followed the standard update process?

Re: Need help with webapp update

PostPosted: Mon Mar 07, 2016 7:10 am
by JJsLegacy
I have the same issue - forever loading. It works fine on my iOS devices but not from any PC browser (have tried many).

I have sent any email to support and we have gone back and forth a bit but resolution yet. Hopefully they follow-up here.