Netbox worker unable to run custom scripts #18781
Unanswered
iamjpy
asked this question in
Help Wanted!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a very simple custom script which has been imported via the UI.
When it runs, it returns an

Erroredresult in the UI:The logs show the job succeeded:
Using the CLI, I'm able to run the custom script with successful results on the
netboxpod,But I'm unable to execute the script on the CLI of the
netbox-workerpod nor am I able to access the/opt/netbox/netbox/scripts/directory in thenetbox-workercontainerI have a netbox deployment installed using the netbox-chart helm chart. The
netboxandnetbox-workerpods are running on the same node withscriptsPersistenceenabled. I verified thenetbox-scriptsvolume is mounted to both pods with RWO access. Both pods security contexts are configured with the same user and group UIDIt seems that when both the
netboxandnetbox-workerpods are running at the same time, one of them loses access to the scripts directory, usually thenetbox-workerwhich I believe results in the theErroredresult upon executing the script via the UI. When I restart the pods in a different order, thenetbox-workerpod regains access to the scripts volume and then thenetboxpod loses it which results in a permissions error when running the custom script in the UI.Any help is appreciated
Beta Was this translation helpful? Give feedback.
All reactions