Hey everyone,
I'm new(ish) to linux, but can follow directions, tail a log, and have been using ubuntu server on and off for the past few years. Trying to install netbox, and 'seemed' to be able to follow instructions all the way through.
However when I test of course it fails.
Getting error 503 in browswer
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.18 (Ubuntu) Server at 192.168.20.8 Port 8081
[Mon Nov 13 18:12:03.558979 2017] [proxy:error] [pid 1870] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:8001 (127.0.0.1) failed
[Mon Nov 13 18:12:03.559163 2017] [proxy:error] [pid 1870] AH00959: ap_proxy_connect_backend disabling worker for (127.0.0.1) for 60s
[Mon Nov 13 18:12:03.559224 2017] [proxy_http:error] [pid 1870] [client 192.168.20.59:59932] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
[Mon Nov 13 18:12:03.675474 2017] [proxy:error] [pid 1873] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:8001 (127.0.0.1) failed
[Mon Nov 13 18:12:03.675593 2017] [proxy:error] [pid 1873] AH00959: ap_proxy_connect_backend disabling worker for (127.0.0.1) for 60s
[Mon Nov 13 18:12:03.675642 2017] [proxy_http:error] [pid 1873] [client 192.168.20.59:59933] AH01114: HTTP: failed to make connection to backend: 127.0.0.1, referer: http://192.168.20.8:8081/
I've verified that SELinux is not installed.
I've verified that PIP and django are installed as well as gunicorn, wsgi, and supervisor.
Trying to find the cause, I tried running gunicorn manually, and I got these errors.
sudo gunicorn -c /opt/netbox/gunicorn_config.py netbox.wsgi
[2017-11-13 18:16:53 -0500] [1973] [INFO] Starting gunicorn 19.7.1
[2017-11-13 18:16:53 -0500] [1973] [INFO] Listening at: http://127.0.0.1:8001 (1973)
[2017-11-13 18:16:53 -0500] [1973] [INFO] Using worker: sync
[2017-11-13 18:16:53 -0500] [1976] [INFO] Booting worker with pid: 1976
[2017-11-13 18:16:53 -0500] [1976] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 578, in spawn_worker
worker.init_process()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 126, in init_process
self.load_wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 135, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 352, in import_app
__import__(module)
File "/opt/netbox/netbox/netbox/wsgi.py", line 12, in <module>
from django.core.wsgi import get_wsgi_application
ImportError: No module named 'django'
[2017-11-13 18:16:53 -0500] [1976] [INFO] Worker exiting (pid: 1976)
[2017-11-13 18:16:53 -0500] [1977] [INFO] Booting worker with pid: 1977
[2017-11-13 18:16:53 -0500] [1977] [ERROR] Exception in worker process
Any suggestions? I'm trying to run this on a different port 80 as I have another IPAM that I have in use and need to leave up till I get this working.