-
Hi all. I face the server error trying to open Other - Scripts Server Error The complete exception is provided below: <class 'TypeError'> ObjectVar.init() missing 1 required positional argument: 'model' Python version: 3.10.6 I have 2 Netbox installations (v.3.3.1 and v3.4.7). Both of them have the same issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Almost certainly it's something wrong with one of your custom scripts. To get a backtrace, set ADMIN and EMAILS in configuration.py (and it will be E-mailed to you), or set DEBUG=True (and you'll get it in the web interface). This will tell you exactly which file is at fault. The error suggests that there's a script where someone has put Check all files under |
Beta Was this translation helpful? Give feedback.
Almost certainly it's something wrong with one of your custom scripts.
To get a backtrace, set ADMIN and EMAILS in configuration.py (and it will be E-mailed to you), or set DEBUG=True (and you'll get it in the web interface). This will tell you exactly which file is at fault.
The error suggests that there's a script where someone has put
ObjectVar()
instead ofObjectVar(ModelClass)
- see docs.Check all files under
/opt/netbox/netbox/scripts/
- although as I say, it's easier if you get a backtrace as it will tell you exactly which one.