question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Snap installed fails with "connection to the server 127.0.0.1:16443 was refused"

See original GitHub issue

I just tried to install microk8s on an Ubuntu 20.04 instance, and it failed as follows:

$ sudo snap install microk8s --classic
error: cannot perform the following tasks:
- Run configure hook of "microk8s" snap if present (run hook "configure":
-----
[...]
+ /snap/microk8s/1769/kubectl --kubeconfig=/var/snap/microk8s/1769/credentials/client.config apply -f /var/snap/microk8s/1769/args/cni-network/cni.yaml
The connection to the server 127.0.0.1:16443 was refused - did you specify the right host or port?
-----)

Unfortunately I can’t run microk8s inspect as it’s not installed yet 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ktsakalozoscommented, Nov 2, 2020

Hi @mthaddon

Could you try installing the latest/edge channel?

sudo snap install micro8s --classic --channel=latest/edge
0reactions
stale[bot]commented, Oct 12, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Snap installed fails with "connection to the server 127.0.0.1 ...
I just tried to install microk8s on an Ubuntu 20.04 instance, and it failed as follows: $ sudo snap install microk8s --classic error:...
Read more >
Snap.d error: cannot communicate with server connection ...
Snap.d error: cannot communicate with server connection refused ... Installation issue: run hook "install": / has 'other' write 40777.
Read more >
How do I fix my connection to api.snapcraft.io - Ask Ubuntu
Note: If you get the error snap snapd is not installed , then first install snapd and then try executing above mentioned commands....
Read more >
Installing a Snap package | Google Cloud CLI Documentation
If you have the old snap package, google-cloud-sdk , installed, remove it at the command line: ... At the command line, install the...
Read more >
snapd package : Ubuntu - Launchpad Bugs
#1673247 package snapd 2.23.1 failed to install/upgrade: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found