Page 2 of 3

Re: After running for years.Restarted w/ fresh Image..NO GO

PostPosted: Fri Jun 29, 2018 10:37 pm
by jasonsf
Can you communicate with the device via telnet localhost 10000? I'm out of ideas. Try emailing support again. If you can get Sean to remote in to your system he can probably figure out what is going on.

Sent from my Pixel 2 using Tapatalk

Re: After running for years.Restarted w/ fresh Image..NO GO

PostPosted: Sat Jun 30, 2018 8:09 am
by wilsonb
Ya, my previous Raspberry Pi 2 B+ and new image had the same Webserver issue..

The second time re-doing with Raspberry 3 and image was up and running, and then after a while now with the stupid..

502 Bad Gateway
Services might still be starting - please wait and try again. If this continues, please let us know on GitHub. You can also email us at Support.


:evil: :evil: :evil: :evil:

Re: After running for years.Restarted w/ fresh Image..NO GO

PostPosted: Sat Jun 30, 2018 8:26 am
by wilsonb
jasonsf wrote:Can you communicate with the device via telnet localhost 10000? I'm out of ideas. Try emailing support again. If you can get Sean to remote in to your system he can probably figure out what is going on.

Sent from my Pixel 2 using Tapatalk


Yes, able to communicate with device. It's just webserver issues happening . I think it updated and broke. Something wrong in recent revision. Someone else had similar issues

Re: After running for years.Restarted w/ fresh Image..NO GO

PostPosted: Sat Jun 30, 2018 8:43 am
by jasonsf
Maybe update with git pull both the webapp and Alarmdecoder library and do the install script again? I'm running the latest and it is working.

Sent from my Pixel 2 using Tapatalk

Re: After running for years.Restarted w/ fresh Image..NO GO

PostPosted: Wed Jul 11, 2018 9:03 am
by wilsonb
jasonsf wrote:Maybe update with git pull both the webapp and Alarmdecoder library and do the install script again? I'm running the latest and it is working.

Sent from my Pixel 2 using Tapatalk



Thanks for reply. Could you respond with details how to (or link instructions) on your recommendations above? This might help others in future.

Re: After running for years.Restarted w/ fresh Image..NO GO

PostPosted: Wed Jul 11, 2018 10:47 am
by jasonsf
Sure.

Code: Select all
cd /opt/alarmdecoder
git pull
sudo python setup.py install

cd /opt/alarmdecoder-webapp
git pull

sudo rm instance/db.sqlite
python manage.py initdb
sudo reboot

Re: After running for years.Restarted w/ fresh Image..NO GO

PostPosted: Wed Jul 11, 2018 6:56 pm
by wilsonb
Thank you for the reply..

All say they are ;
Already up-to-date

Then when running manage.py python script, get error;

@alarmdecoder:/opt/alarmdecoder-webapp $ python manage.py initdb
Traceback (most recent call last):
File "manage.py", line 11, in <module>
from alarmdecoder.util import NoDeviceError
File "/usr/local/lib/python2.7/dist-packages/alarmdecoder-1.13.4-py2.7.egg/alarmdecoder/__init__.py", line 3, in <module>
import alarmdecoder.devices
File "/usr/local/lib/python2.7/dist-packages/alarmdecoder-1.13.4-py2.7.egg/alarmdecoder/devices/__init__.py", line 4, in <module>
from .usb_device import USBDevice
File "/usr/local/lib/python2.7/dist-packages/alarmdecoder-1.13.4-py2.7.egg/alarmdecoder/devices/usb_device.py", line 25, in <module>
from pyftdi.ftdi import Ftdi, FtdiError
File "/usr/local/lib/python2.7/dist-packages/pyftdi/ftdi.py", line 36, in <module>
from .usbtools import UsbTools
File "/usr/local/lib/python2.7/dist-packages/pyftdi/usbtools.py", line 455
print("Available interfaces:", file=out)
^
SyntaxError: invalid syntax

Re: After running for years.Restarted w/ fresh Image..NO GO

PostPosted: Wed Jul 11, 2018 11:15 pm
by jasonsf
Did the db.sqlite file get recreated before it errored out? If so, it might be OK. I assume you did running the webapp again. Did it still fail?

Sent from my Pixel 2 using Tapatalk

Re: After running for years.Restarted w/ fresh Image..NO GO

PostPosted: Mon Jul 16, 2018 7:04 pm
by kevin
something usb dependency, you should use a different device type such as socket or force install a lesser version of pyftdi (which is spotty at best)

Re: After running for years.Restarted w/ fresh Image..NO GO

PostPosted: Fri Jul 20, 2018 7:01 am
by wilsonb
Thanks for the help..
RESOLVED- (started over)
As before in Linux, ended up starting from scratch since troubleshooting takes so much effort/often without results.

Fresh install and luckily saved Raspberry image at farther stages of configured & working builds.