Ok, reproduced with focal and broken seeds from an older image, symptoms
are exactly the same (including ps/pstree output). The problem is caused
by blocking on snapd.seeded.service (which waits for seeding to
complete, but it's never going to complete with broken seeds).

Given that this is an edge case (we don't expect images with broken
seeds) and focal images have been fixed already, I'm lowering the
priority. We will discuss what to do to handle this gracefully.

** Changed in: snapd
   Importance: Critical => High

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1868706

Title:
  Snapd postinst script hangs

Status in snapd:
  Triaged
Status in dpkg package in Ubuntu:
  Invalid
Status in systemd package in Ubuntu:
  Invalid

Bug description:
  On a machine which has been tracking upgrades for a while, I am unable
  to install new versions of snapd. The install process stalls
  indefinitely. Processes running suggest this is a hang in the
  postinst:

  ~$ ps ax | grep dpkg
     2388 pts/1    Ss+    0:00 /usr/bin/dpkg --status-fd 25 --configure 
--pending
     2389 pts/1    S+     0:00 /bin/sh /var/lib/dpkg/info/snapd.postinst 
configure 2.43.3+git1.8109f8
     2875 pts/2    S+     0:00 grep --color=auto dpkg

  ~$ pstree 2388
  dpkg───snapd.postinst───systemctl───systemd-tty-ask

  ~$ ps ax | grep snapd
      732 ?        Ssl    0:00 /usr/lib/snapd/snapd
     2389 pts/1    S+     0:00 /bin/sh /var/lib/dpkg/info/snapd.postinst 
configure 2.43.3+git1.8109f8
     2452 pts/1    S+     0:00 /bin/systemctl start snapd.autoimport.service 
snapd.core-fixup.service snapd.recovery-chooser-trigger.service 
snapd.seeded.service snapd.service snapd.snap-repair.timer snapd.socket 
snapd.system-shutdown.service
     2880 pts/2    S+     0:00 grep --color=auto snapd

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to