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 can not start after reboot #19144

Closed
hqch0708 opened this issue Jul 6, 2023 · 4 comments
Closed

podman can not start after reboot #19144

hqch0708 opened this issue Jul 6, 2023 · 4 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. machine macos MacOS (OSX) related

Comments

@hqch0708
Copy link

hqch0708 commented Jul 6, 2023

Issue Description

when Mac M1 was reboot, podman can not be used anymore. I think the root cause that is when reboot, podman did not update the status of machine.

The workaround is to update your starting to false in "/Users/{User}/.config/containers/podman/machine/qemu/podman-machine-default.json", and then podman can be worked as expection

Steps to reproduce the issue

Steps to reproduce the issue

  1. reboot
  2. podman machine start
    cannot start VM podman-machine-default: VM already running or starting
  3. podman machine stop
    Machine "podman-machine-default" stopped successfully
  4. podman machine list
    podman-machine-default* qemu 2 days ago Currently starting 1 2.147GB 107.4GB

Describe the results you received

cannot start VM podman-machine-default: VM already running or starting

Describe the results you expected

podman can work

podman info output

Host:
  Arch: arm64
  CurrentMachine: podman-machine-default
  DefaultMachine: podman-machine-default
  EventsDir: /var/folders/_c/w5h26y1x6ksc3ndly5027d7h0000gn/T/podman-run--1/podman
  MachineConfigDir: /Users/{User}/.config/containers/podman/machine/qemu
  MachineImageDir: /Users/{User}/.local/share/containers/podman/machine/qemu
  MachineState: Starting
  NumberOfMachines: 1
  OS: darwin
  VMType: qemu
Version:
  APIVersion: 4.5.1
  Built: 1685113812
  BuiltTime: Fri May 26 23:10:12 2023
  GitCommit: 9eef30051c83f62816a1772a743e5f1271b196d7
  GoVersion: go1.20.4
  Os: darwin
  OsArch: darwin/arm64
  Version: 4.5.1

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

@hqch0708 hqch0708 added the kind/bug Categorizes issue or PR as related to a bug. label Jul 6, 2023
@github-actions github-actions bot added the macos MacOS (OSX) related label Jul 6, 2023
@hqch0708
Copy link
Author

hqch0708 commented Jul 6, 2023

BYW, I did not install podman-mac-helper at that moment

@Luap99 Luap99 added the machine label Jul 6, 2023
@Luap99
Copy link
Member

Luap99 commented Jul 6, 2023

If you remove the machine and then init a new one it should work again.

@vrothberg @baude @ashley-cui PTAL, seems like you can get the machine stucked in starting start even after a reboot.

@hqch0708
Copy link
Author

hqch0708 commented Jul 6, 2023

@Luap99 yes, remove and init a new one is an easy way, but in this way, the existing containers and even images will be removed, so I think this way is not anyone wants to use.

@ashley-cui
Copy link
Member

This should be fixed in Podman v4.6: #18328

@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 Oct 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. machine macos MacOS (OSX) related
Projects
None yet
Development

No branches or pull requests

3 participants