Podman only: Switching between containers in the UI causes the container to crash. #4123
Replies: 10 comments 3 replies
-
|
I don't think this is related to switching between containers. I haven't seen any body else report this. Most likely it is related to something Podman is doing. The code: I am not sure how to fix this because I haven't actually seen it.
I could take a guess and try to fix it but I think something else is happening. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, this issue only happens when I start switching between containers (it usually fails on the second or third switch). It starts working again only after restarting. Once it does, reaching Exporting logs also doesn’t seem to trigger the crash. Please note that I have tested with & without : |
Beta Was this translation helpful? Give feedback.
-
Hmm that is really weird. Sorry I wasn't clear. Can you attach the logs? I can run it locally and see if something is happening. 🤔 I don't know what is causing this to be honest. |
Beta Was this translation helpful? Give feedback.
-
|
Also, not sure if you can help out, but test it on Docker? I am trying to narrow down if this is only happening on Podman or if it's something different with your cotnainers. |
Beta Was this translation helpful? Give feedback.
-
|
I've seen a similar bug in a similar environment (Podman), but unfortunately, I couldn't recreate the issue. It's probably related to the content of the log. It would definitely help to verify that there are at least 32 characters in the tail variable before skipping it. Then, we would not get a panic, and we could see in Dozzle what Podman is actually sending. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @ivoshm . That helps to narrow. I'll have to setup podman on a linux vm and test it out.
It's a little more complicated than that. Because that code should only happen for extremely large logs. That's why I need to reproduce to understand what is going on. |
Beta Was this translation helpful? Give feedback.
-
|
@ivoshm @karami4yasser I created a new Ubuntu VM and installed Then did a bunch of fake containers. I switched around for 20+ times and nothing broke. I would need to see the content of logs to help or somehow reproduce it. |
Beta Was this translation helpful? Give feedback.
-
|
I started using dozzle with podman and I am encountering the same issue. The reproduction just took a few seconds while selecting different containers. logs: |
Beta Was this translation helpful? Give feedback.
-
|
I have some news on the topic:
The main issue is that Podman sometimes sends log entries without a newline at the end, followed by an extra event containing only an additional timestamp and newline character. I have verified this behaviour even at the network level. Example: (the first record has a total of 197 characters and last character isn't newline) Unfortunately, these short events only have 22 characters (timestamp, space and newline), and when Dozzle (line 62 of internal/docker/log_reader.go) wants to cut 32 characters from them, it causes panic. I'm not sure why the continuation of the log message needs at least 32 characters. This is probably a hack for another environment, such as Docker or Kubernetes. I hope these findings will help resolve this annoying issue for Dozzle users running Podman. |
Beta Was this translation helpful? Give feedback.
-
|
It looks like Docker :) According to https://github.com/moby/moby/blob/10aecb0e652d346130a37e5b4383eca28f594c21/api/server/httputils/write_log_stream.go#L50-L52, it uses the RFC3339NanoFixed format (2026-02-06T04:40:00.679243894Z), which is 30 characters long and includes a space as the 31^(st) character. EDITED: The Podman team has already "solved" this problem — see containers/podman#27691. Perhaps we could trim continuing log event to the first space character (including it); that would work for both Docker and Podman. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🔍 Check for existing issues
How is Dozzle deployed?
Standalone Deployment
📦 Dozzle version
v8.13.14
✅ Command used to run Dozzle
🐛 Describe the bug / provide steps to reproduce it
Switching between containers in the UI causes dozzle container to crash.
💻 Environment
oracle linux 8
podman version 4.9.4-rhel
📜 Dozzle logs are required for debugging purposes. You may need to enable debug mode. See https://dozzle.dev/guide/debugging.
📸 If applicable, add screenshots to help explain your bug
Beta Was this translation helpful? Give feedback.
All reactions