-
I'm having issues installing netbox. I get as far as the Gunicorn steps and receive an error when attempting to start the netbox service (code=exited, status=203/EXEC). I'm having the same issue as this post: https://groups.google.com/g/netbox-discuss/c/yh6Hb69K-oo I've attached the journalctl and systemctl status outputs Any advice? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
Code 203 from systemd simply means "unable to start the process". Maybe it doesn't exist at the path you gave, or maybe permissions are set wrongly. I suggest you test this by running the "ExecStart" line directly from the command line, making sure you do this as the "netbox" user (assuming your systemd unit file has
What response do you get from that? |
Beta Was this translation helpful? Give feedback.
-
[abanta@netbox-p001 ~]$ sudo -u netbox /opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
[sudo] password for abanta:
Error: [Errno 13] Permission denied: '/home/abanta'
[abanta@netbox-p001 ~]$
however, if I run it as myself:
[abanta@netbox-p001 ~]$ /opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py netbox.wsgi
[2022-02-11 11:48:52 -0700] [636796] [INFO] Starting gunicorn 20.1.0
[2022-02-11 11:48:52 -0700] [636796] [INFO] Listening at: http://127.0.0.1:8001 (636796)
[2022-02-11 11:48:52 -0700] [636796] [INFO] Using worker: gthread
[2022-02-11 11:48:52 -0700] [636797] [INFO] Booting worker with pid: 636797
[2022-02-11 11:48:52 -0700] [636798] [INFO] Booting worker with pid: 636798
[2022-02-11 11:48:53 -0700] [636799] [INFO] Booting worker with pid: 636799
[2022-02-11 11:48:53 -0700] [636800] [INFO] Booting worker with pid: 636800
[2022-02-11 11:48:53 -0700] [636801] [INFO] Booting worker with pid: 636801
^C[2022-02-11 11:48:59 -0700] [636796] [INFO] Handling signal: int
[2022-02-11 18:48:59 +0000] [636799] [INFO] Worker exiting (pid: 636799)
[2022-02-11 18:48:59 +0000] [636797] [INFO] Worker exiting (pid: 636797)
[2022-02-11 18:48:59 +0000] [636800] [INFO] Worker exiting (pid: 636800)
[2022-02-11 18:48:59 +0000] [636801] [INFO] Worker exiting (pid: 636801)
[2022-02-11 18:48:59 +0000] [636798] [INFO] Worker exiting (pid: 636798)
[2022-02-11 11:48:59 -0700] [636796] [INFO] Shutting down: Master
[abanta@netbox-p001 ~]$
|
Beta Was this translation helpful? Give feedback.
-
I believe this is an error from where you are running the command. Try
doing 'cd /tmp' before doing sudo
…On 2/11/22 13:50, abanta1 wrote:
***@***.*** ~]$ sudo -u netbox /opt/netbox/venv/bin/gunicorn --pid
/var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config
/opt/netbox/gunicorn.py netbox.wsgi
[sudo] password for abanta:
Error: [Errno 13] Permission denied: '/home/abanta'
***@***.*** ~]$
however, if I run it as myself:
***@***.*** ~]$ /opt/netbox/venv/bin/gunicorn --pid
/var/tmp/netbox.pid --pythonpath /opt/netbox/netbox --config
/opt/netbox/gunicorn.py netbox.wsgi
[2022-02-11 11:48:52 -0700] [636796] [INFO] Starting gunicorn 20.1.0
[2022-02-11 11:48:52 -0700] [636796] [INFO] Listening at:
http://127.0.0.1:8001 (636796)
[2022-02-11 11:48:52 -0700] [636796] [INFO] Using worker: gthread
[2022-02-11 11:48:52 -0700] [636797] [INFO] Booting worker with pid:
636797
[2022-02-11 11:48:52 -0700] [636798] [INFO] Booting worker with pid:
636798
[2022-02-11 11:48:53 -0700] [636799] [INFO] Booting worker with pid:
636799
[2022-02-11 11:48:53 -0700] [636800] [INFO] Booting worker with pid:
636800
[2022-02-11 11:48:53 -0700] [636801] [INFO] Booting worker with pid:
636801
^C[2022-02-11 11:48:59 -0700] [636796] [INFO] Handling signal: int
[2022-02-11 18:48:59 +0000] [636799] [INFO] Worker exiting (pid: 636799)
[2022-02-11 18:48:59 +0000] [636797] [INFO] Worker exiting (pid: 636797)
[2022-02-11 18:48:59 +0000] [636800] [INFO] Worker exiting (pid: 636800)
[2022-02-11 18:48:59 +0000] [636801] [INFO] Worker exiting (pid: 636801)
[2022-02-11 18:48:59 +0000] [636798] [INFO] Worker exiting (pid: 636798)
[2022-02-11 11:48:59 -0700] [636796] [INFO] Shutting down: Master
***@***.*** ~]$
On Feb 11, 2022, at 01:49, Brian Candler ***@***.******@***.***>> wrote:
Code 203 from systemd simply means "unable to start the process".
Maybe it doesn't exist at the path you gave, or maybe permissions are
set wrongly.
I suggest you test this by running the "ExecStart" line directly from
the command line, making sure you do this as the "netbox" user
(assuming your systemd unit file has User=netbox). Like this:
sudo -u netbox /opt/netbox/venv/bin/gunicorn --pid /var/tmp/netbox.pid
--pythonpath /opt/netbox/netbox --config /opt/netbox/gunicorn.py
netbox.wsgi
What response do you get from that?
—
Reply to this email directly, view it on
GitHub<#8606 (comment)>,
or
unsubscribe<https://github.com/notifications/unsubscribe-auth/ADCAZX6NIHZB5LH4R3GM5SDU2TER5ANCNFSM5OBPFNTA>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
—
Reply to this email directly, view it on GitHub
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnetbox-community%2Fnetbox%2Fdiscussions%2F8606%23discussioncomment-2159589&data=04%7C01%7Cjos100%40psu.edu%7Cfa1f8afbace744317dc208d9ed8f596e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637802022209919334%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=wAwmqpMZzR8XTnS9SUO3cyQu%2FIlFvXZmbOaJo1xGltY%3D&reserved=0>,
or unsubscribe
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANYW3MMRJFAHGYDDRNXMXILU2VK6VANCNFSM5OBPFNTA&data=04%7C01%7Cjos100%40psu.edu%7Cfa1f8afbace744317dc208d9ed8f596e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637802022209919334%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=KVAaBpzTy2X14J9gorUCOItd0ZBcxmzhrm4Kg0Lz%2BY0%3D&reserved=0>.
Triage notifications on the go with GitHub Mobile for iOS
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cjos100%40psu.edu%7Cfa1f8afbace744317dc208d9ed8f596e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637802022209919334%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=TdtkzSbLGBde5Prh0%2BtA8X4aePZNUk6h3otWPLY78OY%3D&reserved=0>
or Android
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cjos100%40psu.edu%7Cfa1f8afbace744317dc208d9ed8f596e%7C7cf48d453ddb4389a9c1c115526eb52e%7C0%7C0%7C637802022209919334%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=QrdTGdYD8Bqao3p3sqjwA6viXySOwFsM8m%2FQEZnXiUA%3D&reserved=0>.
You are receiving this because you are subscribed to this
thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Can you show your entire netbox.service? Another possibility is that the netbox user doesn't have access to the WorkingDirectory or home directory set for that user. |
Beta Was this translation helpful? Give feedback.
-
There appears to be a spurious space there. I don't know if that will cause a problem. Check these:
I'm pretty sure this is some sort of permissions problem. |
Beta Was this translation helpful? Give feedback.
-
Is SELinux in use? |
Beta Was this translation helpful? Give feedback.
-
Figured it out - Had to run
then
and finally
Then stopped and started the service and its working now |
Beta Was this translation helpful? Give feedback.
Figured it out -
Had to run
then