Webapp- Permission denied during setup
Posted: Thu Oct 02, 2014 5:44 pm
Hello,
I have been attempting to get the webapp raspi image setup with an ad2usb but am unsuccessful during the setup process. I am getting a permissions denied error.
I've set the gunicorn logging to debug and this is the only error I can find, though the times don't sync exactly to when the error is received in the web app.
I am able to access the ad2usb interface via minicom/screen without issue.
If I give full access permissions to /dev/ttyusb0 and restart gunicorn, the error changes to "Error opening device on /dev/ttyUSB0.: Device or resource busy". I had it working at one point, but I am not sure what the sequence of events was to get it working. Regardless, a reboot brought it back to this state.
Thank you for any help!
I have been attempting to get the webapp raspi image setup with an ad2usb but am unsuccessful during the setup process. I am getting a permissions denied error.
I've set the gunicorn logging to debug and this is the only error I can find, though the times don't sync exactly to when the error is received in the web app.
- Code: Select all
AttributeError: 'socket' object has no attribute 'cfg_addr'
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 193, in init_process
super(GeventWorker, self).init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 120, in init_process
self.run()
File "/usr/local/lib/python2.7/dist-packages/socketio/sgunicorn.py", line 80, in run
**ssl_args
File "/usr/local/lib/python2.7/dist-packages/socketio/server.py", line 72, in __init__
address = args[0].cfg_addr[0]
AttributeError: 'socket' object has no attribute 'cfg_addr'
I am able to access the ad2usb interface via minicom/screen without issue.
If I give full access permissions to /dev/ttyusb0 and restart gunicorn, the error changes to "Error opening device on /dev/ttyUSB0.: Device or resource busy". I had it working at one point, but I am not sure what the sequence of events was to get it working. Regardless, a reboot brought it back to this state.
Thank you for any help!