Closed rgaudin closed 8 months ago
This is indeed not expected. I wonder why you get this, if this is some kind of random error because the file is not yet fully flushed?
But what are these /var/log/host/metrics/wtmp
and /var/log/host/metrics/lastlog
files, this does not look like regular Caddy files?
Oh non those are not caddy files. I expected metrics to filter the files on the passed folder for only the caddy ones (at least JSON maybe?)
I can not mount a caddy-logs dedicated folder because I want to stay on tmpfs which is cleared on shutdown. We can discuss an alternate strategy if you want.
Let's see, I just took the fast path, supposing there will only be caddy files in this directory, probably not that complex to change, I will tell you otherwise.
These are the files that we expect to have:
-rw-r--r-- 1 root root 1023.3K Jan 9 13:43 caddy_access_logs-2024-01-09T13-43-07.371.json
-rw-r--r-- 1 root root 17.8K Jan 9 13:43 caddy_access_logs.json
I'm seeing this in the compose log. Is this normal? If it is, maybe we should skip the error message