Note that there are some explanatory texts on larger screens.

plurals
  1. POInstall new relic Django 1.5 in virtualenv with supervisord
    primarykey
    data
    text
    <p>I've a completely good running Django site on a production server with Django 1.5 inside a virtualenv and controlled with supervisord.</p> <p>I cannot however get the new relic monitoring going. Everything starts fine, but my application is not showing in the new relic dashboard.</p> <p>here is my supervisor config:</p> <pre><code>[program:&lt;PROJECTNAME&gt;] process_name=gunicorn directory=/var/www/&lt;PROJECTNAME&gt;/&lt;PROJECTNAME&gt; environment= DJANGO_SETTINGS_MODULE='settings.prod', SECRET_KEY='xxx', DB_USER='xxx', DB_PASSWD='xxx', NEW_RELIC_CONFIG_FILE="/var/www/&lt;PROJECTNAME&gt;/newrelic.ini" command=/var/www/&lt;PROJECTNAME&gt;/env/bin/newrelic-admin run-program /var/www/&lt;PROJECTNAME&gt;/env/bin/gunicorn wsgi:application -c /var/www/&lt;PROJECTNAME&gt;/&lt;PROJECTNAME&gt;/gunicorn_settings.py group=www-data autostart=True stdout_logfile = /var/log/webapps/&lt;PROJECTNAME&gt;/gunicorn.log logfile_maxbytes = 100MB redirect_stderr=True </code></pre> <p>And this is the gunicorn_settings config file:</p> <pre><code>pythonpath = '/var/www/&lt;PROJECTNAME&gt;/' pidfile = '/tmp/&lt;PROJECTNAME&gt;.pid' user = 'www-data' group = 'www-data' proc_name = '&lt;PROJECTNAME' workers = 2 bind = 'unix:/tmp/gunicorn-&lt;PROJECTNAME&gt;.sock' stdout_logfile = '/var/log/gunicorn/&lt;PROJECTNAME&gt;.log' loglevel = 'debug' debug = True </code></pre> <p>wsgi.py contains an extra pythonpath /var/www/</p> <p>I've another Django 1.2 site running inside a virtualenv with supervisor and new relic on the same server just fine.</p>
    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.
    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