Note that there are some explanatory texts on larger screens.

plurals
  1. POuWSGI Application Error
    primarykey
    data
    text
    <p>I followed this <a href="https://library.linode.com/web-servers/nginx/python-uwsgi/ubuntu-12.04-precise-pangolin" rel="nofollow">tutorial</a> to the letter but I'm getting the following error.</p> <hr> <p><h1>uWSGI Error</h1>Python application not found</p> <hr> <p>Here are my configuration files:</p> <ol> <li><p>/etc/nginx/sites-available/example.com (which is symlikned to ../sites-enabled/example.com)</p> <pre><code>server { listen 80; server_name $hostname; access_log /srv/www/example.com/logs/access.log; error_log /srv/www/example.com/logs/error.log; location / { #uwsgi_pass 127.0.0.1:9001; uwsgi_pass unix:///run/uwsgi/app/sofitu.com/example.com.socket; include uwsgi_params; uwsgi_param UWSGI_SCHEME $scheme; uwsgi_param SERVER_SOFTWARE nginx/$nginx_version; } location /static { root /srv/www/example.com/public_html/static/; index index.html index.htm; } } </code></pre></li> <li><p>/etc/uwsgi/apps-available/example.com.xml (symlinked to ../apps-enabled/example.com.xml)</p> <pre><code>&lt;uwsgi&gt; &lt;plugin&gt;python&lt;/plugin&gt; &lt;socket&gt;/run/uwsgi/app/example.com/example.com.socket&lt;/socket&gt; &lt;pythonpath&gt;/srv/www/example.com/application/&lt;/pythonpath&gt; &lt;app mountpoint="/"&gt; &lt;script&gt;wsgi_configuration_module&lt;/script&gt; &lt;/app&gt; &lt;master/&gt; &lt;processes&gt;4&lt;/processes&gt; &lt;harakiri&gt;60&lt;/harakiri&gt; &lt;reload-mercy&gt;8&lt;/reload-mercy&gt; &lt;cpu-affinity&gt;1&lt;/cpu-affinity&gt; &lt;stats&gt;/tmp/stats.socket&lt;/stats&gt; &lt;max-requests&gt;2000&lt;/max-requests&gt; &lt;limit-as&gt;512&lt;/limit-as&gt; &lt;reload-on-as&gt;256&lt;/reload-on-as&gt; &lt;reload-on-rss&gt;192&lt;/reload-on-rss&gt; &lt;no-orphans/&gt; &lt;vacuum/&gt; &lt;/uwsgi&gt; </code></pre></li> <li><p>/srv/www/example.com/application/wsgi_configuration_module.py</p> <pre><code>import os import sys sys.path.append('/srv/www/example.com/application') os.environ['PYTHON_EGG_CACHE'] = '/srv/www/example.com/.python-egg' def application(environ, start_response): status = '200 OK' output = 'Hello World!' response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))] start_response(status, response_headers) return [output] </code></pre></li> </ol> <hr> <p><strong>I have two questions</strong> that I'll preface by saying I am brand new to both nginx and uWSGI configurations.</p> <ol> <li>Obviously, why isn't this working?</li> <li>Where are the uWSGI error logs? Did I need to define their location?</li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload