<div dir="ltr">As far as I know, only the uWSGI process creates the sockets. Are you using unix sockets or network sockets? <div><br></div><div>Every time I've tried to get unix socks working, I've run into a permissions issue, and I've never had enough time to figure it out. Perhaps someone else on the list can point you in the right way.  Maybe you can try chmoding to 777 and see if that helps.</div><div><br></div><div>I usually go for network sockets bound to 127.0.0.1 for security ("socket = <a href="http://127.0.0.1:7000">127.0.0.1:7000</a>"). If you are using unix socks, you might also try the chown-socket and chmod-socket commands and set to the user/group your web server runs as (usually something like www or nginx) and a 660, 666, or 777.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Anthony Ford,<br>KF5IBN,<div><a href="mailto:ford.anthonyj@gmail.com" target="_blank">ford.anthonyj@gmail.com</a></div></div></div></div>
<br><div class="gmail_quote">On Tue, May 10, 2016 at 4:40 PM, Alex Hall <span dir="ltr"><<a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi all,<br></div>I'm suddenly getting errors, where the socket used by Nginx and UWSGI isn't reachable because of permission problems. This didn't happen until I restarted both services (Nginx was acting up; I didn't restart it to try to restart my app). Is there a specific order in which these pieces have to be started or stopped to avoid problems, or is this something different? I didn't change the socket details in any configuration file, so it almost has to be the restarting of both services. Thanks.<span class="HOEnZb"><font color="#888888"><br clear="all"><div><div><br>-- <br><div><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div></div></font></span></div>
<br>_______________________________________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
<br></blockquote></div><br></div>