Custom script #7496
-
I have a custom script that run on Netbox ver 2.7. Now on 2.11.12 it does not run. Stops in pendling. How do I troubleshoot custom scripts? I have added script logging to configuration.py for scripts but get nothing about this. I have copied the example from documentation and that also stops at pending... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
My first guess is that it could be something to do with Redis. The release notes for Netbox 2.9 say: "When running a report or custom script, its execution is now queued for background processing and the user receives an immediate response indicating its status. This prevents long-running scripts from resulting in a timeout error. Once the execution has completed, the page will automatically refresh to display its results." Check that netbox-rq is running, and whether anything is being logged there:
Also compare your configuration.py with configuration.example.py, and check if anything is missing.
|
Beta Was this translation helpful? Give feedback.
My first guess is that it could be something to do with Redis. The release notes for Netbox 2.9 say:
"When running a report or custom script, its execution is now queued for background processing and the user receives an immediate response indicating its status. This prevents long-running scripts from resulting in a timeout error. Once the execution has completed, the page will automatically refresh to display its results."
Check that netbox-rq is running, and whether anything is being logged there:
Also compare your configuration.py with configuration.exam…