Web Installation Issues

General Discussion

Web Installation Issues

Postby John » Tue Jul 19, 2016 8:09 pm

Hello,

I am having issues installing the web app. Right now, even after following all the steps outlined at https://github.com/nutechsoftware/alarmdecoder-webapp, I am still only getting the default nginx welcome page.

I had to make some directories for the copy commands to work, as well as follow https://github.com/nutechsoftware/alarm ... /issues/10.

What files do I need to show you here in order for you to diagnose my problem?

Thank you very much!
John
John
newt
newt
 
Posts: 8
Joined: Tue Jul 19, 2016 8:04 pm

Re: Web Installation Issues

Postby kevin » Tue Jul 19, 2016 8:48 pm

Make sure the default website in /etc/nginx/sites-enabled/ is disabled and only the alarmdecoder config is enabled
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: Web Installation Issues

Postby John » Wed Jul 20, 2016 1:37 pm

kevin wrote:Make sure the default website in /etc/nginx/sites-enabled/ is disabled and only the alarmdecoder config is enabled


Hi Kevin,

Thanks for the quick response!

Code: Select all
user@Ubuntu1604:/etc/nginx/sites-enabled$ ls
alarmdecoder


Looks like the default config is removed, and the only config remaining is the AlarmDecoder config.

Still getting the default nginx screen.

Thanks for your help.
John
John
newt
newt
 
Posts: 8
Joined: Tue Jul 19, 2016 8:04 pm

Re: Web Installation Issues

Postby kevin » Wed Jul 20, 2016 4:45 pm

Very strange. Can you look at the nginx logs in /var/log/nginx/ to see if there is anything pertinent?

Can you bypass the proxy and access the webapp directly (http://alarmdecoder.local:5000 by default)?

Did you make sure to restart nginx after putting the alarmdecoder config in place?

The only reason I can think of nginx serving the default page in this instance is if it is somehow cached.
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: Web Installation Issues

Postby John » Wed Jul 20, 2016 5:54 pm

kevin wrote:Very strange. Can you look at the nginx logs in /var/log/nginx/ to see if there is anything pertinent?

Can you bypass the proxy and access the webapp directly (http://alarmdecoder.local:5000 by default)?

Did you make sure to restart nginx after putting the alarmdecoder config in place?

The only reason I can think of nginx serving the default page in this instance is if it is somehow cached.


Nothing interesting in the logs.
I can not access it via port 5000. (Connection refused)
Not sure why it would be cached, but I tried on multiple devices with the same result.

I've tried installing on multiple boxes, maybe something changed in Ubuntu, and now it is not working?
John
newt
newt
 
Posts: 8
Joined: Tue Jul 19, 2016 8:04 pm

Re: Web Installation Issues

Postby kevin » Wed Jul 20, 2016 8:58 pm

Can definitely say that we have not tested on ubuntu 16.04.

If it is not listening on port 5000 that means the gunicorn worker is also not running or listening properly.

Please verify your nginx and gunicorn versions - also check the gunicorn logs in /var/log/gunicorn.d/*.log as well as any alarmdecoder logs in /opt/alarmdecoder-webapp/instance/logs/

I am unsure which versions of these packages ship with Ubuntu 16.04, but we do provide build instructions for a specific version of nginx for sure.
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: Web Installation Issues

Postby John » Thu Jul 21, 2016 6:00 pm

I have decided to use my raspi for this project. It is working out very well.
John
newt
newt
 
Posts: 8
Joined: Tue Jul 19, 2016 8:04 pm


Return to General

Who is online

Users browsing this forum: No registered users and 4 guests

cron