Jellyfin Forum
Log files on docker - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Log files on docker (/t-log-files-on-docker)



Log files on docker - pendletongs - 2024-01-24

I have been using the Jellyfin Docker image (currently on 10.8.13) on a Mac Mini M2 for several months now and it has generally been successful and smooth sailing.
I have however had 1 issue that while annoying hasn't been showstopping, until earlier this week. Previously the docker container would restart randomly, sometimes while scanning a new film, sometimes while watching one but it was a once a week occurrence. Annoying but not major.
Now, it is doing this every few hours. I'm guessing that the process crashes and because the docker container is set to restart 'unless-stopped' it just starts up again.
I have changed the log level to Debug and that gives me a bit more information around the time of the crash but there is nothing (like a Fatal log) between the last INF or DBG log and the subsequent startup INF log. There is nothing obvious happening and not always anything obviously common between the events.
My question is, are there other logs to analyse other than the one in /config/log which the Docker Desktop log viewer is showing.

Thanks


RE: Log files on docker - tmsrxzar - 2024-01-24

https://docs.docker.com/config/containers/logging/


RE: Log files on docker - pendletongs - 2024-01-24

Thanks for the quick reply. Unfortunately docker logs just returns the same logs that I am seeing in Docker Desktop (and in the /config/logs folder).
I was wondering whether there some log somewhere that captured the event as it crashed the jellyfin process, or some way of enabling that capture.


RE: Log files on docker - tmsrxzar - 2024-01-24

if the message/event was not recorded in stdout or stderr then follow up with docker logs

https://docs.docker.com/config/daemon/logs/
(the next link below the last one)


RE: Log files on docker - pendletongs - 2024-01-24

Very useful, thanks.

On seeing the daemon logs I initially thought that it might be to do with the healthcheck.
On monitoring the log shows that the following item appears where I believe today's restarts occurred (it certainly appeared when it just restarted a few minutes ago)

Code:
[2024-01-24T18:05:07.000926377Z][dockerd][I] time="2024-01-24T18:05:06.995512919Z" level=info msg="ignoring event" container=222c8bec49cd9e6a7263405cc015e0e5978fc23c11c6f3413af631b3e04aed1b module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"

I think I can sort of see where this might be going but I don't suppose you know why this is happening?