Hello,
I downloaded the latest version from http://www.alarmdecoder.com/downloads/p ... -05-22.zip and flashed in the SD card of my Raspberry PI.
Everything was working without problem until I applied updates and upgrades to the OS using apt-get.
After the upgrade NGINX was removed from the packages, (I have not clue why this happened), so I had to reinstall it.
After the reinstall, I tried bouncing the services (nginx and gurnicon) and noticed the server was reporting: "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."
This is the log from /var/log/gunicorn/alarmdecoder.log
[2015-06-13 20:33:13 +0000] [3837] [INFO] Starting gunicorn 19.3.0
[2015-06-13 20:33:13 +0000] [3837] [INFO] Listening at: http://127.0.0.1:8000 (3837)
[2015-06-13 20:33:13 +0000] [3837] [INFO] Using worker: socketio.sgunicorn.GeventSocketIOWorker
[2015-06-13 20:33:13 +0000] [3859] [INFO] Booting worker with pid: 3859
[2015-06-13 20:33:49 +0000] [3859] [ERROR] Exception in worker process:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in spawn_worker
worker.init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 192, in init_process
super(GeventWorker, self).init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 118, in init_process
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 355, in import_app
__import__(module)
File "/opt/alarmdecoder-webapp/wsgi.py", line 24, in <module>
from ad2web import create_app
File "/opt/alarmdecoder-webapp/ad2web/__init__.py", line 3, in <module>
from app import create_app
File "/opt/alarmdecoder-webapp/ad2web/app.py", line 30, in <module>
from .decoder import decodersocket, Decoder, create_decoder_socket
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 27, in <module>
from .updater import Updater
File "/opt/alarmdecoder-webapp/ad2web/updater/__init__.py", line 1, in <module>
from .models import Updater
File "/opt/alarmdecoder-webapp/ad2web/updater/models.py", line 15, in <module>
from pip.locations import build_prefix, src_prefix
ImportError: cannot import name build_prefix
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 507, in spawn_worker
worker.init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/ggevent.py", line 192, in init_process
super(GeventWorker, self).init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 118, in init_process
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 355, in import_app
__import__(module)
File "/opt/alarmdecoder-webapp/wsgi.py", line 24, in <module>
from ad2web import create_app
File "/opt/alarmdecoder-webapp/ad2web/__init__.py", line 3, in <module>
from app import create_app
File "/opt/alarmdecoder-webapp/ad2web/app.py", line 30, in <module>
from .decoder import decodersocket, Decoder, create_decoder_socket
File "/opt/alarmdecoder-webapp/ad2web/decoder.py", line 27, in <module>
from .updater import Updater
File "/opt/alarmdecoder-webapp/ad2web/updater/__init__.py", line 1, in <module>
from .models import Updater
File "/opt/alarmdecoder-webapp/ad2web/updater/models.py", line 15, in <module>
from pip.locations import build_prefix, src_prefix
ImportError: cannot import name build_prefix
[2015-06-13 20:33:49 +0000] [3859] [INFO] Worker exiting (pid: 3859)
[2015-06-13 20:33:49 +0000] [3837] [INFO] Shutting down: Master
[2015-06-13 20:33:49 +0000] [3837] [INFO] Reason: Worker failed to boot.
I also tried initializing the database, but no much luck here.
So the question is: why updating/upgrading the OS is cauing so many issues?