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 machine gets stuck in STARTING state if interrupted during startup #24416

Open
cbr7 opened this issue Oct 30, 2024 · 6 comments
Open

Podman machine gets stuck in STARTING state if interrupted during startup #24416

cbr7 opened this issue Oct 30, 2024 · 6 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. machine windows issue/bug on Windows

Comments

@cbr7
Copy link

cbr7 commented Oct 30, 2024

Issue Description

It seems that the podman machine will get stuck in STARTING state permanently if the user interrupts the startup sequence one time. The entire system requires to be restarted or the podman machine needs to be deleted to recover from this. This issue was initially reported in PD repo podman-desktop/podman-desktop#9670.

podman_start_race_condition.mp4

Steps to reproduce the issue

Steps to reproduce the issue

  1. Create a new podman machine using podman machine init command
  2. Start the podman machine created at point 1 using podman machine start command
  3. Quickly after issuing the command from point 2 send CTRL-C command to the terminal (SIGINT) to terminate the operation.
  4. Run podman machine ls and notice that the podman machine created at point 1 will be permanently stuck in STARTING state.

Describe the results you received

Podman machine is stuck permanently in STARTING state.

Describe the results you expected

Presumably the state of the podman machine should be Stopped or alternately Running if the SIGINT is not sent fast enough to prevent the startup. Regardless of the state of the podman machine it should not be frozen execute commands correctly afterwards.

podman info output

If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

@cbr7 cbr7 added the kind/bug Categorizes issue or PR as related to a bug. label Oct 30, 2024
@Luap99 Luap99 added machine windows issue/bug on Windows labels Oct 30, 2024
@baude
Copy link
Member

baude commented Oct 30, 2024

Your video does not work for me. Please post an actual log or transcript. Why do you call this a race? On your fourth point, you say "will not be permanently stuck" and I think you mean to say "will be"? Can you confirm this and update what you are trying to show in the video? You also need to provide podman info as the template suggests.

@cbr7
Copy link
Author

cbr7 commented Oct 30, 2024

@baude in what way is the video not working for you? I just watched it again, works fine, have you tried a different browser?

About point 4, you are correct, there was a not that should not have been, I've edited the post.

@cbr7
Copy link
Author

cbr7 commented Oct 30, 2024

Attached the output from podman info

info.txt

@cbr7
Copy link
Author

cbr7 commented Oct 31, 2024

UPDATE: I've also managed to reproduce the issue on macOS today, so it's not limited to Windows only.

@baude
Copy link
Member

baude commented Oct 31, 2024

when i click the video, it doesnt play. either way, we prefer people post text things where possible as opposed to binary objects.

@cbr7
Copy link
Author

cbr7 commented Oct 31, 2024

The text is that after podman machine start command is issued the user sends SIGINT signal into the terminal and that causes the problem, issue is 100% reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. machine windows issue/bug on Windows
Projects
None yet
Development

No branches or pull requests

3 participants