Re: [netbox-discuss] code=exited, status=203/EXEC

17 views
Skip to first unread message

Rob Duffy

unread,
Dec 16, 2020, 1:18:34 PM12/16/20
to decbe...@gmail.com, NetBox
The systemd logs for Netbox should have some clues. 

journalctl -u netbox

On Wed, 16 Dec 2020 at 12:09, decbe...@gmail.com <decbe...@gmail.com> wrote:

Hi,

i have gone to my netbox deployment today and found i have issues with the Apache web service, a common one from what ive read online..

" Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Apache/2.4.29 (Ubuntu) Server at 100.64.100.5 Port 443"

although ive been unsuccessful fixing this,

root@netbox:~# cat /etc/systemd/system/netbox
cat: /etc/systemd/system/netbox: No such file or directory
root@netbox:~# cat /etc/systemd/system/netbox.service
[Unit]
Description=NetBox WSGI Service
Documentation=https://netbox.readthedocs.io/en/stable/
After=network-online.target
Wants=network-online.target

[Service]
Type=simple

User=netbox
Group=netbox
PIDFile=/var/tmp/netbox.pid
WorkingDirectory=/opt/netbox

ExecStart=/opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi

Restart=on-failure
RestartSec=30
PrivateTmp=true

[Install]
WantedBy=multi-user.target
root@netbox:~#
root@netbox:~#
root@netbox:~# systemctl status netbox
● netbox.service - NetBox WSGI Service
   Loaded: loaded (/etc/systemd/system/netbox.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Wed 2020-12-16 11:06:56 GMT; 26s ago
     Docs: https://netbox.readthedocs.io/en/stable/
  Process: 19592 ExecStart=/opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi (code=exited, status=1/FAILURE)
 Main PID: 19592 (code=exited, status=1/FAILURE)

Dec 16 11:06:56 netbox systemd[1]: netbox.service: Failed with result 'exit-code'.
root@netbox:~#

tried restarting the service etc but no joy, confirmed i have the gunicorn path,

root@netbox:~# ls /opt/netbox/venv/bin/
activate       chardetect           cl_napalm_validate  easy_install      gunicorn     miniterm.py   netaddr     pip3         python   rqinfo
activate.csh   cl_napalm_configure  django-admin        easy_install-3.6  jsonschema   miniterm.pyc  pasteurize  pip3.6       python3  rqworker
activate.fish  cl_napalm_test       django-admin.py     futurize          markdown_py  napalm        pip         __pycache__  rq       sqlformat
root@netbox:~#

any help would be appriciated.

Thanks,
Dec

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/a67a6c9e-20b8-4773-94ce-3ec2b1deb07bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages