Installation error: netbox.wsgi (code=exited, status=217/USER)

324 views
Skip to first unread message

Evgeney Yashnikov

unread,
Jan 27, 2020, 4:36:58 AM1/27/20
to NetBox
web server: nginx
OS: CentOS 7
I install netbox according to the instructions: https://netbox.readthedocs.io/en/stable/installation/3-http-daemon/
When executing a command "$ sudo systemctl start netbox.service" netbox.service don't start:

[XXX ~]$ sudo systemctl status netbox.service -l                                                    
● netbox.service - NetBox WSGI Service                                                                               
   Loaded: loaded (/etc/systemd/system/netbox.service; enabled; vendor preset: disabled)                             
   Active: activating (auto-restart) (Result: exit-code) since Mon 2020-01-27 11:51:53 MSK; 24s ago                  
     Docs: https://netbox.readthedocs.io/en/stable/                                                                  
  Process: 5922 ExecStart=/usr/local/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi (code=exited, status=217/USER)                                                    
 Main PID: 5922 (code=exited, status=217/USER)


/opt/netbox/gunicorn.py:

bind = '127.0.0.1:8001'
workers = 5
threads = 3
timeout = 120
max_requests = 5000
max_requests_jitter = 500
user = 'nginx'


Please tell me where I can error?

Brian Candler

unread,
Jan 27, 2020, 6:02:54 AM1/27/20
to NetBox
journalctl -eu netbox

Evgeney Yashnikov

unread,
Jan 28, 2020, 2:33:26 AM1/28/20
to NetBox
Thanks, Im feel stupid:
I mindlessly copied from the netbox repository.service and netbox-rq.service without looking at their contents. In them, the user 'www-data' — replacing it with 'nginx' solved the problem.


понедельник, 27 января 2020 г., 14:02:54 UTC+3 пользователь Brian Candler написал:
journalctl -eu netbox

Adam Batey

unread,
Apr 19, 2020, 8:11:02 PM4/19/20
to NetBox
Hi,

I'm having he same issue -  where are these 2 files located?

Regards
Reply all
Reply to author
Forward
0 new messages