On 18.04 I get the following errors after installing the web server and service
netbox-user@netbox-1804:/opt/netbox$ journalctl -xe
May 22 18:02:30 netbox-1804 systemd[1]: Reloading.
May 22 18:02:30 netbox-1804 sudo[2479]: pam_unix(sudo:session): session closed for user root
May 22 18:02:44 netbox-1804 sudo[2515]: netbox-user : TTY=pts/0 ; PWD=/opt/netbox-2.8.4 ; USER=root ; COMMAND=/bin/systemctl start netbox netbox-rq
May 22 18:02:44 netbox-1804 sudo[2515]: pam_unix(sudo:session): session opened for user root by netbox-user(uid=0)
May 22 18:02:44 netbox-1804 systemd[1]: Started NetBox WSGI Service.
-- Subject: Unit netbox.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit netbox.service has finished starting up.
--
-- The start-up result is RESULT.
May 22 18:02:44 netbox-1804 systemd[2518]: netbox.service: Failed to execute command: No such file or directory
May 22 18:02:44 netbox-1804 systemd[2518]: netbox.service: Failed at step EXEC spawning /opt/netbox/venv/bin/gunicorn: No such file or directory
-- Subject: Process /opt/netbox/venv/bin/gunicorn could not be executed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The process /opt/netbox/venv/bin/gunicorn could not be executed and failed.
--
-- The error number returned by this process is 2.
May 22 18:02:44 netbox-1804 systemd[1]: netbox.service: Main process exited, code=exited, status=203/EXEC
May 22 18:02:44 netbox-1804 sudo[2515]: pam_unix(sudo:session): session closed for user root
May 22 18:02:44 netbox-1804 systemd[1]: netbox.service: Failed with result 'exit-code'.
May 22 18:02:44 netbox-1804 systemd[1]: Started NetBox Request Queue Worker.
-- Subject: Unit netbox-rq.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit netbox-rq.service has finished starting up.
--
-- The start-up result is RESULT.
May 22 18:02:44 netbox-1804 sudo[2532]: netbox-user : TTY=pts/0 ; PWD=/opt/netbox-2.8.4 ; USER=root ; COMMAND=/bin/systemctl enable netbox netbox-rq
May 22 18:02:44 netbox-1804 sudo[2532]: pam_unix(sudo:session): session opened for user root by netbox-user(uid=0)
May 22 18:02:44 netbox-1804 systemd[1]: Reloading.
May 22 18:02:44 netbox-1804 python3[2531]: Traceback (most recent call last):
May 22 18:02:44 netbox-1804 python3[2531]: File "/opt/netbox/netbox/manage.py", line 8, in <module>
May 22 18:02:44 netbox-1804 python3[2531]: from django.core.management import execute_from_command_line
May 22 18:02:44 netbox-1804 python3[2531]: ModuleNotFoundError: No module named 'django'
May 22 18:02:44 netbox-1804 sudo[2532]: pam_unix(sudo:session): session closed for user root
May 22 18:02:44 netbox-1804 systemd[1]: netbox-rq.service: Main process exited, code=exited, status=1/FAILURE
May 22 18:02:44 netbox-1804 systemd[1]: netbox-rq.service: Failed with result 'exit-code'.
and on 20.04
netbox-user@netbox-primus:/opt/netbox/venv/bin$ journalctl -xe
-- The job identifier is 8013.
May 22 18:34:48 netbox-primus systemd[3510]: netbox.service: Failed to execute command: No such file or directory
May 22 18:34:48 netbox-primus systemd[3510]: netbox.service: Failed at step EXEC spawning /opt/netbox/venv/bin/gunicorn: No such file or directory
-- Subject: Process /opt/netbox/venv/bin/gunicorn could not be executed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The process /opt/netbox/venv/bin/gunicorn could not be executed and failed.
--
-- The error number returned by this process is ERRNO.
May 22 18:34:48 netbox-primus systemd[1]: netbox.service: Main process exited, code=exited, status=203/EXEC
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit netbox.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 203.
May 22 18:34:48 netbox-primus systemd[1]: netbox.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit netbox.service has entered the 'failed' state with result 'exit-code'.
May 22 18:34:48 netbox-primus python3[3509]: Traceback (most recent call last):
May 22 18:34:48 netbox-primus python3[3509]: File "/opt/netbox/netbox/manage.py", line 8, in <module>
May 22 18:34:48 netbox-primus python3[3509]: from django.core.management import execute_from_command_line
May 22 18:34:48 netbox-primus python3[3509]: ModuleNotFoundError: No module named 'django'
May 22 18:34:48 netbox-primus systemd[1]: netbox-rq.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit netbox-rq.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
May 22 18:34:48 netbox-primus systemd[1]: netbox-rq.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit netbox-rq.service has entered the 'failed' state with result 'exit-code'.
Feel like I must be doing something stupid but their is not much to miss in this section https://netbox.readthedocs.io/en/stable/installation/4-http-daemon/