uwsgi problems

Greg Barker fletch at fletchowns.net
Thu Oct 9 21:52:59 UTC 2014


Shouldn't matter that you don't have a www-data user, that just happens to
be the one I am using. I am running uwsgi in emperor mode so my worker
processes have that uid

$ ps aux | grep uwsgi
root       798  0.0  0.0  31748  2296 ?        Ss   Sep29   0:24
/var/www/my_app/my_virtualenv/bin/uwsgi --emperor
/var/www/my_app/my_virtualenv/vassals
www-data   805  0.0  0.4 110688 16944 ?        S    Sep29   0:35
/var/www/my_app/my_virtualenv/bin/uwsgi --ini www.myapp.com.ini
www-data   898  1.2  5.5 413076 213776 ?       S    Sep29 189:06
/var/www/my_app/my_virtualenv/bin/uwsgi --ini www.myapp.com.ini

I also don't think it matters that you don't have a vassal setup, probably
doesn't make a big difference just for testing stuff out.

Perhaps you need to try messing with the chmod-socket
<http://stackoverflow.com/questions/22071681/permission-denied-nginx-and-uwsgi-socket>
parameter? I'm not sure.

I don't know of a good guide to follow, I had to piece mine together from a
bunch of different guides of varying quality until I got it working.

Greg

On Thu, Oct 9, 2014 at 1:52 PM, Steven Williams <
theblessedadventhope at gmail.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/09/2014 12:49 PM, Greg Barker wrote:
> > Option #2 should work, here's what I have for my uwsgi site.
> > Double check your permissions on the directory the uwsgi.sock lives
> > in.
> >
> > My nginx conf: location / { uwsgi_pass
> > unix:///var/www/my_app/my_virtualenv/run/uwsgi.sock; include
> > uwsgi_params; }
>
> Changed my configuration to use the unix:/// notation. Still no change
> as I am getting a 50x type error.
>
> >
> > Directory permissions: $ ls -la /var/www/my_app/my_virtualenv/run/
> > total 12 drwxr-xr-x 2 www-data www-data 4096 Sep 29 13:03 .
> > drwxr-xr-x 7 www-data www-data 4096 Jul 22 23:05 .. srwxr-xr-x 1
> > www-data www-data    0 Sep 29 13:03 uwsgi.sock
>
> The permission bits match (755), but they are root. On my system
> (Fedora 20 on my laptop; CentOS 7 on my VPS) I do not have a www-data
> user or group.
>
> > My vassal contains: [uwsgi] socket =
> > /var/www/my_app/my_virtualenv/run/uwsgi.sock uid = www-data gid =
> > www-data
>
> I don't have a vassal setup, but that doesn't make a huge difference
> for just testing does it?
>
> Is there a good, current thorough guide that I can follow?
>
>
> Steven Williams
> My PGP Key: http://pgp.mit.edu/pks/lookup?op=get&search=0xCACA6C74669A54FA
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iQIcBAEBAgAGBQJUNvWVAAoJEMrKbHRmmlT6rgkP/3oFcVvKss3Aaf9Vv9BkOxmL
> U3t6TZ72MNpWZhDHz85iOSKrElr7ehiXwIpgEC+Id+2+cJzHPIoBsakw94vcqUeK
> pVhI8yJ7rqLVryXLYo5rFnXyQl4AvOP6HlRUPPbtGuF81BaAGYi5kuUQdddLzK7T
> 558wycBN7ZhO5+/UTKqHEohlp+cc9StTkxzy5tcI5/2mJjYkxcusPua1dTW3hJjg
> rypT7S0QBA9pwahdVHdSofySnwNG53fvE4gmwlkDpxJzS04gNw4LHsKeP4v9dU3X
> 5Qiibmtfd2GKw8C4JpPfJXsqObJHyc6sIRP2bHZ102QekwidgeXE7LpZTn9jHl4b
> PYN22at8PPBNSWmPnxiEMIvPvAWDeoS1390ADUGFQ4nDK9iM/DTWaQ1u+T59XooB
> oXYuzCSqgKmDN5aRYfLQRpEXORb/ur6LCQfCLlthuSZJnPt1jeUtz9zJghos88i2
> vXyJo2DKswYEV9gwoeeStntZ/NfKib990lUS5R47e5yE9y2JXk1jPi8VeZ2omWVl
> SMKNQF/6w30625OQEXLxylG8Yjxzkox/Cz33+ywL179UZghmNY5X4vHrH22DpjVA
> FIFjDlkC5KfuhMf7jvFhummL9u9DVFaWXZTpDTvb/POrFdJJH2p1eDcNgzfV0mqK
> i30xy/3rHRgGZpT/1sWL
> =afHF
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20141009/fabfb5db/attachment-0001.html>


More information about the nginx mailing list