Need help with webapp update

General Discussion

Need help with webapp update

Postby s2928 » Sat Jan 30, 2016 12:54 pm

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 10090 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 10090 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 10090 times
s2928
newt
newt
 
Posts: 15
Joined: Wed Sep 03, 2014 8:11 pm

Re: Need help with webapp update

Postby kevin » Sat Jan 30, 2016 8:55 pm

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?
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Need help with webapp update

Postby s2928 » Sun Jan 31, 2016 5:15 am

Not to my knowledge but I will ssh and see. Will post what I find.

Thank you for the suggestion.
s2928
newt
newt
 
Posts: 15
Joined: Wed Sep 03, 2014 8:11 pm

Re: Need help with webapp update

Postby scut77 » Tue Feb 02, 2016 5:42 pm

Hi there,

I have the same exact issue here as above.

Please help. Nothing was changed since installation.

Thanks
scut77
newt
newt
 
Posts: 11
Joined: Tue Feb 02, 2016 5:39 pm

Re: Need help with webapp update

Postby kevin » Tue Feb 02, 2016 8:03 pm

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.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Need help with webapp update

Postby s2928 » Sun Feb 28, 2016 6:35 pm

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)
s2928
newt
newt
 
Posts: 15
Joined: Wed Sep 03, 2014 8:11 pm

Re: Need help with webapp update

Postby Scott » Mon Feb 29, 2016 11:20 am

Thanks for the follow up! Did you notice anything strange with 'git status'?
Scott
Expert Nut
Expert Nut
 
Posts: 118
Joined: Thu Dec 12, 2013 11:17 am

Re: Need help with webapp update

Postby wilsonb » Thu Mar 03, 2016 2:03 pm

This worked for me.. FYI it might take a while for webserver to become available. Mine took 3-5minutes after logging in SSH.
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

Re: Need help with webapp update

Postby pyrodex » Mon Mar 07, 2016 5:54 am

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?
pyrodex
newt
newt
 
Posts: 13
Joined: Sun Nov 22, 2015 3:34 pm

Re: Need help with webapp update

Postby JJsLegacy » Mon Mar 07, 2016 7:10 am

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.
JJsLegacy
Junior Nut
Junior Nut
 
Posts: 31
Joined: Tue Jan 19, 2016 4:17 pm

Next

Return to General

Who is online

Users browsing this forum: No registered users and 15 guests

cron