Public bug reported:

Found random failures of snapd.refresh.service at boot time, due to
inability to reach URL
https://search.apps.ubuntu.com/api/v1/snaps/metadata.

The problem looks related to the failure of DNS query, most probably due
to the fact that local DNS server process (dnsmasq) was not fully
started yet: the DNS query was in fact directed to localhost
([::1]:38251->[::1]:53) and resulted in a "connection refused".

After manually restarting the service there is no failure.

Below is journalctl output of service failure:

marco@marco-desktop:~$ journalctl -u snapd.refresh --no-pager
-- Logs begin at dom 2016-08-21 22:10:45 CEST, end at dom 2016-08-21 22:11:33 
CEST. --
ago 21 22:10:47 marco-desktop systemd[1]: Starting Automatically refresh 
installed snaps...
ago 21 22:10:47 marco-desktop snap[2344]: error: cannot list updates: cannot 
list snaps: cannot list updates: Post 
https://search.apps.ubuntu.com/api/v1/snaps/metadata: dial tcp: lookup 
search.apps.ubuntu.com on [::1]:53: read udp [::1]:38251->[::1]:53: read: 
connection refused
ago 21 22:10:47 marco-desktop systemd[1]: snapd.refresh.service: Main process 
exited, code=exited, status=1/FAILURE
ago 21 22:10:47 marco-desktop systemd[1]: Failed to start Automatically refresh 
installed snaps.
ago 21 22:10:47 marco-desktop systemd[1]: snapd.refresh.service: Unit entered 
failed state.
ago 21 22:10:47 marco-desktop systemd[1]: snapd.refresh.service: Failed with 
result 'exit-code'.

Ubuntu release:
LSB Version:    
core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial

Snapd version:
2.12+0.16.04

** Affects: snapd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1615432

Title:
  snapd refresh service failure

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1615432/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to