-
Notifications
You must be signed in to change notification settings - Fork 651
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
[v2 regression] nerdctl start
fails after restarting the host (msg="failed to lock state dir: unable to unmarshall lifecycle data: unexpected end of JSON input"
)
#3350
Comments
I am getting different errors after reboot (lima VM):
Just repeating the command then succeed:
|
You may repro the issue with lima-vm/lima@fe7c317 (lima-vm/lima#2178) |
nerdctl start
fails after restarting the host (msg="failed to lock state dir: unable to unmarshall lifecycle data: unexpected end of JSON input"
)nerdctl start
fails after restarting the host (msg="failed to lock state dir: unable to unmarshall lifecycle data: unexpected end of JSON input"
)
Will try tomorrow with updated lima + containerd v2rc. Note: Issue seems to have been here for some time somehow. This is what I get with nerdctl 1.7 + ctd 1.7 on reboot:
Same thing here, on the second time you invoke start, it works. |
The original error you saw ("failed to lock state dir") clearly points to: nerdctl/pkg/ocihook/state/state.go Line 59 in 607d560
Although there is clearly more to it (as prior versions seems to fail as well), this one is suggesting that there is something wrong going on with filesystem locks / reboot. |
Seems solved in the current main branch |
Description
nerdctl start
fails after restarting the hostSteps to reproduce the issue
sudo nerdctl run -d --name foo busybox sleep infinity
Describe the results you received and expected
Received: error
Expected: starts
What version of nerdctl are you using?
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
The text was updated successfully, but these errors were encountered: