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

Connection to /events drops sometimes #4712

Closed
benoitf opened this issue Nov 8, 2023 · 4 comments · Fixed by #4809
Closed

Connection to /events drops sometimes #4712

benoitf opened this issue Nov 8, 2023 · 4 comments · Fixed by #4809
Assignees
Labels
Milestone

Comments

@benoitf
Copy link
Collaborator

benoitf commented Nov 8, 2023

Bug description

Podman Desktop use events to refresh containers/images

But sometimes the /events connection is dropping

Operating system

macOS

Installation Method

None

Version

1.5.0

Steps to reproduce

long live running session / hivernate/suspend/restore computer

Relevant log output

No response

Additional context

If I do a curl on the endpoint, I receive a failure, so Podman Desktop should be able to handle the error/reconnect/notify that there is a problem

 curl --unix-socket /var/run/docker.sock "http://v1.47.0/events"

...
curl: (18) transfer closed with outstanding read data remaining
@jeffmaury
Copy link
Contributor

Got VM unresponsive today but VM console is accessible and I can see a lot of messages related to virtio

Capture d’écran 2023-11-09 à 14 51 54

@benoitf
Copy link
Collaborator Author

benoitf commented Nov 9, 2023

I've opened containers/podman#20639

for your message/problem, if you do ifconfig enp0s1 down and then ifconfig enp0s1 up it should restore the connection but yes it's not a good way :-)

@jeffmaury
Copy link
Contributor

I've opened containers/podman#20639

for your message/problem, if you do ifconfig enp0s1 down and then ifconfig enp0s1 up it should restore the connection but yes it's not a good way :-)

Can't tell because I restarted everything and I noticed I was using an old version of podman/qemu so I upgraded to see if I still have the issue. Will let you know

@nichjones1 nichjones1 added this to the 1.6.0 milestone Nov 9, 2023
@jeffmaury
Copy link
Contributor

I've opened containers/podman#20639
for your message/problem, if you do ifconfig enp0s1 down and then ifconfig enp0s1 up it should restore the connection but yes it's not a good way :-)

Can't tell because I restarted everything and I noticed I was using an old version of podman/qemu so I upgraded to see if I still have the issue. Will let you know

Reproduced it with latest qemu and podman

benoitf added a commit to benoitf/desktop that referenced this issue Nov 14, 2023
fixes containers#4712
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
benoitf added a commit to benoitf/desktop that referenced this issue Nov 15, 2023
fixes containers#4712
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
benoitf added a commit to benoitf/desktop that referenced this issue Nov 16, 2023
fixes containers#4712
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
benoitf added a commit that referenced this issue Nov 17, 2023
* fix: reconnect to /events if disconnected

fixes #4712
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants