Running all scripts fails after upgrade to 4.1.2 #17907
Replies: 8 comments 7 replies
-
from what version?
Can you show the exact script?
Set DEBUG=True in configuration.py, and restart Netbox, and then the exception will show a full backtrace. Also, I suggest you go to 4.1.5, to pick up the most recent bug fixes, although I'm not aware of a specific issue in 4.1.2-4.1.4 |
Beta Was this translation helpful? Give feedback.
-
i have upgraded from 3.7.x the script is: from extras.scripts import Script i run the netbox in the latest docker environment (3.0.2) here is the debug output |
Beta Was this translation helpful? Give feedback.
-
Adding the correct indentation, with Netbox 4.1.5 I get a different (known) error:
See #17885. Fix here can be applied by hand if you can't wait for next release. EDIT: 4.1.6 with the fix is now out. |
Beta Was this translation helpful? Give feedback.
-
I'm running v4.1.6 on k8s installed with netbox-community/netbox-chart I have the same issue when executing any custom script |
Beta Was this translation helpful? Give feedback.
-
Hi, i have tried your fixes. If i delete the userconfig in the database i am not able to logon with this user again. Also the modification of the script _resuts.html has no impact for me. Here is my traceback as you requested: /opt/netbox/venv/lib/python3.12/site-packages/django/core/handlers/exception.py, line 55, in inner Thx a lot. BR Markus |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hello, Anyone have an update? Running
|
Beta Was this translation helpful? Give feedback.
-
After an update from 4.1.4->4.1.11 , using a tarball, i have a similar issue as OP : scripts won't run from the UI , userconfig.data={}
|
Beta Was this translation helpful? Give feedback.
-
Hello,
after upgrading to Version 4.1.2 most scripts failes to run in gui. If i run the scripts in the cli it work perfectly. Also if i create a simple "Hello World" script it failes as well.
Is there a way to debug this in the gui?
This is the error message:
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 'available_columns'
Python version: 3.12.3
NetBox version: 4.1.2
Plugins:
netbox_bgp: 0.14.0
Any ideas?
Thx and BR Markus
Beta Was this translation helpful? Give feedback.
All reactions