netbox: ERROR (spawn error)

2,340 views
Skip to first unread message

Neiko

unread,
Jul 23, 2017, 5:37:17 AM7/23/17
to NetBox
HI Guys,

Im having a hard time installing netbox on Ubuntu 12.  Apache and Gunicorn are running ok, but netbox wont start.  See errors below:

ubuntu:~$ sudo supervisorctl start netbox
netbox: ERROR (spawn error

ubuntu:~$ service supervisor status
supervisor.service - Supervisor process control system for UNIX
   Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2017-07-23 19:24:36 AEST; 10min ago
 Main PID: 1124 (supervisord)
   CGroup: /system.slice/supervisor.service
           └─1124 /usr/bin/python /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf

Jul 23 19:29:37 ubuntu supervisord[1124]: 2017-07-23 19:29:37,651 INFO gave up: netbox entered FATAL state, too many start retries too quickly
Jul 23 19:33:53 ubuntu supervisord[1124]: 2017-07-23 19:33:53,045 INFO spawned: 'netbox' with pid 2789
Jul 23 19:33:53 ubuntu supervisord[1124]: 2017-07-23 19:33:53,217 INFO exited: netbox (exit status 3; not expected)
Jul 23 19:33:54 ubuntu supervisord[1124]: 2017-07-23 19:33:54,220 INFO spawned: 'netbox' with pid 2796
Jul 23 19:33:54 ubuntu supervisord[1124]: 2017-07-23 19:33:54,412 INFO exited: netbox (exit status 3; not expected)
Jul 23 19:33:56 ubuntu supervisord[1124]: 2017-07-23 19:33:56,422 INFO spawned: 'netbox' with pid 2802
Jul 23 19:33:56 ubuntu supervisord[1124]: 2017-07-23 19:33:56,790 INFO exited: netbox (exit status 3; not expected)
Jul 23 19:33:59 ubuntu supervisord[1124]: 2017-07-23 19:33:59,800 INFO spawned: 'netbox' with pid 2808
Jul 23 19:34:00 ubuntu supervisord[1124]: 2017-07-23 19:34:00,077 INFO exited: netbox (exit status 3; not expected)
Jul 23 19:34:01 ubuntu supervisord[1124]: 2017-07-23 19:34:01,080 INFO gave up: netbox entered FATAL state, too many start retries too quickly

Can someone point me in the right direction as to what im going wrong?

Thanks

Neiko

Brian Candler

unread,
Jul 24, 2017, 5:24:58 AM7/24/17
to NetBox
I know this doesn't answer your question, but ubuntu 12.04 has passed its end-of-life date.  It's not supported by Canonical unless you're paying for Ubuntu Advantage and have extended security maintenance.

This means that the vast majority of people in the free/open-source community are no longer using ubuntu 12.04, so you're unlikely to find anyone to help you with a problem in a public forum such as this one.

If you are making a fresh installation of Netbox, then I would suggest using Ubuntu 16.04 as the base.

Having said all that: your problem seems to be that supervisord is unable to start gunicorn.  Check what you've put in /etc/supervisor/supervisord.conf, and try starting gunicorn manually using the same commands.  You may find a more helpful error message.  Also check in gunicorn logs.

Good luck,

Brian.

Neiko

unread,
Jul 24, 2017, 6:22:15 AM7/24/17
to NetBox
Hi Brian, sorry mate it was late when I posted this and I was installing Parallels.. 12.. But Ubuntu 16..

Im going to try again on a fresh install.  I tried Centos 7 at first, but had more issues with that.. of course haha

Thanks mate

Neiko

unread,
Jul 24, 2017, 6:26:08 AM7/24/17
to NetBox
I'll check my supervisord.conf and gunicorn first though.  Thanks Brian

Donnchadh Woods

unread,
Sep 7, 2018, 7:55:47 AM9/7/18
to NetBox
Hey Neiko

Any luck with getting this resovled ?

I have the same issue  - running Ubuntu 17

Thanks,
Wo0dsi3

Geert Reijnders

unread,
Feb 8, 2019, 4:12:27 AM2/8/19
to NetBox
had this problem as well. But in the update I forgot one command:
cp netbox-X.Y.Z/gunicorn_config.py netbox/gunicorn_config.py

After that, the restart was OK.



Op vrijdag 7 september 2018 13:55:47 UTC+2 schreef Donnchadh Woods:
Reply all
Reply to author
Forward
0 new messages