Page 1 of 1

apx-idea WSGI Daemon Process Permission Denied Error

Posted: Wed Oct 29, 2014 6:07 am
by aerk
Hello,

I tried to setup a Django project in my server, however I see the following error in the logs:

Code: Select all

[Tue Oct 28 22:36:27 2014] [error] [client 98.126.25.66] (13)Permission denied: mod_wsgi (pid=2245): Unable to connect to WSGI daemon process 'apx-idea' on '/var/run/apache2/wsgi.2144.0.1.sock' after multiple attempts.
When I check the permissions of wsgi.2144.0.1.sock:

Code: Select all

root@server1:/var/run/apache2# ls -la
total 0
drwxr-xr-x  2 root     root  60 Oct 28 19:52 .
drwxr-xr-x 18 root     root 840 Oct 28 19:52 ..
srwx------  1 www-data root   0 Oct 28 19:52 wsgi.2144.0.1.sock
What I understand is that my python process doesn't have access to wsgi.2144.0.1.sock.

Is there a workaround for this issue?

(OS: Debian 7, I used mod_wsgi template to create the virtual host)

Re: apx-idea WSGI Daemon Process Permission Denied Error

Posted: Thu Jan 28, 2016 11:57 pm
by erm3nda
I got exactly that same error and cannot figure out why can't connect.

I'll try later with a plain django app cuz im testing it with wooey (wooify version) and cannot run it.
Maybe will be easier to enable nginx with reverse proxy and just run `python manage.py runserver` in the regular way and point to the correct port.

Anyone is running wsgi at Vesta?

Re: apx-idea WSGI Daemon Process Permission Denied Error

Posted: Mon May 09, 2016 5:11 am
by dragonmaster
I found the same issues on my install, here is the Debian/Ubuntu fix.
viewtopic.php?f=19&t=10867&p=40758

I havent tried this on Centos yet

Re: apx-idea WSGI Daemon Process Permission Denied Error

Posted: Sun Nov 27, 2016 12:07 pm
by yeison.vargas
Update mod_wsgi to 4.5.7 and use socket-user option in WSGIDaemonProcess directive.