I did a fresh install of Ubuntu 20.04 a couple of days ago, however
today I started getting delayed shutdown due to this bug. I even tried
re-installing Ubuntu 20.04, but after the first system update itself the
shutdown was delayed.

$ snap --version
snap    2.44.3+20.04
snapd   2.44.3+20.04
series  16
ubuntu  20.04
kernel  5.4.0-31-generic


$ snap list
Name                 Version             Rev   Tracking         Publisher   
Notes
canonical-livepatch  9.5.5               95    latest/stable    canonical✓  -
core                 16-2.44.3           9066  latest/stable    canonical✓  core
core18               20200311            1705  latest/stable    canonical✓  base
gnome-3-34-1804      0+git.2c86692       24    latest/stable/…  canonical✓  -
gtk-common-themes    0.1-36-gc75f853     1506  latest/stable/…  canonical✓  -
snap-store           3.36.0-74-ga164ec9  433   latest/stable/…  canonical✓  -
snapd                2.44.3              7264  latest/stable    canonical✓  
snapd

$ journalctl -e --no-pager -b -1 -u snapd
-- Logs begin at Sat 2020-05-23 14:29:06 MST, end at Sat 2020-05-23 14:54:55 
MST. --
May 23 14:29:09 ideal-pc systemd[1]: Starting Snap Daemon...
May 23 14:29:09 ideal-pc snapd[651]: AppArmor status: apparmor is enabled and 
all features are available
May 23 14:29:09 ideal-pc snapd[651]: daemon.go:343: started snapd/2.44.3+20.04 
(series 16; classic) ubuntu/20.04 (amd64) linux/5.4.0-31-generic.
May 23 14:29:09 ideal-pc snapd[651]: daemon.go:436: adjusting startup timeout 
by 30s (pessimistic estimate of 30s plus 5s per snap)
May 23 14:29:09 ideal-pc snapd[651]: helpers.go:105: error trying to compare 
the snap system key: system-key missing on disk
May 23 14:29:09 ideal-pc systemd[1]: Started Snap Daemon.
May 23 14:29:41 ideal-pc snapd[651]: daemon.go:539: gracefully waiting for 
running hooks
May 23 14:29:41 ideal-pc snapd[651]: daemon.go:541: done waiting for running 
hooks
May 23 14:29:43 ideal-pc systemd[1]: snapd.service: Succeeded.
May 23 14:29:43 ideal-pc systemd[1]: snapd.service: Scheduled restart job, 
restart counter is at 1.
May 23 14:29:43 ideal-pc systemd[1]: Stopped Snap Daemon.
May 23 14:29:43 ideal-pc systemd[1]: Starting Snap Daemon...
May 23 14:29:43 ideal-pc snapd[2412]: AppArmor status: apparmor is enabled and 
all features are available
May 23 14:29:43 ideal-pc snapd[2412]: patch.go:64: Patching system state level 
6 to sublevel 1...
May 23 14:29:43 ideal-pc snapd[2412]: patch.go:64: Patching system state level 
6 to sublevel 2...
May 23 14:29:43 ideal-pc snapd[2412]: patch.go:64: Patching system state level 
6 to sublevel 3...
May 23 14:29:43 ideal-pc snapd[2412]: daemon.go:343: started snapd/2.44.3+20.04 
(series 16; classic) ubuntu/20.04 (amd64) linux/5.4.0-31-generic.
May 23 14:29:43 ideal-pc snapd[2412]: daemon.go:436: adjusting startup timeout 
by 35s (pessimistic estimate of 30s plus 5s per snap)
May 23 14:29:43 ideal-pc systemd[1]: Started Snap Daemon.
May 23 14:30:31 ideal-pc snapd[2412]: api.go:985: Installing snap 
"canonical-livepatch" revision unset
May 23 14:34:27 ideal-pc systemd[1]: Stopping Snap Daemon...
May 23 14:34:27 ideal-pc snapd[2412]: main.go:155: Exiting on terminated signal.
May 23 14:34:52 ideal-pc snapd[2412]: daemon.go:583: WARNING: cannot gracefully 
shut down in-flight snapd API activity within: 25s
May 23 14:35:57 ideal-pc systemd[1]: snapd.service: State 'stop-sigterm' timed 
out. Killing.
May 23 14:35:57 ideal-pc systemd[1]: snapd.service: Killing process 2412 
(snapd) with signal SIGKILL.
May 23 14:35:57 ideal-pc systemd[1]: snapd.service: Main process exited, 
code=killed, status=9/KILL
May 23 14:35:57 ideal-pc systemd[1]: snapd.service: Failed with result 
'timeout'.
May 23 14:35:57 ideal-pc systemd[1]: Stopped Snap Daemon.
May 23 14:35:57 ideal-pc systemd[1]: snapd.service: Triggering OnFailure= 
dependencies.
May 23 14:35:57 ideal-pc systemd[1]: snapd.service: Failed to enqueue 
OnFailure= job, ignoring: Transaction for snapd.failure.service/start is 
destructive (systemd-sysctl.service has 'stop' job queued, but 'start' is 
included in transaction).

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

Title:
  Snappy daemon reaches 1min30s timeout during shutdown process

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to