502 Bad Gateway - Services might still be starting

General Discussion

502 Bad Gateway - Services might still be starting

Postby wilsonb » Tue Nov 14, 2017 11:13 am

Well, was about to do a full img backup - but at last minute having problems :roll: :evil: :evil:

Was working great and even updated firmware via webpage without problems.

Now webpage does not work / allow me to log in.
Pulling up Alarm Decoder Webpage I get [502 Bad Gateway ] on tab and
"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"
Never changes..

This was working great; History of what was done starting from last recent

rebooted - AD webpage stopped working

Updated PIP
Installed python libraries using PiP because they were in red when running test on webpage.
sudo python -m pip install cffi
pyftdi
miniupnpc
pycparser
usb - not able to (couldn't find it)

Updated firmware to xxx.88 succesfully

apt-get update/ upgrade

updated raspi-config

updated items within webpage - said update available. Don't remember exactly which ones updated.

I imagine a service is hanging or something simple.
PLEASE tell me what files you need and how to obtain them to resolve..

Thanks
Attachments
web server not starting.JPG
web server not starting.JPG (29.67 KiB) Viewed 8217 times
Capture.JPG
Capture.JPG (42.32 KiB) Viewed 8217 times
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

Re: 502 Bad Gateway - Services might still be starting

Postby kevin » Tue Nov 14, 2017 11:16 am

Look at the log files

/opt/alarmdecoder-webapp/instance/logs/
/var/log/gunicorn.d/
/var/log/daemon.log
/var/log/syslog

See if there are any errors present.
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: 502 Bad Gateway - Services might still be starting

Postby wilsonb » Tue Nov 14, 2017 11:51 am

Thanks for your response.


To start the AlarmDecoder logs shows;

2017-11-14 11:48:44,857 ERROR: Error [in /opt/alarmdecoder-webapp/ad2web/app.py:175]
Traceback (most recent call last):
File "/opt/alarmdecoder-webapp/ad2web/app.py", line 168, in init_app
app.decoder.init()
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 238, in init
self._discovery_thread = DiscoveryServer(self)
File "/opt/alarmdecoder-webapp/ad2web/discovery.py", line 59, in __init__
sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

Re: 502 Bad Gateway - Services might still be starting

Postby kevin » Tue Nov 14, 2017 12:23 pm

Doing a raspi-update has interesting effects because it changes the subsystem and kernel etc... I do not recall any of us suggesting that anywhere...

my initial guess is it is no longer /dev/ttyAMA0 but /dev/ttyS0 or /dev/serial0 now for ad2pi

Also since you did an apt-get update/upgrade, check your package versions, specifically gunicorn and nginx - make sure they are compatible versions.

If it isn't broken, don't fix it.
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: 502 Bad Gateway - Services might still be starting

Postby wilsonb » Tue Nov 14, 2017 12:33 pm

Folder not found /var/log/gunicorn.d/

daemon.log

Nov 14 11:32:48 alarmdecoder systemd-udevd[1618]: Error calling EVIOCSKEYCODE on device node '/dev/input/event2' (scan code 0xc00b8, key code 161): Invalid argument

Nov 14 11:32:49 alarmdecoder systemd-udevd[1618]: Error calling EVIOCSKEYCODE on device node '/dev/input/event2' (scan code 0xc022e, key code 419): Invalid argument

...
......

Nov 14 11:41:58 alarmdecoder triggerhappy[337]: Error opening '/dev/input/event*': No such file or directory

....
Nov 14 11:46:54 alarmdecoder systemd[1]: Time has been changed
Nov 14 11:46:56 alarmdecoder gunicorn[442]: /usr/local/lib/python2.7/dist-packages/flask_sqlalchemy/__init__.py:800: UserWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this warning.
Nov 14 11:46:56 alarmdecoder gunicorn[442]: warnings.warn('SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this warning.')
Nov 14 11:46:59 alarmdecoder gunicorn[442]: --------------------------------------------------------------------------------
Nov 14 11:46:59 alarmdecoder gunicorn[442]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:218]:
Nov 14 11:46:59 alarmdecoder gunicorn[442]: AlarmDecoder Webapp booting up - v0.7.6-57-g9de5ae8
Nov 14 11:46:59 alarmdecoder gunicorn[442]: --------------------------------------------------------------------------------

Nov 14 11:47:01 alarmdecoder gunicorn[442]: --------------------------------------------------------------------------------
Nov 14 11:47:01 alarmdecoder gunicorn[442]: --------------------------------------------------------------------------------
Nov 14 11:47:01 alarmdecoder gunicorn[442]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:525]:
Nov 14 11:47:01 alarmdecoder gunicorn[442]: Attempting to reconnect to the AlarmDecoder
Nov 14 11:47:01 alarmdecoder gunicorn[442]: --------------------------------------------------------------------------------
Nov 14 11:47:01 alarmdecoder gunicorn[442]: --------------------------------------------------------------------------------
Nov 14 11:47:01 alarmdecoder gunicorn[442]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:383]:
Nov 14 11:47:01 alarmdecoder gunicorn[442]: AlarmDecoder device was opened.
Nov 14 11:47:01 alarmdecoder gunicorn[442]: --------------------------------------------------------------------------------
Nov 14 11:47:18 alarmdecoder systemd[1]: Starting user-1000.slice.
Nov 14 11:47:18 alarmdecoder systemd[1]: Created slice user-1000.slice.

........

Nov 14 12:15:11 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:15:11 alarmdecoder gunicorn[416]: INFO in models [/opt/alarmdecoder-webapp/ad2web/updater/models.py:670]:
Nov 14 12:15:11 alarmdecoder gunicorn[416]: Uploading firmware.
Nov 14 12:15:11 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:18:59 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:18:59 alarmdecoder gunicorn[416]: INFO in models [/opt/alarmdecoder-webapp/ad2web/updater/models.py:679]:
Nov 14 12:18:59 alarmdecoder gunicorn[416]: Firmware upload complete!
Nov 14 12:18:59 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:18:59 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:18:59 alarmdecoder gunicorn[416]: INFO in models [/opt/alarmdecoder-webapp/ad2web/updater/models.py:679]:
Nov 14 12:18:59 alarmdecoder gunicorn[416]: Firmware upload complete!
Nov 14 12:18:59 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:19:14 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:19:14 alarmdecoder gunicorn[416]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:383]:
Nov 14 12:19:14 alarmdecoder gunicorn[416]: AlarmDecoder device was opened.
Nov 14 12:19:14 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:23:26 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:23:26 alarmdecoder gunicorn[416]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:600]:
Nov 14 12:23:26 alarmdecoder gunicorn[416]: Checking for version updates - last check at: 11-14-2017 12:13:18
Nov 14 12:23:26 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:26:35 alarmdecoder systemd[1]: Starting Cleanup of Temporary Directories...
Nov 14 12:26:35 alarmdecoder systemd[1]: Started Cleanup of Temporary Directories.
Nov 14 12:29:45 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:29:45 alarmdecoder gunicorn[416]: ERROR in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:443]:
Nov 14 12:29:45 alarmdecoder gunicorn[416]: Error sending notification for Logger: u'Front Door'
Nov 14 12:29:45 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:30:08 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:30:08] "GET /static/css/smoothness/images/animated-overlay.gif HTTP/1.1" 200 2556 0.061972
Nov 14 12:30:14 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:30:14] "GET /settings/password HTTP/1.1" 200 10947 0.596573
Nov 14 12:30:18 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:30:18] "GET /settings/advanced HTTP/1.1" 200 9540 0.621654
Nov 14 12:30:34 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:30:34] "GET /settings/diagnostics HTTP/1.1" 200 32565 1.117755
Nov 14 12:30:34 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:30:34] "GET /static/img/spinner.gif HTTP/1.1" 200 1488 0.128371
Nov 14 12:30:39 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:30:39] "GET /settings/get_imports_list HTTP/1.1" 200 8496 0.249619
Nov 14 12:33:31 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:33:31 alarmdecoder gunicorn[416]: INFO in decoder [/opt/alarmdecoder-webapp/ad2web/decoder.py:600]:
Nov 14 12:33:32 alarmdecoder gunicorn[416]: Checking for version updates - last check at: 11-14-2017 12:23:26
Nov 14 12:33:32 alarmdecoder gunicorn[416]: --------------------------------------------------------------------------------
Nov 14 12:40:09 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:40:09] "GET /settings/get_imports_list HTTP/1.1" 200 8496 0.246159
Nov 14 12:40:11 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:40:11] "GET /settings/get_imports_list HTTP/1.1" 200 8496 0.250718
Nov 14 12:40:12 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:40:12] "GET /settings/get_imports_list HTTP/1.1" 200 8496 0.236318
Nov 14 12:40:13 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:40:13] "GET /settings/get_imports_list HTTP/1.1" 200 8496 0.237670
Nov 14 12:40:14 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:40:14] "GET /settings/get_imports_list HTTP/1.1" 200 8496 0.232989
Nov 14 12:40:29 alarmdecoder gunicorn[416]: 127.0.0.1 - - [2017-11-14 12:40:29] "GET /settings/get_imports_list HTTP/1.1" 200 8496 0.244274
Nov 14 12:40:40 alarmdecoder systemd[1]: Started Turns off Raspberry Pi display backlight on shutdown/reboot.
Nov 14 12:40:40 alarmdecoder systemd[1]: Started Synchronise Hardware Clock to System Clock.
Nov 14 12:40:40 alarmdecoder systemd[1]: Stopping Session c3 of user pi.
Nov 14 12:40:40 alarmdecoder systemd[1]: Stopping Session c2 of user pi.
Nov 14 12:40:40 alarmdecoder systemd[1]: Stopping system-ifup.slice.
Nov 14 12:40:40 alarmdecoder systemd[1]: Removed slice system-ifup.slice.
Nov 14 12:40:40 alarmdecoder systemd[1]: Stopping Sound Card.
Nov 14 12:40:40 alarmdecoder systemd[1]: Stopped target Sound Card.
Nov 14 12:40:40 alarmdecoder systemd[1]: Stopping system-systemd\x2dfsck.slice.
Nov 14 12:40:40 alarmdecoder systemd[1]: Removed slice system-systemd\x2dfsck.slice.
Nov 14 12:40:40 alarmdecoder systemd[1]: Stopping User Manager for UID 1000...
Nov 14 12:40:40 alarmdecoder systemd[1069]: Stopping Default.
Nov 14 12:40:40 alarmdecoder systemd[1069]: Stopped target Default.
Nov 14 12:40:40 alarmdecoder systemd[1069]: Stopping Basic System.
Nov 14 12:40:40 alarmdecoder systemd[1069]: Stopped target Basic System.
Nov 14 12:40:40 alarmdecoder systemd[1069]: Stopping Paths.
Nov 14 12:40:41 alarmdecoder systemd[1069]: Stopped target Paths.
Nov 14 12:40:41 alarmdecoder systemd[1069]: Stopping Timers.
Nov 14 12:40:41 alarmdecoder systemd[1069]: Stopped target Timers.
Nov 14 12:40:41 alarmdecoder systemd[1069]: Stopping Sockets.
Nov 14 12:40:41 alarmdecoder systemd[1069]: Stopped target Sockets.
Nov 14 12:40:41 alarmdecoder systemd[1069]: Starting Shutdown.
Nov 14 12:41:20 alarmdecoder systemd[1]: Mounted Configuration File System.
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Apply Kernel Variables.
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Create Static Device Nodes in /dev.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting udev Kernel Device Manager...
Nov 14 12:41:20 alarmdecoder systemd[1]: Started udev Kernel Device Manager.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Copy rules generated while the root was ro...
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting LSB: Set preliminary keymap...
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Copy rules generated while the root was ro.
Nov 14 12:41:20 alarmdecoder fake-hwclock[82]: Tue Nov 14 18:41:12 UTC 2017
Nov 14 12:41:20 alarmdecoder systemd-fsck[99]: e2fsck 1.43.3 (04-Sep-2016)
Nov 14 12:41:20 alarmdecoder systemd-fsck[99]: /dev/mmcblk0p2: clean, 90008/946288 files, 1132006/3892992 blocks
Nov 14 12:41:20 alarmdecoder keyboard-setup[116]: Setting preliminary keymap...done.
Nov 14 12:41:20 alarmdecoder systemd[1]: Started LSB: Set preliminary keymap.
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Show Plymouth Boot Screen.
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Forward Password Requests to Plymouth Directory Watch.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Paths.
Nov 14 12:41:20 alarmdecoder systemd[1]: Reached target Paths.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Remount Root and Kernel File Systems...
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Remount Root and Kernel File Systems.
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Various fixups to make systemd work better on Debian.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Local File Systems (Pre).
Nov 14 12:41:20 alarmdecoder systemd[1]: Reached target Local File Systems (Pre).
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Load/Save Random Seed...
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Load/Save Random Seed.
Nov 14 12:41:20 alarmdecoder systemd[1]: Found device /dev/mmcblk0p1.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting File System Check on /dev/mmcblk0p1...
Nov 14 12:41:20 alarmdecoder systemd-fsck[167]: fsck.fat 3.0.27 (2014-11-12)
Nov 14 12:41:20 alarmdecoder systemd-fsck[167]: /dev/mmcblk0p1: 155 files, 2664/7673 clusters
Nov 14 12:41:20 alarmdecoder systemd[1]: Started File System Check on /dev/mmcblk0p1.
Nov 14 12:41:20 alarmdecoder systemd[1]: Mounting /boot...
Nov 14 12:41:20 alarmdecoder systemd[1]: Mounted /boot.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Local File Systems.
Nov 14 12:41:20 alarmdecoder systemd[1]: Reached target Local File Systems.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Create Volatile Files and Directories...
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Tell Plymouth To Write Out Runtime Data...
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting LSB: Raise network interfaces....
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Remote File Systems.
Nov 14 12:41:20 alarmdecoder systemd[1]: Reached target Remote File Systems.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Trigger Flushing of Journal to Persistent Storage...
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting LSB: Switch to ondemand cpu governor (unless shift key is pressed)...
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting LSB: Prepare console...
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Create Volatile Files and Directories.
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Tell Plymouth To Write Out Runtime Data.
Nov 14 12:41:20 alarmdecoder raspi-config[183]: Checking if shift key is held down:Error opening '/dev/input/event*': No such file or directory
Nov 14 12:41:21 alarmdecoder raspi-config[183]: No. Switching to ondemand scaling governor.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started LSB: Switch to ondemand cpu governor (unless shift key is pressed).
Nov 14 12:41:21 alarmdecoder kbd[186]: Setting console screen modes.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Update UTMP about System Boot/Shutdown...
Nov 14 12:41:21 alarmdecoder systemd[1]: Started Update UTMP about System Boot/Shutdown.
Nov 14 12:41:21 alarmdecoder kbd[186]: setterm: $TERM is not defined.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started LSB: Prepare console.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting LSB: Set console font and keymap...
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Sound Card.
Nov 14 12:41:21 alarmdecoder systemd[1]: Reached target Sound Card.
Nov 14 12:41:21 alarmdecoder console-setup[237]: Setting up console font and keymap...done.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started LSB: Set console font and keymap.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting system-ifup.slice.
Nov 14 12:41:21 alarmdecoder systemd[1]: Created slice system-ifup.slice.
Nov 14 12:41:21 alarmdecoder networking[179]: Configuring network interfaces...done.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started LSB: Raise network interfaces..
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting ifup for wlan0...
Nov 14 12:41:21 alarmdecoder systemd[1]: Started ifup for wlan0.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting System Initialization.
Nov 14 12:41:21 alarmdecoder systemd[1]: Reached target System Initialization.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Avahi mDNS/DNS-SD Stack Activation Socket.
Nov 14 12:41:21 alarmdecoder systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting D-Bus System Message Bus Socket.
Nov 14 12:41:21 alarmdecoder systemd[1]: Listening on D-Bus System Message Bus Socket.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Sockets.
Nov 14 12:41:21 alarmdecoder systemd[1]: Reached target Sockets.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Daily Cleanup of Temporary Directories.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started Daily Cleanup of Temporary Directories.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Timers.
Nov 14 12:41:21 alarmdecoder systemd[1]: Reached target Timers.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started Manage Sound Card State (restore and store).
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Restore Sound Card State...
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Basic System.
Nov 14 12:41:21 alarmdecoder systemd[1]: Reached target Basic System.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting LSB: Autogenerate and use a swap file...
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting LSB: triggerhappy hotkey daemon...
Nov 14 12:41:21 alarmdecoder systemd[1]: Started Configure Bluetooth Modems connected by UART.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting System Logging Service...
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting dhcpcd on all interfaces...
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Deferred execution scheduler...
Nov 14 12:41:21 alarmdecoder dphys-swapfile[334]: Starting dphys-swapfile swapfile setup ...
Nov 14 12:41:21 alarmdecoder avahi-daemon[340]: Found user 'avahi' (UID 105) and group 'avahi' (GID 110).
Nov 14 12:41:21 alarmdecoder avahi-daemon[340]: Successfully dropped root privileges.
Nov 14 12:41:21 alarmdecoder avahi-daemon[340]: avahi-daemon 0.6.31 starting up.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started Deferred execution scheduler.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started Turn on SSH if /boot/ssh is present.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Run anacron jobs...
Nov 14 12:41:21 alarmdecoder dhcpcd[346]: version 6.7.1 starting
Nov 14 12:41:21 alarmdecoder dhcpcd[346]: dev: loaded udev
Nov 14 12:41:21 alarmdecoder systemd[1]: Started Run anacron jobs.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting Regular background program processing daemon...
Nov 14 12:41:20 alarmdecoder systemd[1]: Started Regular background program processing daemon.
Nov 14 12:41:20 alarmdecoder systemd[1]: Started getty on tty2-tty6 if dbus and logind are not available.
Nov 14 12:41:20 alarmdecoder systemd[1]: Starting Login Service...
Nov 14 12:41:20 alarmdecoder triggerhappy[336]: Error opening '/dev/input/event*': No such file or directory
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting D-Bus System Message Bus...
Nov 14 12:41:21 alarmdecoder wpa_supplicant[354]: Successfully initialized wpa_supplicant

Nov 14 12:41:21 alarmdecoder avahi-daemon[340]: Registering HINFO record with values 'ARMV6L'/'LINUX'.
Nov 14 12:41:21 alarmdecoder dbus[371]: [system] Successfully activated service 'org.freedesktop.systemd1'
Nov 14 12:41:21 alarmdecoder systemd[1]: Started Avahi mDNS/DNS-SD Stack.
Nov 14 12:41:21 alarmdecoder systemd[1]: Starting LSB: init script for ser2sock instantiation...
Nov 14 12:41:21 alarmdecoder systemd[1]: Started System Logging Service.
Nov 14 12:41:21 alarmdecoder dphys-swapfile[334]: done.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started Restore Sound Card State.
Nov 14 12:41:21 alarmdecoder systemd[1]: Started LSB: triggerhappy hotkey daemon.
Nov 14 12:41:21 alarmdecoder wpa_supplicant[354]: nl80211: Driver does not support authentication/association or connect commands
Nov 14 12:41:21 alarmdecoder systemd[1]: Started LSB: Autogenerate and use a swap file.
Nov 14 12:41:21 alarmdecoder ifup[329]: ioctl[SIOCSIWAP]: Operation not permitted
Nov 14 12:41:21 alarmdecoder systemd[1]: Started dhcpcd on all interfaces.
Nov 14 12:41:22 alarmdecoder ifup[329]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Nov 14 12:41:22 alarmdecoder ifup[329]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Nov 14 12:41:22 alarmdecoder ser2sock[394]: tput: No value for $TERM and no -T specified
Nov 14 12:41:22 alarmdecoder ser2sock[394]: tput: No value for $TERM and no -T specified
Nov 14 12:41:22 alarmdecoder ser2sock[394]: tput: No value for $TERM and no -T specified
Nov 14 12:41:22 alarmdecoder ser2sock[394]: tput: No value for $TERM and no -T specified
Nov 14 12:41:22 alarmdecoder ser2sock[394]: Starting instantiation ser2sock of ser2sock...

Nov 14 12:41:23 alarmdecoder systemd[1]: Started /etc/rc.local Compatibility.
Nov 14 12:41:23 alarmdecoder ntpd[475]: ntpd 4.2.6p5@1.2349-o Mon Jul 25 22:35:28 UTC 2016 (1)
Nov 14 12:41:23 alarmdecoder avahi-daemon[340]: Service "alarmdecoder" (/services/alarmdecoder.service) successfully established.
Nov 14 12:41:23 alarmdecoder systemd[1]: Started Permit User Sessions.
Nov 14 12:41:23 alarmdecoder ntp[443]: Starting NTP server: ntpd.
Nov 14 12:41:23 alarmdecoder ntpd[484]: proto: precision = 1.000 usec
Nov 14 12:41:23 alarmdecoder ntpd[484]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Nov 14 12:41:23 alarmdecoder systemd[1]: Started Login Service.
Nov 14 12:41:23 alarmdecoder systemd[1]: Started LSB: Start NTP daemon.
Nov 14 12:41:23 alarmdecoder ntpd[484]: Listen and drop on 1 v6wildcard :: UDP 123
Nov 14 12:41:23 alarmdecoder ntpd[484]: Listen normally on 2 lo 127.0.0.1 UDP 123
Nov 14 12:41:23 alarmdecoder ntpd[484]: Listen normally on 3 lo ::1 UDP 123
Nov 14 12:41:23 alarmdecoder ntpd[484]: peers refreshed
Nov 14 12:41:24 alarmdecoder ntpd[484]: Listening on routing socket on fd #20 for interface updates
Nov 14 12:41:24 alarmdecoder ntpd[484]: Deferring DNS for 0.debian.pool.ntp.org 1
Nov 14 12:41:24 alarmdecoder ntpd[484]: Deferring DNS for 1.debian.pool.ntp.org 1
Nov 14 12:41:24 alarmdecoder ntpd[484]: Deferring DNS for 2.debian.pool.ntp.org 1
Nov 14 12:41:24 alarmdecoder ntpd[484]: Deferring DNS for 3.debian.pool.ntp.org 1
Nov 14 12:41:24 alarmdecoder ntpd[493]: signal_no_reset: signal 17 had flags 4000000
Nov 14 12:41:24 alarmdecoder systemd[1]: Failed to read PID from file /run/nginx.pid: Invalid argument
Nov 14 12:41:24 alarmdecoder systemd[1]: Started A high performance web server and a reverse proxy server.
Nov 14 12:41:24 alarmdecoder systemd[1]: Starting Wait for Plymouth Boot Screen to Quit...
Nov 14 12:41:24 alarmdecoder systemd[1]: Starting Terminate Plymouth Boot Screen...
Nov 14 12:41:25 alarmdecoder systemd[1]: Started Wait for Plymouth Boot Screen to Quit.
Nov 14 12:41:25 alarmdecoder systemd[1]: Started Terminate Plymouth Boot Screen.
Nov 14 12:41:25 alarmdecoder systemd[1]: Starting Getty on tty1...
Nov 14 12:41:25 alarmdecoder systemd[1]: Started Getty on tty1.
Nov 14 12:41:25 alarmdecoder systemd[1]: Starting Login Prompts.
Nov 14 12:41:25 alarmdecoder systemd[1]: Reached target Login Prompts.
Nov 14 12:41:26 alarmdecoder ntpd_intres[493]: host name not found: 0.debian.pool.ntp.org
Nov 14 12:41:26 alarmdecoder ntpd_intres[493]: host name not found: 1.debian.pool.ntp.org
Nov 14 12:41:26 alarmdecoder ntpd_intres[493]: host name not found: 2.debian.pool.ntp.org
Nov 14 12:41:26 alarmdecoder ntpd_intres[493]: host name not found: 3.debian.pool.ntp.org
Nov 14 12:41:26 alarmdecoder systemd[1]: Starting user-110.slice.
Nov 14 12:41:26 alarmdecoder systemd[1]: Created slice user-110.slice.
Nov 14 12:41:26 alarmdecoder systemd[1]: Starting Session c1 of user smmsp.
Nov 14 12:41:26 alarmdecoder systemd[1]: Started Session c1 of user smmsp.
Nov 14 12:41:26 alarmdecoder systemd[1]: Starting User Manager for UID 110...
Nov 14 12:41:26 alarmdecoder systemd[1]: Reloading OpenBSD Secure Shell server.
Nov 14 12:41:26 alarmdecoder ntpd[484]: Listen normally on 4 wlan0 fe80::e7a1:c8a9:b65a:79cc UDP 123
Nov 14 12:41:26 alarmdecoder ntpd[484]: peers refreshed
Nov 14 12:41:26 alarmdecoder systemd[1]: Reloaded OpenBSD Secure Shell server.
Nov 14 12:41:27 alarmdecoder systemd[594]: Starting Paths.
Nov 14 12:41:27 alarmdecoder systemd[594]: Reached target Paths.
Nov 14 12:41:27 alarmdecoder systemd[594]: Starting Timers.
Nov 14 12:41:27 alarmdecoder systemd[594]: Reached target Timers.
Nov 14 12:41:27 alarmdecoder systemd[594]: Starting Sockets.
Nov 14 12:41:27 alarmdecoder systemd[594]: Reached target Sockets.
Nov 14 12:41:27 alarmdecoder systemd[594]: Starting Basic System.
Nov 14 12:41:27 alarmdecoder systemd[594]: Reached target Basic System.
Nov 14 12:41:27 alarmdecoder systemd[594]: Starting Default.
Nov 14 12:41:27 alarmdecoder systemd[594]: Reached target Default.
Nov 14 12:41:27 alarmdecoder systemd[594]: Startup finished in 437ms.
Nov 14 12:41:27 alarmdecoder systemd[1]: Started User Manager for UID 110.
Nov 14 12:41:27 alarmdecoder avahi-daemon[340]: Joining mDNS multicast group on interface eth0.IPv6 with address
Nov 14 12:41:27 alarmdecoder systemd[1]: Stopping User Manager for UID 110...
Nov 14 12:41:27 alarmdecoder systemd[594]: Stopping Default.
Nov 14 12:41:27 alarmdecoder systemd[594]: Stopped target Default.
Nov 14 12:41:27 alarmdecoder systemd[594]: Stopping Basic System.
Nov 14 12:41:27 alarmdecoder systemd[594]: Stopped target Basic System.
Nov 14 12:41:27 alarmdecoder systemd[594]: Stopping Paths.
Nov 14 12:41:27 alarmdecoder systemd[594]: Stopped target Paths.
Nov 14 12:41:27 alarmdecoder systemd[594]: Stopping Timers.
Nov 14 12:41:27 alarmdecoder systemd[594]: Stopped target Timers.
Nov 14 12:41:27 alarmdecoder systemd[594]: Stopping Sockets.
Nov 14 12:41:27 alarmdecoder systemd[594]: Stopped target Sockets.
Nov 14 12:41:28 alarmdecoder systemd[594]: Starting Shutdown.
Nov 14 12:41:28 alarmdecoder systemd[594]: Reached target Shutdown.
Nov 14 12:41:28 alarmdecoder systemd[594]: Starting Exit the Session...
Nov 14 12:41:28 alarmdecoder systemd[594]: Received SIGRTMIN+24 from PID 658 (kill).
Nov 14 12:41:28 alarmdecoder dhcpcd[376]: wlan0: rebinding lease of
Nov 14 12:41:28 alarmdecoder systemd[1]: Stopped User Manager for UID 110.
Nov 14 12:41:28 alarmdecoder dhcpcd[376]: wlan0: soliciting an IPv6 router
Nov 14 12:41:28 alarmdecoder dhcpcd[376]: wlan0: Router Advertisement from
Nov 14 12:41:28 alarmdecoder dhcpcd[376]: wlan0: adding address
Nov 14 12:41:28 alarmdecoder dhcpcd[376]: wlan0: adding route to
Nov 14 12:41:28 alarmdecoder dhcpcd[376]: wlan0: adding default route via
Nov 14 12:41:28 alarmdecoder dhcpcd[376]: wlan0: requesting DHCPv6 information
Nov 14 12:41:28 alarmdecoder systemd[1]: Stopping user-110.slice.
Nov 14 12:41:28 alarmdecoder systemd[1]: Removed slice user-110.slice.
Nov 14 12:41:28 alarmdecoder ntpd_intres[493]: host name not found: 0.debian.pool.ntp.org
Nov 14 12:41:28 alarmdecoder ntpd_intres[493]: host name not found: 1.debian.pool.ntp.org
Nov 14 12:41:28 alarmdecoder ntpd_intres[493]: host name not found: 2.debian.pool.ntp.org
Nov 14 12:41:28 alarmdecoder ntpd_intres[493]: host name not found: 3.debian.pool.ntp.org
Nov 14 12:41:29 alarmdecoder avahi-daemon[340]: Leaving mDNS multicast group on interface wlan0.IPv6 with address
Nov 14 12:41:29 alarmdecoder avahi-daemon[340]: Joining mDNS multicast group on interface wlan0.IPv6 with address
Nov 14 12:41:30 alarmdecoder ntpd[484]: peers refreshed
Nov 14 12:41:32 alarmdecoder ntpd_intres[493]: DNS 0.debian.pool.ntp.org -> 69.89.207.99
Nov 14 12:41:32 alarmdecoder ntpd_intres[493]: DNS 1.debian.pool.ntp.org -> 208.75.89.4
Nov 14 12:41:32 alarmdecoder gunicorn[447]: [2017-11-14 12:41:32 +0000] [447] [DEBUG] Current configuration:
Nov 14 12:41:32 alarmdecoder gunicorn[447]: secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
Nov 14 12:41:32 alarmdecoder gunicorn[447]: proxy_protocol: False
Nov 14 12:41:32 alarmdecoder gunicorn[447]: worker_connections: 1000
Nov 14 12:41:32 alarmdecoder gunicorn[447]: statsd_host: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: max_requests_jitter: 0
Nov 14 12:41:33 alarmdecoder gunicorn[447]: post_fork: <function post_fork at 0xb656c3f0>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: pythonpath: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: enable_stdio_inheritance: False
Nov 14 12:41:33 alarmdecoder gunicorn[447]: worker_class: socketio.sgunicorn.GeventSocketIOWorker
Nov 14 12:41:33 alarmdecoder gunicorn[447]: ssl_version: 3
Nov 14 12:41:33 alarmdecoder gunicorn[447]: suppress_ragged_eofs: True
Nov 14 12:41:33 alarmdecoder gunicorn[447]: syslog: False
Nov 14 12:41:33 alarmdecoder gunicorn[447]: syslog_facility: user
Nov 14 12:41:33 alarmdecoder gunicorn[447]: when_ready: <function when_ready at 0xb656c1f0>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: pre_fork: <function pre_fork at 0xb656c2f0>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: cert_reqs: 0
Nov 14 12:41:33 alarmdecoder gunicorn[447]: preload_app: False
Nov 14 12:41:33 alarmdecoder gunicorn[447]: keepalive: 2
Nov 14 12:41:33 alarmdecoder gunicorn[447]: accesslog: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: group: 20
Nov 14 12:41:33 alarmdecoder gunicorn[447]: graceful_timeout: 30
Nov 14 12:41:33 alarmdecoder gunicorn[447]: do_handshake_on_connect: False
Nov 14 12:41:33 alarmdecoder gunicorn[447]: spew: False
Nov 14 12:41:33 alarmdecoder gunicorn[447]: workers: 1
Nov 14 12:41:33 alarmdecoder gunicorn[447]: proc_name: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: sendfile: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: pidfile: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: umask: 0
Nov 14 12:41:33 alarmdecoder gunicorn[447]: on_reload: <function on_reload at 0xb656c130>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: pre_exec: <function pre_exec at 0xb656c730>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: worker_tmp_dir: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: post_worker_init: <function post_worker_init at 0xb656c4f0>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: limit_request_fields: 100
Nov 14 12:41:33 alarmdecoder gunicorn[447]: on_exit: <function on_exit at 0xb656caf0>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: config: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: logconfig: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: check_config: False
Nov 14 12:41:33 alarmdecoder gunicorn[447]: statsd_prefix:
Nov 14 12:41:33 alarmdecoder gunicorn[447]: proxy_allow_ips: ['127.0.0.1']
Nov 14 12:41:33 alarmdecoder gunicorn[447]: pre_request: <function pre_request at 0xb656c7f0>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: post_request: <function post_request at 0xb656c870>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: user: 1000
Nov 14 12:41:33 alarmdecoder gunicorn[447]: forwarded_allow_ips: ['127.0.0.1']
Nov 14 12:41:33 alarmdecoder gunicorn[447]: worker_int: <function worker_int at 0xb656c5b0>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: threads: 1
Nov 14 12:41:33 alarmdecoder gunicorn[447]: max_requests: 0
Nov 14 12:41:33 alarmdecoder gunicorn[447]: limit_request_line: 4094
Nov 14 12:41:33 alarmdecoder gunicorn[447]: access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
Nov 14 12:41:33 alarmdecoder gunicorn[447]: certfile: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: worker_exit: <function worker_exit at 0xb656c930>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: chdir: /opt/alarmdecoder-webapp
Nov 14 12:41:33 alarmdecoder gunicorn[447]: paste: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: default_proc_name: wsgi:application
Nov 14 12:41:33 alarmdecoder gunicorn[447]: errorlog: -
Nov 14 12:41:33 alarmdecoder gunicorn[447]: loglevel: debug
Nov 14 12:41:33 alarmdecoder gunicorn[447]: capture_output: False
Nov 14 12:41:33 alarmdecoder gunicorn[447]: syslog_addr: udp://localhost:514
Nov 14 12:41:33 alarmdecoder gunicorn[447]: syslog_prefix: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: daemon: False
Nov 14 12:41:33 alarmdecoder gunicorn[447]: ciphers: TLSv1
Nov 14 12:41:33 alarmdecoder gunicorn[447]: on_starting: <function on_starting at 0xb656c070>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: worker_abort: <function worker_abort at 0xb656c670>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: bind: ['127.0.0.1:8000']
Nov 14 12:41:33 alarmdecoder gunicorn[447]: raw_env: ['POLICY_SERVER=0']
Nov 14 12:41:33 alarmdecoder gunicorn[447]: reload: False
Nov 14 12:41:33 alarmdecoder ntpd_intres[493]: DNS 2.debian.pool.ntp.org -> 2607:fa18::2407
Nov 14 12:41:33 alarmdecoder ntpd_intres[493]: DNS 3.debian.pool.ntp.org -> 66.135.44.92
Nov 14 12:41:33 alarmdecoder dhcpcd[376]: wlan0: leased ... for 86400 seconds
Nov 14 12:41:33 alarmdecoder avahi-daemon[340]: Joining mDNS multicast group on interface wlan0.IPv4 with address (removed)
Nov 14 12:41:33 alarmdecoder avahi-daemon[340]: New relevant interface wlan0.IPv4 for mDNS.
Nov 14 12:41:33 alarmdecoder avahi-daemon[340]: Registering new address record for 192.168.1.72 on wlan0.IPv4.
Nov 14 12:41:33 alarmdecoder dhcpcd[376]: wlan0: adding route to ...
Nov 14 12:41:33 alarmdecoder dhcpcd[376]: wlan0: adding default route via (removed)
Nov 14 12:41:33 alarmdecoder gunicorn[447]: limit_request_field_size: 8190
Nov 14 12:41:33 alarmdecoder gunicorn[447]: nworkers_changed: <function nworkers_changed at 0xb656ca30>
Nov 14 12:41:33 alarmdecoder gunicorn[447]: timeout: 120
Nov 14 12:41:33 alarmdecoder gunicorn[447]: ca_certs: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: django_settings: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: tmp_upload_dir: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: keyfile: None
Nov 14 12:41:33 alarmdecoder gunicorn[447]: backlog: 2048
Nov 14 12:41:33 alarmdecoder gunicorn[447]: logger_class: gunicorn.glogging.Logger
Nov 14 12:41:33 alarmdecoder gunicorn[447]: [2017-11-14 12:41:32 +0000] [447] [INFO] Starting gunicorn 19.6.0
Nov 14 12:41:33 alarmdecoder gunicorn[447]: [2017-11-14 12:41:32 +0000] [447] [DEBUG] Arbiter booted
Nov 14 12:41:33 alarmdecoder gunicorn[447]: [2017-11-14 12:41:32 +0000] [447] [INFO] Listening at:
Nov 14 12:41:33 alarmdecoder gunicorn[447]: [2017-11-14 12:41:33 +0000] [447] [INFO] Using worker: socketio.sgunicorn.GeventSocketIOWorker
Nov 14 12:41:33 alarmdecoder gunicorn[447]: [2017-11-14 12:41:33 +0000] [751] [INFO] Booting worker with pid: 751
Nov 14 12:41:33 alarmdecoder gunicorn[447]: [2017-11-14 12:41:33 +0000] [447] [DEBUG] 1 workers
Nov 14 12:41:34 alarmdecoder ntpd[484]: Listen normally on 6 wlan0 192.168.1.72 UDP 123
Nov 14 12:41:34 alarmdecoder ntpd[484]: peers refreshed
Nov 14 12:41:34 alarmdecoder dhcpcd[376]: wlan0: Router Advertisement from fe80::76d0:2bff:fe42:ceb8
Nov 14 12:41:37 alarmdecoder gunicorn[447]: [2017-11-14 12:41:37 +0000] [751] [ERROR] Exception in worker process
Nov 14 12:41:37 alarmdecoder gunicorn[447]: Traceback (most recent call last):
Nov 14 12:41:37 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 557, in spawn_worker
Nov 14 12:41:37 alarmdecoder gunicorn[447]: worker.init_process()
Nov 14 12:41:37 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 190, in init_process
Nov 14 12:41:37 alarmdecoder gunicorn[447]: super(GeventWorker, self).init_process()
Nov 14 12:41:37 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 126, in init_process
Nov 14 12:41:37 alarmdecoder gunicorn[447]: self.load_wsgi()
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 136, in load_wsgi
Nov 14 12:41:38 alarmdecoder gunicorn[447]: self.wsgi = self.app.wsgi()
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
Nov 14 12:41:38 alarmdecoder gunicorn[447]: self.callable = self.load()
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
Nov 14 12:41:38 alarmdecoder gunicorn[447]: return self.load_wsgiapp()
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
Nov 14 12:41:38 alarmdecoder gunicorn[447]: return util.import_app(self.app_uri)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 357, in import_app
Nov 14 12:41:38 alarmdecoder gunicorn[447]: __import__(module)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gevent/builtins.py", line 53, in __import__
Nov 14 12:41:38 alarmdecoder gunicorn[447]: result = _import(*args, **kwargs)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/opt/alarmdecoder-webapp/wsgi.py", line 24, in <module>
Nov 14 12:41:38 alarmdecoder gunicorn[447]: from ad2web import create_app, init_app
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gevent/builtins.py", line 53, in __import__
Nov 14 12:41:38 alarmdecoder gunicorn[447]: result = _import(*args, **kwargs)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/opt/alarmdecoder-webapp/ad2web/__init__.py", line 3, in <module>
Nov 14 12:41:38 alarmdecoder gunicorn[447]: from app import create_app, init_app
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gevent/builtins.py", line 53, in __import__
Nov 14 12:41:38 alarmdecoder gunicorn[447]: result = _import(*args, **kwargs)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/opt/alarmdecoder-webapp/ad2web/app.py", line 14, in <module>
Nov 14 12:41:38 alarmdecoder gunicorn[447]: from alarmdecoder import AlarmDecoder
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gevent/builtins.py", line 53, in __import__
Nov 14 12:41:38 alarmdecoder gunicorn[447]: result = _import(*args, **kwargs)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/opt/alarmdecoder/alarmdecoder/__init__.py", line 3, in <module>
Nov 14 12:41:38 alarmdecoder gunicorn[447]: import alarmdecoder.devices
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gevent/builtins.py", line 53, in __import__
Nov 14 12:41:38 alarmdecoder gunicorn[447]: result = _import(*args, **kwargs)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/opt/alarmdecoder/alarmdecoder/devices/__init__.py", line 4, in <module>
Nov 14 12:41:38 alarmdecoder gunicorn[447]: from .usb_device import USBDevice
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gevent/builtins.py", line 53, in __import__
Nov 14 12:41:38 alarmdecoder gunicorn[447]: result = _import(*args, **kwargs)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/opt/alarmdecoder/alarmdecoder/devices/usb_device.py", line 25, in <module>
Nov 14 12:41:38 alarmdecoder gunicorn[447]: from pyftdi.ftdi import Ftdi, FtdiError
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gevent/builtins.py", line 53, in __import__
Nov 14 12:41:38 alarmdecoder gunicorn[447]: result = _import(*args, **kwargs)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/pyftdi/ftdi.py", line 32, in <module>
Nov 14 12:41:38 alarmdecoder gunicorn[447]: from pyftdi.usbtools import UsbTools
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/gevent/builtins.py", line 53, in __import__
Nov 14 12:41:38 alarmdecoder gunicorn[447]: result = _import(*args, **kwargs)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: File "/usr/local/lib/python2.7/dist-packages/pyftdi/usbtools.py", line 449
Nov 14 12:41:38 alarmdecoder gunicorn[447]: print("Available interfaces:", file=out)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: ^
Nov 14 12:41:38 alarmdecoder gunicorn[447]: SyntaxError: invalid syntax
Nov 14 12:41:38 alarmdecoder gunicorn[447]: [2017-11-14 12:41:37 +0000] [751] [INFO] Worker exiting (pid: 751)
Nov 14 12:41:38 alarmdecoder gunicorn[447]: [2017-11-14 12:41:38 +0000] [447] [INFO] Shutting down: Master
Nov 14 12:41:38 alarmdecoder gunicorn[447]: [2017-11-14 12:41:38 +0000] [447] [INFO] Reason: Worker failed to boot.
Nov 14 12:41:38 alarmdecoder systemd[1]: gunicorn.service: main process exited, code=exited, status=3/NOTIMPLEMENTED
Nov 14 12:41:38 alarmdecoder systemd[1]: Unit gunicorn.service entered failed state.
Nov 14 12:41:48 alarmdecoder systemd[1]: Time has been changed
Nov 14 12:42:34 alarmdecoder systemd[1]: Starting user-1000.slice.
Nov 14 12:42:34 alarmdecoder systemd[1]: Created slice user-1000.slice.
Nov 14 12:42:34 alarmdecoder systemd[1]: Starting Session c2 of user pi.
Nov 14 12:42:34 alarmdecoder systemd[1]: Started Session c2 of user pi.
Nov 14 12:42:34 alarmdecoder systemd[1]: Starting User Manager for UID 1000...
Nov 14 12:42:34 alarmdecoder systemd[946]: Starting Paths.
Nov 14 12:42:34 alarmdecoder systemd[946]: Reached target Paths.
Nov 14 12:42:34 alarmdecoder systemd[946]: Starting Timers.
Nov 14 12:42:34 alarmdecoder systemd[946]: Reached target Timers.
Nov 14 12:42:34 alarmdecoder systemd[946]: Starting Sockets.
Nov 14 12:42:34 alarmdecoder systemd[946]: Reached target Sockets.
Nov 14 12:42:34 alarmdecoder systemd[946]: Starting Basic System.
Nov 14 12:42:34 alarmdecoder systemd[946]: Reached target Basic System.
Nov 14 12:42:34 alarmdecoder systemd[946]: Starting Default.
Nov 14 12:42:34 alarmdecoder systemd[946]: Reached target Default.
Nov 14 12:42:34 alarmdecoder systemd[946]: Startup finished in 136ms.
Nov 14 12:42:34 alarmdecoder systemd[1]: Started User Manager for UID 1000.
Nov 14 12:42:35 alarmdecoder systemd[1]: Starting Session c3 of user pi.
Nov 14 12:42:35 alarmdecoder systemd[1]: Started Session c3 of user pi.
Nov 14 12:42:39 alarmdecoder sendmail[441]: Starting Mail Transport Agent (MTA): sendmail.
Nov 14 12:42:39 alarmdecoder systemd[1]: Started LSB: powerful, efficient, and scalable Mail Transport Agent.
Nov 14 12:42:39 alarmdecoder systemd[1]: Starting Multi-User System.
Nov 14 12:42:39 alarmdecoder systemd[1]: Reached target Multi-User System.
Nov 14 12:42:39 alarmdecoder systemd[1]: Starting Update UTMP about System Runlevel Changes...
Nov 14 12:42:39 alarmdecoder systemd[1]: Started Update UTMP about System Runlevel Changes.
Nov 14 12:42:39 alarmdecoder systemd[1]: Startup finished in 2.576s (kernel) + 1min 19.909s (userspace) = 1min 22.485s.
Nov 14 12:53:04 alarmdecoder systemd[1]: Starting Session c4 of user pi.
Nov 14 12:53:04 alarmdecoder systemd[1]: Started Session c4 of user pi.
Nov 14 12:53:05 alarmdecoder systemd[1]: Starting Session c5 of user pi.
Nov 14 12:53:05 alarmdecoder systemd[1]: Started Session c5 of user pi.
Nov 14 12:56:19 alarmdecoder systemd[1]: Starting Cleanup of Temporary Directories...
Nov 14 12:56:20 alarmdecoder systemd[1]: Started Cleanup of Temporary Directories.
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

Re: 502 Bad Gateway - Services might still be starting

Postby kevin » Tue Nov 14, 2017 12:36 pm

Looks like ser2sock is failing, check that is attaching to the correct device - I have a feeling since the raspi-update it is no longer /dev/ttyAMA0
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: 502 Bad Gateway - Services might still be starting

Postby wilsonb » Tue Nov 14, 2017 2:25 pm

Im guessing now..

So I will reinstall ser2sock?

sudo /etc/init.d/ser2sock start

Starting instantiation ser2sock of ser2sock...

Script name : ser2sock
Executable file : /usr/local/bin/ser2sock
Arguments : -d -f /etc/ser2sock/ser2sock.conf -P /var/run/ser2sock.pid
Configuration file: /etc/ser2sock/ser2sock.conf
PID file : /var/run/ser2sock.pid

Failed to start - Return Value = 1
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

Re: 502 Bad Gateway - Services might still be starting

Postby kevin » Tue Nov 14, 2017 2:27 pm

edit the /etc/ser2sock/ser2sock.conf file and change the device
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: 502 Bad Gateway - Services might still be starting

Postby wilsonb » Tue Nov 14, 2017 4:26 pm

how to reinstall?

Following this and getting error with debuild
sudo apt-get install build-essential autotools-dev devscripts
debuild -i -us -uc -b
sudo dpkg -i ../ser2sock*.deb
sudo update-rc.d ser2sock defaults
sudo /etc/init.d/ser2sock start
__________________________________

pi@alarmdecoder:~ $ debuild -i -us -uc -b

debuild: fatal error at line 633:
cannot find readable debian/changelog anywhere!
Are you in the source code tree?
wilsonb
Senior Nut
Senior Nut
 
Posts: 77
Joined: Sun Jul 26, 2015 4:14 pm

Re: 502 Bad Gateway - Services might still be starting

Postby kevin » Tue Nov 14, 2017 4:29 pm

Why are you trying to reinstall ser2sock? All you need to do is edit the configuration file in /etc/ser2sock/ser2sock.conf

And yes, it is compiled from source from github
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

Next

Return to General

Who is online

Users browsing this forum: No registered users and 29 guests

cron