Webapp- Permission denied during setup

General Discussion

Webapp- Permission denied during setup

Postby jac014 » 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.
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 4111 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!
jac014
newt
newt
 
Posts: 1
Joined: Tue Sep 23, 2014 12:58 pm

Re: Webapp- Permission denied during setup

Postby kevin » Thu Oct 02, 2014 6:14 pm

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.
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


Return to General

Who is online

Users browsing this forum: No registered users and 28 guests

cron