<div dir="ltr"><div><div><div>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<br><br><div style="margin-left:40px">$ ps aux | grep uwsgi<br>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<br>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<br>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<br><br></div>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.<br><br></div>Perhaps you need to try messing with the <a href="http://stackoverflow.com/questions/22071681/permission-denied-nginx-and-uwsgi-socket">chmod-socket</a> parameter? I'm not sure.<br><br></div>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.<br><br></div>Greg<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 9, 2014 at 1:52 PM, Steven Williams <span dir="ltr"><<a href="mailto:theblessedadventhope@gmail.com" target="_blank">theblessedadventhope@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</span><span class="">On 10/09/2014 12:49 PM, Greg Barker wrote:<br>
> Option #2 should work, here's what I have for my uwsgi site.<br>
> Double check your permissions on the directory the uwsgi.sock lives<br>
> in.<br>
><br>
> My nginx conf: location / { uwsgi_pass<br>
> unix:///var/www/my_app/my_virtualenv/run/uwsgi.sock; include<br>
> uwsgi_params; }<br>
<br>
</span>Changed my configuration to use the unix:/// notation. Still no change<br>
as I am getting a 50x type error.<br>
<span class=""><br>
><br>
> Directory permissions: $ ls -la /var/www/my_app/my_virtualenv/run/<br>
> total 12 drwxr-xr-x 2 www-data www-data 4096 Sep 29 13:03 .<br>
> drwxr-xr-x 7 www-data www-data 4096 Jul 22 23:05 .. srwxr-xr-x 1<br>
> www-data www-data    0 Sep 29 13:03 uwsgi.sock<br>
<br>
</span>The permission bits match (755), but they are root. On my system<br>
(Fedora 20 on my laptop; CentOS 7 on my VPS) I do not have a www-data<br>
user or group.<br>
<span class=""><br>
> My vassal contains: [uwsgi] socket =<br>
> /var/www/my_app/my_virtualenv/run/uwsgi.sock uid = www-data gid =<br>
> www-data<br>
<br>
</span>I don't have a vassal setup, but that doesn't make a huge difference<br>
for just testing does it?<br>
<br>
Is there a good, current thorough guide that I can follow?<br>
<span class=""><br>
<br>
Steven Williams<br>
My PGP Key: <a href="http://pgp.mit.edu/pks/lookup?op=get&search=0xCACA6C74669A54FA" target="_blank">http://pgp.mit.edu/pks/lookup?op=get&search=0xCACA6C74669A54FA</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1<br>
<br>
</span>iQIcBAEBAgAGBQJUNvWVAAoJEMrKbHRmmlT6rgkP/3oFcVvKss3Aaf9Vv9BkOxmL<br>
U3t6TZ72MNpWZhDHz85iOSKrElr7ehiXwIpgEC+Id+2+cJzHPIoBsakw94vcqUeK<br>
pVhI8yJ7rqLVryXLYo5rFnXyQl4AvOP6HlRUPPbtGuF81BaAGYi5kuUQdddLzK7T<br>
558wycBN7ZhO5+/UTKqHEohlp+cc9StTkxzy5tcI5/2mJjYkxcusPua1dTW3hJjg<br>
rypT7S0QBA9pwahdVHdSofySnwNG53fvE4gmwlkDpxJzS04gNw4LHsKeP4v9dU3X<br>
5Qiibmtfd2GKw8C4JpPfJXsqObJHyc6sIRP2bHZ102QekwidgeXE7LpZTn9jHl4b<br>
PYN22at8PPBNSWmPnxiEMIvPvAWDeoS1390ADUGFQ4nDK9iM/DTWaQ1u+T59XooB<br>
oXYuzCSqgKmDN5aRYfLQRpEXORb/ur6LCQfCLlthuSZJnPt1jeUtz9zJghos88i2<br>
vXyJo2DKswYEV9gwoeeStntZ/NfKib990lUS5R47e5yE9y2JXk1jPi8VeZ2omWVl<br>
SMKNQF/6w30625OQEXLxylG8Yjxzkox/Cz33+ywL179UZghmNY5X4vHrH22DpjVA<br>
FIFjDlkC5KfuhMf7jvFhummL9u9DVFaWXZTpDTvb/POrFdJJH2p1eDcNgzfV0mqK<br>
i30xy/3rHRgGZpT/1sWL<br>
=afHF<br>
<div class="HOEnZb"><div class="h5">-----END PGP SIGNATURE-----<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>