'NoneType' object has no attribute 'get_absolute_url' #11112
-
I'm currently experiencing this issue and wonder if anyone has any insight in how to figure out the issue. The issue started after upgrading to 3.3.6, and has persisted through each subsequent upgrade from 3.3.7,8, and 9. I've tried a new install on a new server by doing a fresh install and importing the database with the same results. I haven't started with a clean database, as that seems like it would work, and I'm also not sure that I'd be able recreate the steps to reproduce the issue. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 27 replies
-
Now, this is just a wild guess, but if I understood the error location correctly, my guess is that you somehow have IP address object(s) that have inconsistent netbox/netbox/ipam/tables/ip.py Line 378 in db7590d I, for one, had that kind of data problems for some IP objects a long time ago, I detected and fixed them using the API. |
Beta Was this translation helpful? Give feedback.
-
Just experienced the same thing here.. |
Beta Was this translation helpful? Give feedback.
-
Have this error also right now, after upgrading from 3.5.8 to 3.7.8 and then to 4.0.6. SQL query in #11112 (reply in thread) gets 0 rows.
So I assume this could be fixed with a script since we do have at least Somehow the upgrade database migration has messed up each and every IP address in the database. |
Beta Was this translation helpful? Give feedback.
-
Hello, actually i have a similar problem after upgrade to netbox 4.0.6 from 3.7.0. When i modify a permission whit a JSON value i get the following error after clicking save: Server Error There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'AttributeError'> 'NoneType' object has no attribute 'objects' Python version: 3.10.12 Any suggestions here? Thank you |
Beta Was this translation helpful? Give feedback.
Now, this is just a wild guess, but if I understood the error location correctly, my guess is that you somehow have IP address object(s) that have inconsistent
assigned_object_id
and/orassigned_object_type
values. I see the error location (netbox/netbox/ipam/tables/ip.py
Line 378 in db7590d
I, for one, had that kind of data problems for some IP objects a long time ago, I detected and fixed them using the API.