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

Microk8s snap disappears from WSL2 ubuntu 20.04 when windows restarts #3159

Closed
pgfaller opened this issue May 23, 2022 · 2 comments
Closed

Comments

@pgfaller
Copy link

Summary

Microk8s snap installed using 'sudo snap install microk8s --classic'. Saw that pods were not running, so restarted Windows. Then tried 'microk8s status' and saw:

peter@NTT-4SH11X2:~$ microk8s status
internal error, please report: running "microk8s" failed: cannot find installed snap "microk8s" at revision 3272: missing file /snap/microk8s/3272/meta/snap.yaml
peter@NTT-4SH11X2:~$ microk8s inspect
internal error, please report: running "microk8s" failed: cannot find installed snap "microk8s" at revision 3272: missing file /snap/microk8s/3272/meta/snap.yaml
peter@NTT-4SH11X2:~$ ls /snap/microk8s/ -lR
/snap/microk8s/:
total 4.0K
drwxr-xr-x 2 root root 4.0K May 23 10:45 3272/
lrwxrwxrwx 1 root root    4 May 23 10:45 current -> 3272/

/snap/microk8s/3272:
total 0

What Should Happen Instead?

Microk8s should still be installed, and should be up and running as advertised.

Reproduction Steps

  1. See above - plain installation
  2. Restart Windows

Introspection Report

Not possible - see above

Can you suggest a fix?

Are you interested in contributing with a fix?

@ktsakalozos
Copy link
Member

Hi @pgfaller. The issue you report sounds similar to the one reported in https://forum.snapcraft.io/t/wsl2-ubuntu20-04-all-snaps-broken-after-each-reboot-even-snapd/24819/3

@pgfaller
Copy link
Author

Hi @ktsakalozos - thanks for the link. Adding the change suggested in DamionGans/ubuntu-wsl2-systemd-script#49 looked as if it made it work; but unfortunately it (microk8s) only worked once after that. Subsequent restarts threw up new errors. I suspect that WSL and snaps were not made to work together, so I will rather try running microk8s on a real Ubuntu platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants