Custom Script “Edit → Upload” creates a new file but NetBox continues to execute the old version #11665

Closed
opened 2025-12-29 21:48:17 +01:00 by adam · 1 comment
Owner

Originally created by @JFall09 on GitHub (Sep 30, 2025).

Originally assigned to: @arthanson on GitHub.

NetBox Edition

NetBox Community

NetBox Version

v4.3.6

Python Version

3.12

Steps to Reproduce

  1. Upload Custom Script "log_test.py" to log "Foo"
  2. Click run, log's "Foo"
  3. Click Edit on script and upload modified file to log "Bar"
  4. Click run, still logs "Foo"

Expected Behavior

Should have logged "Bar" on second run.

Observed Behavior

If you click into the script and examine the source you will see the code is unaltered.
If you look into /opt/netbox/netbox/scripts on the server a new file is created next to "log_test.py" called "log_test_tRlNd5h.py" though the UI still points towards old one.
Found an open discussion on this issue #19716

Originally created by @JFall09 on GitHub (Sep 30, 2025). Originally assigned to: @arthanson on GitHub. ### NetBox Edition NetBox Community ### NetBox Version v4.3.6 ### Python Version 3.12 ### Steps to Reproduce 1. Upload Custom Script "log_test.py" to log "Foo" 2. Click run, log's "Foo" 3. Click Edit on script and upload modified file to log "Bar" 4. Click run, still logs "Foo" ### Expected Behavior Should have logged "Bar" on second run. ### Observed Behavior If you click into the script and examine the source you will see the code is unaltered. If you look into /opt/netbox/netbox/scripts on the server a new file is created next to "log_test.py" called "log_test_tRlNd5h.py" though the UI still points towards old one. Found an open discussion on this [issue #19716](https://github.com/netbox-community/netbox/discussions/19716)
adam added the type: bugstatus: acceptednetboxseverity: low labels 2025-12-29 21:48:17 +01:00
adam closed this issue 2025-12-29 21:48:17 +01:00
Author
Owner

@thomaschristory commented on GitHub (Oct 17, 2025):

We're running into the same issue here as well.

@thomaschristory commented on GitHub (Oct 17, 2025): We're running into the same issue here as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11665