Page 1 of 1

Webapp- Permission denied during setup

PostPosted: Thu Oct 02, 2014 5:44 pm
by jac014
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.
Screen Shot 2014-10-02 at 9.23.22 PM.png
Screen Shot 2014-10-02 at 9.23.22 PM.png (53.32 KiB) Viewed 4112 times

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!

Re: Webapp- Permission denied during setup

PostPosted: Thu Oct 02, 2014 6:14 pm
by kevin
Device or Resource Busy indicates that something is already using the serial port. Please make sure nothing is using the serial port other than ser2sock or the webapp itself.