Webapp manual install - stuck on Test

General Discussion

Webapp manual install - stuck on Test

Postby bradrel » Fri Mar 11, 2016 8:28 am

Hello, I am attempting to install the Webapp on Rasbian with a USB connected AD2USB. Everything installed, but I am getting stuck on "Opening device" in the setup test.

Any help or a point in the right direction is greatly appreciated. Here a few logs:

/var/log/gunicorn/alarmdecoder.log
Code: Select all
[2016-03-11 11:22:03 +0000] [1191] [INFO] Handling signal: term
[2016-03-11 11:22:04 +0000] [1202] [INFO] Worker exiting (pid: 1202)
[2016-03-11 11:22:33 +0000] [1191] [INFO] Shutting down: Master
[2016-03-11 11:23:03 +0000] [672] [INFO] Starting gunicorn 19.4.5
[2016-03-11 11:23:03 +0000] [672] [INFO] Listening at: http://127.0.0.1:8000 (672)
[2016-03-11 11:23:03 +0000] [672] [INFO] Using worker: socketio.sgunicorn.GeventSocketIOWorker
[2016-03-11 11:23:04 +0000] [679] [INFO] Booting worker with pid: 679


/opt/alarmdecoder-webapp/instance/logs/info.log
Code: Select all
2016-03-11 11:23:26,501 INFO: AlarmDecoder Webapp booting up - v0.6.1-0-gebe4fbe [in /opt/alarmdecoder-webapp/ad2web/decoder.py:193]
2016-03-11 11:23:26,829 INFO: Discovery running: loc=192.168.222.3:5000, uuid=3717151a-e7a4-11e5-94d5-b827eb792649 [in /opt/alarmdecoder-webapp/ad2web/discovery.py:69]
2016-03-11 11:23:26,842 INFO: Attempting to reconnect to the AlarmDecoder [in /opt/alarmdecoder-webapp/ad2web/decoder.py:452]
2016-03-11 11:23:27,349 INFO: AlarmDecoder device was opened. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:315]
Attachments
Test.JPG
Screenshot of Setup Test
Test.JPG (16.73 KiB) Viewed 6976 times
bradrel
newt
newt
 
Posts: 10
Joined: Fri May 11, 2012 5:08 am

Re: Webapp manual install - stuck on Test

Postby kevin » Fri Mar 11, 2016 10:33 am

Please post what version of nginx you are running (nginx -v) as well as your current AlarmDecoder configuration by sending it a 'C' key.
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: Webapp manual install - stuck on Test

Postby bradrel » Fri Mar 11, 2016 11:51 am

nginx version
Code: Select all
nginx version: nginx/1.7.4


Sorry, not sure what you mean by the second part.
as well as your current AlarmDecoder configuration by sending it a 'C' key
bradrel
newt
newt
 
Posts: 10
Joined: Fri May 11, 2012 5:08 am

Re: Webapp manual install - stuck on Test

Postby kevin » Fri Mar 11, 2016 3:12 pm

Open up the serial port or ser2sock stream and issue the AlarmDecoder device a 'C' key - typically if the device can't be opened or communicated with it is an issue with not finding or selecting the right USB port, or there is a wiring issue (yes, the device needs to be powered by panel and hooked up to it as well), or a device configuration issue.
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: Webapp manual install - stuck on Test

Postby bradrel » Fri Mar 11, 2016 7:25 pm

I was able to telnet to 127.0.0.1 100000 and issued a 'C' command. Here was the output:

Code: Select all
!CONFIG>MODE=A&CONFIGBITS=ff00&ADDRESS=18&LRR=N&EXP=NNNNN&REL=NNNN&MASK=ffffffff&DEDUPLICATE=Y
bradrel
newt
newt
 
Posts: 10
Joined: Fri May 11, 2012 5:08 am

Re: Webapp manual install - stuck on Test

Postby kevin » Fri Mar 11, 2016 7:40 pm

OK! So when you went through setup in the webapp - you chose AD2USB and Local Device, yes? If you did not click "Share AlarmDecoder on your network" it won't attempt to use the ser2sock but will try and open the com port directly - as you may or may not know, you can't have multiple things bound to the com port. I think this might be the issue since ser2sock is bound to the com port already.
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 12 guests

cron