netbox icon indicating copy to clipboard operation
netbox copied to clipboard

No active configuration revision found

Open alehaa opened this issue 1 year ago • 5 comments

NetBox Edition

NetBox Community

NetBox Version

v4.4.4

Python Version

3.12

Steps to Reproduce

  1. Start new NetBox instance (empty).
  2. View logs.

Expected Behavior

The log shows informational messages and HTTP access.

Observed Behavior

Most HTTP access log messages are preceded by a warning about configuration revisions.

No active configuration revision found - falling back to most recent
::1 - - [26/Oct/2025:13:28:18 +0000] "GET /login/ HTTP/1.1" 200 3906 "-" "curl/8.5.0"

This is due to a change introduced by 7719b98, which added a warning when no active configuration revision was found. However, not using configuration revisions and incorporating all configurations into Python files is a valid scenario. Therefore, I suggest switching from a warning message to debug message.

alehaa avatar Oct 26 '25 13:10 alehaa

@DanSheps, thoughts on this? Any objection to changing the log-level? I don't think we talked about it during code review, so just want to be sure before I accept it as a housekeeping issue.

jnovinger avatar Oct 27 '25 23:10 jnovinger

Yeah, no concerns from me. May even be worth it to break out the multiple objects and does not exist separately and try and gracefully handle that one.

DanSheps avatar Oct 28 '25 00:10 DanSheps

This also seems to affect the housekeeping management command, which now is noisy as this is outputed to stderr

andrekeller avatar Oct 31 '25 08:10 andrekeller

I'm going to accept this as is for now, to tone down the logging as described in the original report. Dan, if you have thoughts on other things you'd like to cleaneup, can you create a housekeeping issue for them?

jnovinger avatar Nov 01 '25 14:11 jnovinger

I'd be happy to contribute the fix. Can you please assign it to me? Thanks

pheus avatar Nov 06 '25 19:11 pheus