Netbox randomly doesn't commit changes unless "Commit changes" box is reticked #17037
Replies: 1 comment 9 replies
-
Netbox version? I wonder if your script is raising an uncaught exception sometimes. But then (a) I'd have thought that would be logged, and (b) unticking and ticking the box wouldn't make any difference. I can't see any mechanism by which (b) would make any difference, but if you use your browser's console to capture the POST data in both cases (i.e. once without touching the box, and unticking/ticking the box), and you can show a difference between the two, then that could be investigated further. One thing that looks potentially non-determinstic in your script is |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm having a very annoying issue with one of my scripts currently. Source code here.
The title already says it and I'm kinda lost on what to do. The script works absolutely fine, the code throws no errors at me. However, it just randomly throws me an "Database changes have been reverted automatically" and doesn't commit the data. Or, with larger scans (~30 subnets), there is no revert message at all, the log looks like the script did its function, but the data still isn't commited.
The only reliable 'fix' for this that I found, is manually reticking the "Commit changes" box before execution, but that's just not optimal for my usecase. All of my other scripts work fine, this one is the only one with this issue.
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions