orbstack / orbstack

Fast, light, simple Docker containers & Linux machines for macOS
https://orbstack.dev
MIT License
4.48k stars 31 forks source link

Not Start After Crash #1161

Closed moskoweb closed 1 month ago

moskoweb commented 1 month ago

Describe the bug

After a few hours with OrbStack active, it crashed, and when trying to start again it doesn't start, you have to restart the computer to be able to start it.

orbctl start -a
panic: start VM: timed out waiting for VM to start [recovered]
    panic: start VM: timed out waiting for VM to start [recovered]
    panic: start VM: timed out waiting for VM to start

goroutine 1 [running]:
github.com/orbstack/macvirt/scon/cmd/scli/cmd.RecoverCLI()
    github.com/orbstack/macvirt/scon/cmd/scli/cmd/utils.go:43 +0x78
panic({0x102b14a20?, 0x140002024c0?})
    runtime/panic.go:914 +0x218
github.com/orbstack/macvirt/scon/cmd/scli/scli.init.OnceValue[...].func3.1()
    sync/oncefunc.go:53 +0x7c
panic({0x102b14a20?, 0x140002024c0?})
    runtime/panic.go:914 +0x218
github.com/orbstack/macvirt/scon/cmd/scli/scli.check(...)
    github.com/orbstack/macvirt/scon/cmd/scli/scli/scli.go:12
github.com/orbstack/macvirt/scon/cmd/scli/scli.glob..func2()
    github.com/orbstack/macvirt/scon/cmd/scli/scli/scli.go:19 +0x88
github.com/orbstack/macvirt/scon/cmd/scli/scli.init.OnceValue[...].func3()
    sync/oncefunc.go:56 +0x78
sync.(*Once).doSlow(0x14000155aa8?, 0x14000155ad8?)
    sync/once.go:74 +0x100
sync.(*Once).Do(0x14000155b08?, 0x0?)
    sync/once.go:65 +0x24
github.com/orbstack/macvirt/scon/cmd/scli/scli.init.OnceValue[...].func4()
    sync/oncefunc.go:60 +0x3c
github.com/orbstack/macvirt/scon/cmd/scli/cmd.glob..func29(0x14000145300?, {0x14000036600?, 0x4?, 0x1029f8f65?})
    github.com/orbstack/macvirt/scon/cmd/scli/cmd/start.go:33 +0x100
github.com/spf13/cobra.(*Command).execute(0x102df0440, {0x140000365d0, 0x1, 0x1})
    github.com/spf13/cobra@v1.6.1/command.go:916 +0x66c
github.com/spf13/cobra.(*Command).ExecuteC(0x102dec220)
    github.com/spf13/cobra@v1.6.1/command.go:1044 +0x320
github.com/spf13/cobra.(*Command).Execute(...)
    github.com/spf13/cobra@v1.6.1/command.go:968
github.com/orbstack/macvirt/scon/cmd/scli/cmd.Execute(...)
    github.com/orbstack/macvirt/scon/cmd/scli/cmd/root.go:25
main.runCtl(0x28?)
    github.com/orbstack/macvirt/scon/cmd/scli/main.go:140 +0x1dc
main.main()
    github.com/orbstack/macvirt/scon/cmd/scli/main.go:38 +0xf8

To Reproduce

No response

Expected behavior

No response

Diagnostic report (REQUIRED)

No response

Screenshots and additional context (optional)

No response

kdrag0n commented 1 month ago

Please share a diagnostic report from Help > Collect Diagnostics or orb report as required by the issue template.

moskoweb commented 1 month ago
OrbStack info:
  Version: 1.5.1
  Commit: 4cfac15e1080617c70eb163966e1cb2009dac1c2 (v1.5.1)

System info:
  macOS: 14.4.1 (23E224)
  CPU: arm64, 8 cores
  CPU model: Apple M2
  Model: Mac14,2
  Memory: 8 GiB

Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-04-30T20-56-10.064430Z.zip
<!-- (To review the report, check ~/.orbstack/diag) -->
kdrag0n commented 1 month ago

Duplicate of #976

HelmyIbrahim commented 4 weeks ago

Any fix to this? Restarting the OS solves it temporarily until it happens again several hours later.

moskoweb commented 3 weeks ago

There are several occurrences and on different devices, but it does not seem to be a priority. I'm going to migrate to Docker Desktop, I'll test it again in a few months.

kdrag0n commented 2 weeks ago

Released in v1.6.0 Canary 1.

To update to Canary: Settings > Update channel

kdrag0n commented 1 week ago

Released in v1.6.0.

New: Truly fast container filesystems on macOS: 2–10x faster, within 75-95% of native