Monviech / os-caddy-plugin

Caddy Plugin with GUI for OPNsense
Other
38 stars 0 forks source link

Error message on server startup/restart #89

Closed pmhausen closed 6 months ago

pmhausen commented 6 months ago

Hi!

At first I suspected my changes for #88 but it seems that even in the now current version at every startup there are two messages getting logged, one error, one warning.

2024-02-16T11:06:03 Error   caddy   "warn","ts":"2024-02-16T10:06:03Z","logger":"tls","msg":"unable to get instance ID; storage clean stamps will be incomplete","error":"open /.local/share/caddy/instance.uuid: no such file or directory"}

and

2024-02-16T11:06:03 Warning caddy   "warn","ts":"2024-02-16T10:06:03Z","logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/usr/local/etc/caddy","instance":"47bdfa73-214c-4c98-afd8-0fe37f70018a","try_again":"2024-02-17T10:06:03Z","try_again_in":86399.999998538}

Is this in any way a problem? If no can the messages be made to "go away" by configuration?

I'm an old school operator. A production system should not log errors or warnings. Either they are serious or if they can really be ignored they should not be logged in the first place. I rely on "error" being a call to action ;-)

Kind regards, Patrick

Monviech commented 6 months ago

Ive seen these errors too, but since theyre always followed by successful storage cleaning and instance id informational log messages, I always ignored them. Maybe ask in the caddy community?

Monviech commented 6 months ago

This is probably something I can't fix.