Unable to collect any data into newrelic.
Running on Ubuntu 16.04.1 LTS, Django==2.0, gunicorn==19.6.0, newrelic==2.98.0.81
Following is the /etc/systemd/system/gunicorn.service file
[Unit]
Description=gunicorn daemon
After=network.target
[Service]
User=ubuntu
Group=www-data
Environment=NEW_RELIC_CONFIG_FILE=/PATH/TO/newrelic.ini
Environment=NEW_RELIC_ENVIRONMENT=staging
WorkingDirectory=PATH/TO/PROJECTROOT
ExecStart=/PATH/TO/venv/bin/newrelic-admin run-program /PATH/TO/venv/bin/gunicorn --workers 3 --timeout 1800 --bind unix:/PATH/TO/project.sock project.wsgi:application --access-logfile /var/log/gunicorn_project/access.log --error-logfile /var/log/gunicorn_project/error.log
[Install]
WantedBy=multi-user.target
I have tested the config file, and it works. newrelic-admin validate-config newrelic.ini
.
Also, no errors as such while running the gunicorn.service.
systemctl status gunicorn
gives
ubuntu@XX-X-XX-XXX:~$ systemctl status gunicorn
● gunicorn.service - gunicorn daemon
Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-02-10 06:17:20 UTC; 23min ago
Still no data inside the APM.