First time installing NetBox, and running into a Bad Gateway error after following the instructions. Trying to run the gunicorn path manually returns the following:
netbox@oeg-srv20:~$ gunicorn -c /opt/netbox/gunicorn_config.py netbox.wsgi
[2017-08-21 15:27:28 -0600] [18205] [INFO] Starting gunicorn 19.7.1
[2017-08-21 15:27:28 -0600] [18205] [INFO] Using worker: sync
[2017-08-21 15:27:28 -0600] [18205] [INFO] Unhandled exception in main loop
Traceback (most recent call last):
File "/home/netbox/.local/lib/python3.5/site-packages/gunicorn/arbiter.py", line 202, in run
self.manage_workers()
File "/home/netbox/.local/lib/python3.5/site-packages/gunicorn/arbiter.py", line 544, in manage_workers
self.spawn_workers()
File "/home/netbox/.local/lib/python3.5/site-packages/gunicorn/arbiter.py", line 611, in spawn_workers
self.spawn_worker()
File "/home/netbox/.local/lib/python3.5/site-packages/gunicorn/arbiter.py", line 564, in spawn_worker
self.cfg, self.log)
File "/home/netbox/.local/lib/python3.5/site-packages/gunicorn/workers/base.py", line 57, in __init__
self.tmp = WorkerTmp(cfg)
File "/home/netbox/.local/lib/python3.5/site-packages/gunicorn/workers/workertmp.py", line 26, in __init__
util.chown(name, cfg.uid, cfg.gid)
File "/home/netbox/.local/lib/python3.5/site-packages/gunicorn/util.py", line172, in chown
os.chown(path, uid, gid)
PermissionError: [Errno 1] Operation not permitted: '/tmp/wgunicorn-u_z68whl'
Any suggestions would be welcome.