Unable to communicate with Webapp vi NGINX proxy

General Discussion

Unable to communicate with Webapp vi NGINX proxy

Postby kkempster » Sat Jan 10, 2015 5:48 pm

Hi all,

New to this board but I've been using the ad2usb and ad2serial for some time. Have taken the dive into using the raspberry PI and have gone through the complete install a few times but still NGINX proxy is not behaving. Post installation I can successfully browse the PI and get the Webapp login. Post that I have no issue logging in and configuring the communication with the ad2usb attached local to the PI.

Post login the performance seems somewhat sluggish but the keyboard does update and provide the status of the alarm system. When I attempt to access the alarm via the keypad and enter a code to reset the alarm it does not respond or get sent to the alarm. All logs look fine, getting good two-way communication with the ad2usb as I've tested it via minicom.

The interesting thing about this is that if I bypass the proxy, NGINX, and connect direct to the application server, GUNICORN, performance is better and have no issues with entering commands on the keypad. I've gone through this install from top to bottom three times and both on the PI platform behave the same way. I performed a ground up install on a Fedora 17 box and have it working fine.

I do notice that the NGINX revision on the PI is not the latest; 1.2.1; and the Fedora rev. is even older but it works. Should I be looking to upgrade the PI to the latest rev or some other revision of NGINX that behaves better.

Any help or suggestions would be great.

Cheers.
kkempster
newt
newt
 
Posts: 2
Joined: Sat Jan 10, 2015 4:25 pm

Re: Unable to communicate with Webapp vi NGINX proxy

Postby kevin » Sat Jan 10, 2015 6:03 pm

For our release we recommend a specific version of nginx due to the websocket support - nginx >=1.6
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: Unable to communicate with Webapp vi NGINX proxy

Postby kkempster » Sun Jan 11, 2015 1:39 pm

Thanks. I'll upgrade via source and see how that goes.

Cheers.
kkempster
newt
newt
 
Posts: 2
Joined: Sat Jan 10, 2015 4:25 pm

Re: Unable to communicate with Webapp vi NGINX proxy

Postby kevin » Mon Jan 12, 2015 12:44 pm

Here's our exact configuration for our official raspbian based image:

Code: Select all
VERSION=1.7.4
curl http://nginx.org/download/nginx-$VERSION.tar.gz | tar zxvf -
cd nginx-$VERSION
./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
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


Return to General

Who is online

Users browsing this forum: No registered users and 38 guests

cron