|
Bugzilla – Full Text Bug Listing |
| Summary: | podman logs -f fails with Error: using --follow with the journald --log-driver but without the journald --events-backend (file) is not supported | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Distribution | Reporter: | sesso <fuomag> |
| Component: | Other | Assignee: | Dan Čermák <dcermak> |
| Status: | CONFIRMED --- | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | alexandre.vicenzi, containers-bugowner, fuomag |
| Version: | Leap 15.4 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| See Also: | https://bugzilla.suse.com/show_bug.cgi?id=1199871 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Bug Depends on: | 1199871 | ||
| Bug Blocks: | |||
|
Description
sesso
2023-06-26 10:01:00 UTC
This is still reproducible and depends on Bug 1199871. The --follow option works on Tumbleweed and Leap 15.6 if you use the file log driver, which is the default driver for rootless Podman.
The command `podman logs -f {containedid}` used to not work in 15.4 because the default log driver was journald. This issue was fixed by https://build.opensuse.org/request/show/1167004 and the now command works in 15.6. The SR changed the default log_drive from journald to unset.
-log_driver = "journald"
+#log_driver = "k8s-file"
The journald log driver does not work with rootless Podman in openSUSE as journald does not allow non-root users to read its logs. This is currently a design decision.
An up-to-date system should not have this issue, and if you still face this issue on an older system you can for example create a user config in ~/.config/containers/containers.conf or system-wide /usr/share/containers/containers.conf:
[containers]
log_driver = "k8s-file"
[engine]
events_logger = "file"
For journald log driver, you need to run Podman in rootful mode, not in rootless.
|