You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed microk8s using snap 1.26/stable in WSL Ubuntu
When I run any command I get following error:
2023/04/10 15:16:27.283959 system_key.go:129: cannot determine nfs usage in generateSystemKey: cannot parse mountinfo: incorrect number of tail fields, expected 3 but found 4
2023/04/10 15:16:27.291663 cmd_run.go:1046: WARNING: cannot create user data directory: cannot determine SELinux status: failed to obtain SELinux mount path: incorrect number of tail fields, expected 3 but found 4
(Optional) When I run microk8s enable dashboard it gives following error:
2023/04/10 15:29:41.669394 system_key.go:129: cannot determine nfs usage in generateSystemKey: cannot parse mountinfo: incorrect number of tail fields, expected 3 but found 4
2023/04/10 15:29:41.676119 cmd_run.go:1046: WARNING: cannot create user data directory: cannot determine SELinux status: failed to obtain SELinux mount path: incorrect number of tail fields, expected 3 but found 4
Infer repository core for addon dashboard
Enabling Kubernetes Dashboard
Traceback (most recent call last):
File "/snap/microk8s/4959/scripts/wrappers/enable.py", line 41, in <module>
enable(prog_name="microk8s enable")
File "/snap/microk8s/4959/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/snap/microk8s/4959/usr/lib/python3/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/snap/microk8s/4959/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/microk8s/4959/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/snap/microk8s/4959/scripts/wrappers/enable.py", line 37, in enable
xable("enable", addons)
File "/snap/microk8s/4959/scripts/wrappers/common/utils.py", line 445, in xable
enabled_addons_info, disabled_addons_info = get_status(available_addons_info, True)
File "/snap/microk8s/4959/scripts/wrappers/common/utils.py", line 491, in get_status
kube_output = kubectl_get("all,ingress")
File "/snap/microk8s/4959/scripts/wrappers/common/utils.py", line 216, in kubectl_get
return run(KUBECTL, "get", cmd, "--all-namespaces", die=False)
File "/snap/microk8s/4959/scripts/wrappers/common/utils.py", line 74, in run
result.check_returncode()
File "/snap/microk8s/4959/usr/lib/python3.6/subprocess.py", line 389, in check_returncode
self.stderr)
subprocess.CalledProcessError: Command '('/snap/microk8s/4959/microk8s-kubectl.wrapper', 'get', 'all,ingress', '--all-namespaces')' returned non-zero exit status 1.
@ktsakalozos thanks for your response. This issue was mainly due to Docker Desktop being installed in default location. Here are the steps I followed to fix:
Uninstall existing installation of Docker Desktop in Windows.
Summary
When I run any microk8s command I get
incorrect number of tail fields, expected 3 but found 4
error message.What Should Happen Instead?
Previously there was no such error.
Reproduction Steps
wsl -v
microk8s enable dashboard
it gives following error:Introspection Report
inspection-report-20230410_152125.tar.gz
The text was updated successfully, but these errors were encountered: