Page 1 of 1

Webapp manual install - stuck on Test

PostPosted: Fri Mar 11, 2016 8:28 am
by bradrel
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]

Re: Webapp manual install - stuck on Test

PostPosted: Fri Mar 11, 2016 10:33 am
by kevin
Please post what version of nginx you are running (nginx -v) as well as your current AlarmDecoder configuration by sending it a 'C' key.

Re: Webapp manual install - stuck on Test

PostPosted: Fri Mar 11, 2016 11:51 am
by bradrel
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

Re: Webapp manual install - stuck on Test

PostPosted: Fri Mar 11, 2016 3:12 pm
by kevin
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.

Re: Webapp manual install - stuck on Test

PostPosted: Fri Mar 11, 2016 7:25 pm
by bradrel
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

Re: Webapp manual install - stuck on Test

PostPosted: Fri Mar 11, 2016 7:40 pm
by kevin
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.