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
An error occurred when trying to execute 'sudo snap install microk8s --classic' with 'multipass': returned exit code 1. #239
Comments
@evilnick can you look at this? |
My guess would be that you had internet connectivity issues at the time of install. Please can you try the following: First, delete the broken VM. multipass delete -p MicroK8sVM Then try to reinstall MicroK8s: microk8s install And let me know if you still see the issue. Thanks, |
Hi Joe You're right about a connection error, it's timing-out on snapcraft.io but all other access is fine: $ multipass delete -p MicroK8sVM $ microk8s install
$ ping https://snapcraft.io $ ping 91.189.92.38 $ ping www.google.com |
@SimonAmbridgeNuoDB You can't ping with a URL schema (
You might also try the following and see if that works and is sending you to a specific CDN (the Location URL in the response header):
Edit: For reference, I get sent to canonical-lcy01.cdn.snapcraft.io which is working for me. |
Hi John I can resolve snapcraft.io: $ ping snapcraft.io Info from curl: I can reach canonical-bos01.cdn.snapcraft.io too: But I still get this: $ multipass delete -p MicroK8sVM Thanks |
Behaviour is slightly different if I run microk8s uninstall (instead of multipass delete -p MicroK8sVM) before microk8s install: $ microk8s uninstall $ microk8s install
I can reach that IP too: $ ping 91.189.92.41 |
Hi @SimonAmbridgeNuoDB, could you please show me the output of Also (before uninstalling MicroK8s or removing MicroK8sVM), could you please try multipass exec MicroK8sVM -- ping snapcraft.io Many thanks, |
Hi Joe I get this output: $ multipass version $ multipass exec MicroK8sVM -- ping snapcraft.io Thanks |
Hey @SimonAmbridgeNuoDB, Thanks for the info and your patience. I think this is a networking issue with multipass on your machine. Could you just confirm this with a fresh VM please? multipass launch -n test
multipass exec test -- ping snapcraft.io -c 3
multipass exec test -- ping 1.1.1.1 -c 3 # Prove it's not a DNS resolution issue
multipass delete -p test If you're still seeing this issue, could you please raise this here: https://github.com/canonical/multipass/issues/new?assignees=&labels=bug&template=bug_report.md&title= and tag me in it so I can keep a track? Many thanks, |
Hi Joe No problem, happy to help, I'd like toget it too :) $ multipass launch -n test Multipass ping fails: But I can ping from the command line: Ping Cloudflare DNS fails: But I don't think you can get a ping response from 1.1.1.1 anyway: However I can ping Google DNS, but that fails with multipass: Would you like me to go ahead with the bug report? Simon |
Ah thanks @SimonAmbridgeNuoDB, I thought the CloudFlare ones worked too. Yes please, when I say I think there's a networking issue, I mean I don't think multipass is bridging to your host correctly. Sadly, I'm not expert enough in multipass to be able to help with that, but I'd like to be able to see the bug in case more people see this :) |
Will do and thanks for the help. |
No worries, thanks for raising it @SimonAmbridgeNuoDB @evilnick can you close this, please? Moved to canonical/multipass#1459 |
This issue has been resolved after disabling stealth mode in firewall setting, https://multipass.run/docs/troubleshooting-networking-on-macos#heading--dns-problems |
oh thx! will test now |
I encountered this error, and with the guide @kf-rammanokar linked above (https://multipass.run/docs/troubleshoot-networking#heading--dns-problems) I found the problem to be Cisco Anyconnect.
|
Summary
$ microk8s install
Launched: MicroK8sVM
error: unable to contact snap store
An error occurred when trying to execute 'sudo snap install microk8s --classic' with 'multipass': returned exit code 1.
Process
Mac installation as described in the setup guide
Current and expected result
Cannot use microk8s commands e.g.
$ microk8s --help
Usage: microk8s [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
install Installs MicroK8s. Use --cpu, --mem, --disk to appoint resources.
uninstall Removes MicroK8s
ls: cannot access '/snap/bin/': No such file or directory
An error occurred when trying to execute 'sudo ls -1 /snap/bin/' with 'multipass': returned exit code 2.
Screenshot
[If relevant, include a screenshot.]
Browser details
Mac, Cataline 10.15.3, Chrome
[Optionally - if you can, copy the report generated by mybrowser.fyi - this might help us debug certain types of issues.]
The text was updated successfully, but these errors were encountered: