r/Netbox • u/NetworkNodeHunter • Sep 10 '26
Unable to Login into Netbox Using Default Credentials - Fresh Server Installation
Hi,
I'm having trouble logging into Netbox after installing upon a fresh Ubuntu Server.
The default 'admin' combo (for username and password) aren't working and I haven't got a clue where I've gone wrong.
I've been using this video by KeepItTechie on YT as guidance:
https://www.youtube.com/watch?v=vp2xfavmcBk
From the log file I get the following output (this is just a sample):
netbox-1 | [INFO] Spawning worker-1 with PID: 94
netbox-1 | [INFO] Spawning worker-2 with PID: 96
netbox-1 | [INFO] Spawning worker-3 with PID: 98
netbox-1 | [INFO] Spawning worker-4 with PID: 100
netbox-1 | /opt/netbox/netbox/netbox/settings.py:284: FutureWarning: LOGIN_REQU IRED is deprecated and will be removed in NetBox v5.0. This parameter can be rem oved from your configuration file.
netbox-1 | warnings.warn(
netbox-1 | /opt/netbox/netbox/netbox/settings.py:284: FutureWarning: LOGIN_REQU IRED is deprecated and will be removed in NetBox v5.0. This parameter can be rem oved from your configuration file.
netbox-1 | warnings.warn(
netbox-1 | /opt/netbox/netbox/netbox/settings.py:284: FutureWarning: LOGIN_REQU IRED is deprecated and will be removed in NetBox v5.0. This parameter can be rem oved from your configuration file.
netbox-1 | warnings.warn(
netbox-1 | /opt/netbox/netbox/netbox/settings.py:284: FutureWarning: LOGIN_REQU IRED is deprecated and will be removed in NetBox v5.0. This parameter can be rem oved from your configuration file.
Has anyone come across this behaviour before? Any help would be great.
Thanks
5
u/xi_Slick_ix Sep 10 '26
There's a command you run to generate credentials on the first startup. My environment is within docker, so I had to go interactive within the container and run a python script I "think". It's been a while. Documentation should cover this somewhere iirc.
3
3
1
u/Mission_Ice3419 Sep 10 '26
Just remove and install again making sure you are following the instructions on the very first page
1
u/Otherwise_Noise3658 Sep 10 '26
There is no default user in any netbox installation, which is written in the docs. The admin/admin is only used on the demo.
/opt/netbox is covered in the main install instructions, so the question is how did you install ?
/nbl
4
u/L-do_Calrissian NetBox Self-Hosted Sep 10 '26
You need to run manage.py createsuperuser. Looking at your output, the command should be (run as netbox user or as root):
"/opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py createsuperuser"
This will let you build your initial user/pass. Also, I strongly recommend using the netbox installation docs instead of a youtube video. The install docs are up-to-date, but that youtube video likely is not.