|
Hi, I'm trying to get the custom scripts (especially NetBox_DNS_Exporter and AXFR_Importer) running. After importing the above mentioned scripts via web UI and trying to run them all I get is an "Errored" state, no hint what went wrong. I also tried to run the scripts from command line using
I hope I got the parameters right, I'm not sure about that however ... All I get when executing it is:
I hope it's just something I got wrong, but I currently have no clue what ... any help is highly appreciated! Marcel |
Replies: 4 comments 5 replies
|
Hi @linuxrrze, first a disclaimer: I'm not using Docker, so if there might be any Docker-specific issue I can't help you with that. In my (second-hand) experience Docker creates more problems than it solves. In this case, however, I see the same problem. The root cause appears to be that Will look into it later on, unless you find out more. |
|
I did a little more strace-ing, but the only mentioning in the log is something like "NetBox_DNS_Exporter.py" that's send somewhere ... So as you mentioned that the problem is path related, I gave it a try with its full path (that didn't work either, but at least the error changed): |
|
I just had a look at the data model, and this works. So it's start to smell very strongly of a NetBox bug. (and yes, of course you're right and the path variable in the config is That makes work and now the complaint is about missing data. |
|
I just opened netbox-community/netbox#19529 for it. It's apparently a NetBox 4.3 bug, as I suspected. |
Hi @linuxrrze, first a disclaimer: I'm not using Docker, so if there might be any Docker-specific issue I can't help you with that. In my (second-hand) experience Docker creates more problems than it solves.
In this case, however, I see the same problem. The root cause appears to be that
manage.py runscriptis trying to import the script fromextras.models.scriptsinstead of the configuredSCRIPTS_PATH, which smells like a NetBox issue. I can't go into detail right now, but it works from the GUI and not from the command line.Will look into it later on, unless you find out more.