Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman-remote with journald+file mishmash: crashes client #12175

Closed
edsantiago opened this issue Nov 4, 2021 · 20 comments
Closed

podman-remote with journald+file mishmash: crashes client #12175

edsantiago opened this issue Nov 4, 2021 · 20 comments
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. needs-design-doc remote Problem is in podman-remote

Comments

@edsantiago
Copy link
Member

With this containers.conf:

[containers]
log_driver = "journald"

[engine]
events_logger = "file"

...and this server command:

$ bin/podman --log-level=info system service --timeout=0

...the following sequence yields an unexpected client failure:

$ `bin/podman-remote run -d --name foo quay.io/libpod/testimage:20210610 sleep 30
39e6c6ac379b066642304f6b8d1b7ca12e36fa4023e7bf2061f8e3758ed2fc96
$ bin/podman-remote logs -f foo
Error: channel "123" found, 0-3 supported: lost synchronization with multiplexed stream

Expected: the new "file + journald not supported" error. (Which is shown on the server, but only as info level):

INFO[0016] Request Failed(Internal Server Error): failed to obtain logs for Container 'foo': using --follow with the journald --log-driver but without the journald --events-backend (file) is not supported
@edsantiago edsantiago added the remote Problem is in podman-remote label Nov 4, 2021
@edsantiago
Copy link
Member Author

Oops, forgot to reference #11795

@rhatdan
Copy link
Member

rhatdan commented Nov 4, 2021

#12130 was an attempt to fix this, but I think we should just fail outright if you setup this environment. IE If you set journald for logging, we should require event-logger to use it and vice versa.

@cevich
Copy link
Member

cevich commented Nov 4, 2021

Any chance this is related to issue 12029 as well? (I'm grasping at straws here)

cevich added a commit to cevich/podman that referenced this issue Nov 18, 2021
Massive thanks to @edsantiago for tracking this down.

Ref: containers#12175

Signed-off-by: Chris Evich <[email protected]>
@github-actions
Copy link

github-actions bot commented Dec 5, 2021

A friendly reminder that this issue had no activity for 30 days.

@edsantiago
Copy link
Member Author

Problem still present in main @ 18e3193

@github-actions
Copy link

github-actions bot commented Jan 6, 2022

A friendly reminder that this issue had no activity for 30 days.

@github-actions
Copy link

github-actions bot commented Feb 6, 2022

A friendly reminder that this issue had no activity for 30 days.

@rhatdan
Copy link
Member

rhatdan commented Feb 7, 2022

@edsantiago we still got this one?

@edsantiago
Copy link
Member Author

Still present in main @ 46d9a25

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@robbiemu
Copy link

robbiemu commented Apr 6, 2022

@cevich it looks possible to me as well. "--events-backend=file" would have specified where to write the logs by default, fi the logs command did not get updated as well, this could be the issue

@github-actions
Copy link

github-actions bot commented May 7, 2022

A friendly reminder that this issue had no activity for 30 days.

rhatdan added a commit to rhatdan/common that referenced this issue May 7, 2022
rhatdan added a commit to rhatdan/common that referenced this issue May 7, 2022
rhatdan added a commit to rhatdan/common that referenced this issue May 11, 2022
rhatdan added a commit to rhatdan/common that referenced this issue May 11, 2022
@edsantiago
Copy link
Member Author

Yikes - seen just now in a random PR in the wild, possibly a flake

[+0120s] not ok 74 podman logs - basic test
         # # podman-remote [...] create quay.io/libpod/testimage:20220615 echo GSwcgzUZbhgjKIOCdvNIXEVvc7NqybRHOBGb9D2L
         # 0a167f24f01f348ab9f68e24f9e7f714dd90a70dc3155be488e9c929ce4911f0
         # # podman-remote [....] logs 0a167f24f01f348ab9f68e24f9e7f714dd90a70dc3155be488e9c929ce4911f0
         # Error: channel "123" found, 0-3 supported: lost synchronization with multiplexed stream
         # [ rc=125 (** EXPECTED 0 **) ]

@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@edsantiago
Copy link
Member Author

Still present in main @ 07c0dd1 (which includes #15717, the multiple-events-problems PR). We're approaching a year of this, and it seems like a non-issue. The June 27 flake bothers me though.

@vrothberg
Copy link
Member

Tested with Podman v4.5 and both, local and remote, work.

@Luap99
Copy link
Member

Luap99 commented May 15, 2023

I would say I fixed it in #18282 but this is not in v4.5? Did you tested main instead?

@vrothberg
Copy link
Member

I am fairly confident of having tested v4.5. Does it not work on your end with 4.5?

@Luap99
Copy link
Member

Luap99 commented May 15, 2023

No it fails with v4.5, did you forget to add -f to logs? This is important to trigger the error condition.
You can also try

$ podman-remote logs notexists
Error: channel "123" found, 0-3 supported: lost synchronization with multiplexed stream

Anyway doesn't matter it is 100% fixed on main :)

@vrothberg
Copy link
Member

I did use -f so I must have used main. Thanks for clarifying!

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Aug 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. needs-design-doc remote Problem is in podman-remote
Projects
None yet
Development

No branches or pull requests

7 participants