-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
k3s: containerd crashes "failed to recover state: failed to get metadata for stored sandbox" #391969
Comments
#391293 updated to containerd 2.0.4, it should hit |
I tried using the k3s package provided with that PR, but it still seems to have the same issue. Is this because the k3s package in nixpkgs includes its own bundled containerd? https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/cluster/k3s/builder.nix#L318-L333 I have my own branch that I've recently rebased from master and am attempting to resolve this issue: https://github.com/heywoodlh/nixpkgs/tree/391969-k3s-containerd-update I don't understand the relationship between the containerd package in nixpkgs and k3s' bundled containerd so any clarification would be appreciated 😄 |
oh wait i didn’t read your config carefully enough your configuration uses the containerd bundled with k3s, not nixpkgs you can however tell it to use external containerd if you set up containerd correctly and then point k3s at that containerd not sure where i copied this from but it was probably some nixos wiki |
Update: seems that my PR #392169 resolves my containerd crash after I rename the old containerd directory:
|
@DarkKirb inspired by your comment, I decided to workaround this by switching to Docker as my container runtime by adding the |
Another possible workaround is to overwrite the k3s sources with the master branch, i.e. services.k3s.package = pkgs.k3s.override {
overrideBundleAttrs = {
src = pkgs.fetchgit {
url = "https://github.com/k3s-io/k3s";
rev = "7837d29269970088eaa019a2d7e61ecdfb68d985";
sha256 = "sha256-8voWwI3dWzG3E8TJet0m+TcMialM16AZA1/fMPH/DnY=";
};
vendorHash = "sha256-Wgla9Cyq5U9Q0xs/C/iyAMwHkIug7ernl7w5mn3gSco=";
};
}; This will pull in the latest k3s sources and thus build k3s with containerd |
Nixpkgs version
Describe the bug
On nixpkgs-unstable (my current rev is
bfa9810ff7104a17555ab68ebdeafb6705f129b1
), k3s crashes due to containerd failing to start.I've had this K3s cluster around for over a year mostly without issues. After an update to nixpkgs in my flake, k3s failed to start.
Seems related:
failed to recover state: failed to get metadata for stored sandbox
error k3s-io/k3s#12001Steps to reproduce
Upgrade an existing cluster to current version of k3s in unstable (
1.32.2+k3s1
)Expected behaviour
k3s not crash after update
Screenshots
No response
Relevant log output
Additional context
Configuration:
System metadata
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: