ValueError "User.config" must be a "UserConfig" instance #17742
Replies: 5 comments 5 replies
-
Hi @MakoWish I had the same issue and resolved it by deleting the database in Postgre and recreate it using the documentation. |
Beta Was this translation helpful? Give feedback.
-
Thank you, @KriKrixs . Since this was a new build in a lab environment, I just blew the entire VM away and started from scratch last night. I am no longer getting that error. Now... to get LDAP authentication to work! Hahaha |
Beta Was this translation helpful? Give feedback.
-
Hi, I recently upgraded from 3.6.x to 4.1.6 (i did requisite path from 3.6.x to 3.7.8, then onwards to 4.1.6) and since then, adding a new user we get that message above when they try to login. On our system:
I'm not confident with a resolution of just starting again. Nor with the idea that I just delete the database. Where is that solution and how safe? We are not using the ldap plugin. It's just local accounts on the box. |
Beta Was this translation helpful? Give feedback.
-
I just experienced this error for a new docker installation on Unraid. The error occurs when I try to login to Netbox. How can I resolve? |
Beta Was this translation helpful? Give feedback.
-
@dbrummer's fix worked for me. If you can get into the postgres database then you should be able to fix with the query I'm running this docker compose file
Before starting netbox for the first time, I made a postgres role called "netbox" and a database called "netbox" owned by the new netbox role. Then I ran
ran the insert query
restarted the docker compose service, and after it started up I was able to login with the username |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would appreciate some help with this. A colleague at work pointed me to NetBox, and I wanted to test it out. I am attempting to get up and running in my lab, and at the point in the documentation where we test via
python3 manage.py runserver 0.0.0.0:8000 --insecure
, I get a login page, but after entering the credentials I set, I get the error below.Server Error
There was a problem with your request. Please contact an administrator.
The complete exception is provided below:
<class 'ValueError'>
Cannot assign "<netbox.config.Config object at 0x7ace1d5d3680>": "User.config" must be a "UserConfig" instance.
Python version: 3.12.3
NetBox version: 4.1.3
Plugins: None installed
If further assistance is required, please post to the NetBox discussion forum on GitHub.
Home Page
Beta Was this translation helpful? Give feedback.
All reactions