Replies: 7 comments 7 replies
-
Interestingly I don't get the error when accessing the main page using the IP rather than the hostname even though the IP resolves correctly.... Tried changing nginx sites_availble server_name to the fqdn of the server rather than it's IP and restarted netbox, netbox-rq and nginx but same error. |
Beta Was this translation helpful? Give feedback.
-
Quick check — have you updated your NetBox configuration to match the latest example? DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql", # Database engine
"NAME": "netbox", # Database name
"USER": "", # PostgreSQL username
"PASSWORD": "", # PostgreSQL password
"HOST": "localhost", # Database server (hostname or IP)
"PORT": "", # Database port (leave blank for default)
"CONN_MAX_AGE": 300, # Max database connection age (seconds)
}
} |
Beta Was this translation helpful? Give feedback.
-
Also tcpdump shows no weirdness in https communication but just for good measure I've also turned off the VM to confirm that there's no duplicate IP |
Beta Was this translation helpful? Give feedback.
-
Unfortunately still the same error setup like this: ![]() |
Beta Was this translation helpful? Give feedback.
-
When the VM first came up from the reboot the error was the same but refreshing the page later on brought it up! For completeness I reverted the ALLOWED_HOSTS to only the IP to narrow down which setting exactly is causing the issue and after a reboot it's back to the error again so I went back to the complete list of ALLOWED_HOSTS and rebooted and now again the error so waiting to see if refreshing after a while will bring back the page. netbox, netbox-rq and nginx all look happy according the systemct status though. So far have tried every few minutes for 15 minutes and still the error. |
Beta Was this translation helpful? Give feedback.
-
I've destroyed and redeployed the VM with the settings above which worked once previously but still the bad request with hostname, I can login to the UI via the IP no hassle and everything looks normal. |
Beta Was this translation helpful? Give feedback.
-
after logging in via the GUI using the IP, I went back to https://fqdn and it's working now..... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, I've followed the installation steps precisely but get a bad request 400.
OS: Ubuntu 24.04
Netbox: v4.4.2
Here's the output to the verification done at the end of each installation step:
postgresql
Reddis
Netbox
Gunicorn
And finally the error with HTTP:
I've tried enabling info level logging in Nginx but the error log doesn't show much:
Beta Was this translation helpful? Give feedback.
All reactions