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

General Discussion

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

Postby jasonsf » Fri Jun 29, 2018 10:37 pm

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
jasonsf
Senior Nut
Senior Nut
 
Posts: 60
Joined: Sun Oct 16, 2016 2:43 pm

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

Postby wilsonb » Sat Jun 30, 2018 8:09 am

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:
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

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

Postby wilsonb » Sat Jun 30, 2018 8:26 am

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
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

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

Postby jasonsf » Sat Jun 30, 2018 8:43 am

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
jasonsf
Senior Nut
Senior Nut
 
Posts: 60
Joined: Sun Oct 16, 2016 2:43 pm

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

Postby wilsonb » Wed Jul 11, 2018 9:03 am

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.
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

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

Postby jasonsf » Wed Jul 11, 2018 10:47 am

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
jasonsf
Senior Nut
Senior Nut
 
Posts: 60
Joined: Sun Oct 16, 2016 2:43 pm

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

Postby wilsonb » Wed Jul 11, 2018 6:56 pm

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
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

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

Postby jasonsf » Wed Jul 11, 2018 11:15 pm

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
jasonsf
Senior Nut
Senior Nut
 
Posts: 60
Joined: Sun Oct 16, 2016 2:43 pm

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

Postby kevin » Mon Jul 16, 2018 7:04 pm

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)
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: After running for years.Restarted w/ fresh Image..NO GO

Postby wilsonb » Fri Jul 20, 2018 7:01 am

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.
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 6 guests

cron