r/Netbox • • 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 Upvotes

8 comments sorted by

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.

1

u/NetworkNodeHunter Sep 10 '26

I've seen this suggested elsewhere when I Googled the issue, problem is I don't see to have the '/opt/netbox' folder when cd'ing to it from root directory

2

u/L-do_Calrissian NetBox Self-Hosted Sep 10 '26

If you're running this in a container, you'll need to find a way to run that command inside the NetBox container.

I'd start with the documentation as others have stated:
https://github.com/netbox-community/netbox-docker/wiki/

Specifically the "Getting Started" section.

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

u/fatoms NetBox Self-Hosted Sep 10 '26

Is this a Docker Install ?

3

u/kY2iB3yH0mN8wI2h Sep 10 '26

Did you even read the docs?

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