Need help with webapp update

General Discussion

Re: Need help with webapp update

Postby pyrodex » Mon Mar 07, 2016 11:06 am

Here is mine. Yes I did clear mine and even did a private session in chrome.

https://dl.dropboxusercontent.com/u/207349/logs.tar.gz

I am still stuck in /setup/test and can't get past it now.
pyrodex
newt
newt
 
Posts: 13
Joined: Sun Nov 22, 2015 3:34 pm

Re: Need help with webapp update

Postby kevin » Mon Mar 07, 2016 11:54 am

Can you post the nginx version you have installed? (nginx -v)
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 kevin » Mon Mar 07, 2016 11:55 am

pyrodex wrote:Here is mine. Yes I did clear mine and even did a private session in chrome.

https://dl.dropboxusercontent.com/u/207349/logs.tar.gz

I am still stuck in /setup/test and can't get past it now.


Please remove and reinitialize your database and go through setup again

cd /opt/alarmdecoder-webapp
sudo rm instance/db.sqlite
python manage.py initdb
sudo /etc/init.d/gunicorn restart
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 JJsLegacy » Mon Mar 07, 2016 12:36 pm

root@ncalarm:/opt/alarmdecoder-webapp# nginx -v
nginx version: nginx/1.2.1


seems old but that's what was in your pi bundle software
Last edited by JJsLegacy on Mon Mar 07, 2016 12:40 pm, edited 1 time in total.
JJsLegacy
Junior Nut
Junior Nut
 
Posts: 31
Joined: Tue Jan 19, 2016 4:17 pm

Re: Need help with webapp update

Postby pyrodex » Mon Mar 07, 2016 12:38 pm

kevin wrote:Can you post the nginx version you have installed? (nginx -v)


Fixed the setup issue with DB commands.

Here is the version:

pi@alarmdecoder /opt/alarmdecoder-webapp $ nginx -v
nginx version: nginx/1.2.1
pi@alarmdecoder /opt/alarmdecoder-webapp $
pyrodex
newt
newt
 
Posts: 13
Joined: Sun Nov 22, 2015 3:34 pm

Re: Need help with webapp update

Postby Scott » Mon Mar 07, 2016 12:49 pm

Okay that nginx version totally explains a lot! It doesn't support websockets.

There was an incorrect package hold in our last raspbian image. Doing an apt-get upgrade causes it to upgrade nginx even though we're newer. For whatever reason raspbian doesn't ship current versions of nginx in their package repositories. I have a new image in the works, but it probably won't be out till late this week or early next.

This should fix you up with our last release:

1. sudo apt-get -y remove nginx nginx-full
2. sudo apt-get clean
3. VERSION=1.7.4
4. curl http://nginx.org/download/nginx-$VERSION.tar.gz | tar zxvf -
5. cd nginx-$VERSION
6. ./configure --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_ssl_module --with-ipv6
7. make
8. sudo make install
9. sudo sync && sudo reboot && exit

Fingers crossed!
Scott
Expert Nut
Expert Nut
 
Posts: 118
Joined: Thu Dec 12, 2013 11:17 am

Re: Need help with webapp update

Postby pyrodex » Mon Mar 07, 2016 12:59 pm

Scott wrote:Okay that nginx version totally explains a lot! It doesn't support websockets.

There was an incorrect package hold in our last raspbian image. Doing an apt-get upgrade causes it to upgrade nginx even though we're newer. For whatever reason raspbian doesn't ship current versions of nginx in their package repositories. I have a new image in the works, but it probably won't be out till late this week or early next.

This should fix you up with our last release:

1. sudo apt-get -y remove nginx nginx-full
2. sudo apt-get clean
3. VERSION=1.7.4
4. curl http://nginx.org/download/nginx-$VERSION.tar.gz | tar zxvf -
5. cd nginx-$VERSION
6. ./configure --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_ssl_module --with-ipv6
7. make
8. sudo make install
9. sudo sync && sudo reboot && exit

Fingers crossed!


Step three needs an export :)
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 1:03 pm

No export needed for that.


I was actually already working down that path as I saw on the github 1.7.4 and higher required.

Good news - all looks good now!

Thanks guys!
JJsLegacy
Junior Nut
Junior Nut
 
Posts: 31
Joined: Tue Jan 19, 2016 4:17 pm

Re: Need help with webapp update

Postby Scott » Mon Mar 07, 2016 1:10 pm

Awesome, glad to hear it! Sorry for the hassle. =)
Scott
Expert Nut
Expert Nut
 
Posts: 118
Joined: Thu Dec 12, 2013 11:17 am

Re: Need help with webapp update

Postby pyrodex » Mon Mar 07, 2016 1:46 pm

After the nginx upgrade I am able to get further in the diagnostics from the original full webpage. Now I get an error in Keypad communication (Receive) but the others all check out Green. Keypad is still stuck at loading both on full interface and port 5000 now.
pyrodex
newt
newt
 
Posts: 13
Joined: Sun Nov 22, 2015 3:34 pm

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 11 guests

cron