Skip to content

Retry: Handle DNSError when network message different - #7050

Closed
ardaguclu wants to merge 3 commits into
canonical:masterfrom
ardaguclu:master
Closed

Retry: Handle DNSError when network message different#7050
ardaguclu wants to merge 3 commits into
canonical:masterfrom
ardaguclu:master

Conversation

@ardaguclu

@ardaguclu ardaguclu commented Jun 28, 2019

Copy link
Copy Markdown
Contributor

As mentioned below launchpad link; in some cases when network connection does not exist, snap install command returns unclear message. Thus, I added "server misbehaving" check to make it clear to the user when there is possible network connectivity problem and its unit test.

https://bugs.launchpad.net/snapd/+bug/1794006

@chipaca

chipaca commented Jul 1, 2019

Copy link
Copy Markdown
Contributor

Is this something you are able to reproduce? Can you try to do so on 16.04, where we get a different error family for network errors?

@ardaguclu

Copy link
Copy Markdown
Contributor Author

On Ubuntu 18.04 and when the network connection is turned off, installation command returns;

cannot install "vlc": Post https://api.snapcraft.io/v2/snaps/refresh:
dial tcp: lookup api.snapcraft.io: no such host

On Ubuntu 16.04 (running as lxd container);

cannot install "vlc": persistent network error: Post
https://api.snapcraft.io/v2/snaps/refresh: dial tcp: lookup
api.snapcraft.io on 10.6.49.1:53: dial udp 10.6.49.1:53: connect:
network is unreachable

I have not tested trying to install from localhost issued the launchpad link.

@chipaca

@ardaguclu ardaguclu closed this Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants