<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi there,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">new user here and I've been trying to set up a Flask app using the tutorial here:  <a href="https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-centos-7" style="font-family:Arial,Helvetica,sans-serif">https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-centos-7</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">The Flask app just runs a Python script and I render a page with the output.  The script calls the FlexLM lmstat command line utility and gets a list of license features in use.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I can run the Flask app in standalone mode using 'flask run', but if I try to run the uwsgi app, I get a file not found error from lmstat itself.  If I copy the shell command my script is running and run that in a shell, I get the correct output it's not a typo in my setup.  If I update my script to read the license files then it also opens them with no issues.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">So what is it about running shell commands under uwsgi/nginx that could cause this symptom?  I've modified permissions to make the license file readable by all so I don't think it's permissions.  Bit stuck as to what to check next.  uwsgi.ini follows.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Shareef.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">[uwsgi]<br>module = wsgi<br><br>master = true<br>processes = 5<br>logto = /tmp/flexlm.log<br>socket = flexlm.sock<br>chmod-socket = 666<br>vacuum = true<br>    <br>die-on-term = true<br></div></div>