Question about Webapp Library

General Discussion

Question about Webapp Library

Postby Map63Vette » Mon Nov 06, 2017 8:15 am

So just recently I've had some issues with my AlarmDecoder Webapp setup. It has been running just fine for several months and just recently I couldn't connect. Figured my server must have gone down (I haven't really checked it in a while), but it appeared to be running fine. Noticed it had some system updates it wanted to do, so let it do that and reset it and I can get back to the webapp now, but it's stuck at the "Please Wait, Loading" for the keypad. It does note that an update was available though, so I just went and did that today and it seems to have updated okay, though while on the update page I noticed that it reports that the AlarmDecoderLibrary is disabled because it is unable to find the path. I assume this is a problem, but I'm not sure how to fix it. What exactly is the library and how to I point it to the right path?

Coincidentally it says that there is a firmware update available as well, but it hangs on trying to find the device to install it. It doesn't report what the current firmware is either, just marks it as unknown.

Here's a copy of the log I get in the webapp:

2017-11-05 20:44:12,023 INFO: Discovery running: loc=10.9.250.145:5000, uuid=266f8536-7a0f-11e7-bdc7-bc5ff42bdb0f [in /opt/alarmdecoder-webapp/ad2web/discovery.py:69]
2017-11-05 20:44:12,024 INFO: UPNP Discovery Started [in /opt/alarmdecoder-webapp/ad2web/upnp.py:26]
2017-11-05 20:44:12,024 INFO: Attempting to reconnect to the AlarmDecoder [in /opt/alarmdecoder-webapp/ad2web/decoder.py:481]
2017-11-05 20:44:12,120 INFO: AlarmDecoder device was opened. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:339]
2017-11-06 09:49:16,554 ERROR: default_error_handler: method_access_denied, You do not have access to method "recv_disconnect" (endpoint=/alarmdecoder, msg_id=None) [in /usr/local/lib/python2.7/dist-packages/socketio/virtsocket.py:51]
2017-11-06 09:49:18,877 INFO: Restarting service.. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:491]
2017-11-06 09:49:18,877 INFO: Stopping service.. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:149]
2017-11-06 09:49:18,877 INFO: AlarmDecoder device was closed. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:351]
2017-11-06 09:49:21,883 INFO: Restarting service.. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:177]
2017-11-06 09:49:22,815 INFO: AlarmDecoder Webapp booting up - v0.8.0-0-g6755b7e [in /opt/alarmdecoder-webapp/ad2web/decoder.py:218]
2017-11-06 09:49:22,826 INFO: Discovery running: loc=10.9.250.145:5000, uuid=266f8536-7a0f-11e7-bdc7-bc5ff42bdb0f [in /opt/alarmdecoder-webapp/ad2web/discovery.py:69]
2017-11-06 09:49:22,837 INFO: Set export parameters to: server smtp.gmail.com port 587 tls 1 auth False from XXXXXXX@gmail.com frequency 0 store files False storage path /opt/alarmdecoder-webapp/instance/exports days to keep files 7 email enable False [in /opt/alarmdecoder-webapp/ad2web/decoder.py:701]
2017-11-06 09:49:22,840 INFO: UPNP Discovery Started [in /opt/alarmdecoder-webapp/ad2web/upnp.py:26]
2017-11-06 09:49:22,840 INFO: Attempting to reconnect to the AlarmDecoder [in /opt/alarmdecoder-webapp/ad2web/decoder.py:525]
2017-11-06 09:49:22,848 WARNING: Could not bind event "on_aui_message": alarmdecoder library is probably out of date. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:324]
2017-11-06 09:49:22,848 INFO: Checking for version updates - last check at: 12-31-1969 18:00:00 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2017-11-06 09:49:22,886 INFO: AlarmDecoder device was opened. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:383]
2017-11-06 09:53:21,026 INFO: Beginning firmware upload - filename=/tmp/ademcoemu_V2-2a-8-8.hex [in /opt/alarmdecoder-webapp/ad2web/decoder.py:860]
2017-11-06 09:53:21,045 INFO: Beginning firmware update process.. [in /opt/alarmdecoder-webapp/ad2web/updater/models.py:651]
2017-11-06 09:55:32,117 WARNING: Could not clear events: alarmdecoder library is probably out of date. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:368]
2017-11-06 09:55:32,117 INFO: AlarmDecoder device was closed. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:395]
2017-11-06 09:55:32,124 WARNING: Could not bind event "on_aui_message": alarmdecoder library is probably out of date. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:324]
2017-11-06 09:55:32,152 INFO: AlarmDecoder device was opened. [in /opt/alarmdecoder-webapp/ad2web/decoder.py:383]
2017-11-06 09:59:24,436 INFO: Checking for version updates - last check at: 11-06-2017 09:49:22 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
2017-11-06 10:09:26,296 INFO: Checking for version updates - last check at: 11-06-2017 09:59:24 [in /opt/alarmdecoder-webapp/ad2web/decoder.py:600]
Last edited by Map63Vette on Thu Nov 09, 2017 8:41 am, edited 1 time in total.
Map63Vette
newt
newt
 
Posts: 12
Joined: Thu Aug 03, 2017 6:24 am

Re: Question about Webapp Library

Postby kevin » Mon Nov 06, 2017 8:15 pm

If you installed the library with pip, you should probably uninstall it and install it from github as the updater updates via git commits

sudo pip uninstall alarmdecoder

cd /opt
sudo git clone https://github.com/nutechsoftware/alarmdecoder.git
cd alarmdecoder
sudo python setup.py install

reboot

That should set things straight for you library and updater wise.
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: Question about Webapp Library

Postby Map63Vette » Tue Nov 07, 2017 11:35 am

Wow, didn't realize just how behind I was on releases. Had 0.13.1 or something like that. Seems to be working fine again, thanks!
Map63Vette
newt
newt
 
Posts: 12
Joined: Thu Aug 03, 2017 6:24 am


Return to General

Who is online

Users browsing this forum: No registered users and 49 guests

cron