Running all scripts fails after upgrade to 4.1.2 #17907
Replies: 9 comments 9 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.
-
Thx. Is the fix included in the release 4.2.5?
BR Markus
Von: iamjpy ***@***.***>
Gesendet: Freitag, 28. Februar 2025 18:58
An: netbox-community/netbox ***@***.***>
Cc: Markus Brunner ***@***.***>; Mention ***@***.***>
Betreff: Re: [netbox-community/netbox] Running all scripts fails after upgrade to 4.1.2 (Discussion #17907)
@bruma1972<https://github.com/bruma1972> In case you still need resolution, I submitted a bug report for this which has been addressed
#18722<#18722>
#18728<#18728>
-
Reply to this email directly, view it on GitHub<#17907 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BGFSQ3W2UPCKSGWR7LWKNZT2SCPSDAVCNFSM6AAAAABQ6HE3MSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEMZVGQ3TKMI>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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