** Changed in: autofs (Ubuntu) Status: Incomplete => Invalid ** Changed in: autofs (Ubuntu Focal) Status: Incomplete => Invalid
** Changed in: systemd (Ubuntu) Status: Incomplete => Invalid ** Changed in: systemd (Ubuntu Focal) Status: Incomplete => Invalid -- 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/1880193 Title: autofs: Assertion 'set_remove(iterator->links, link) == link' failed at src/shared/userdb.c:314, function userdb_on_query_reply(). Aborting. Status in autofs package in Ubuntu: Invalid Status in systemd package in Ubuntu: Invalid Status in autofs source package in Focal: Invalid Status in systemd source package in Focal: Invalid Bug description: autofs has a periodic error on mounting shares in Ubuntu 20.04 (it happens about 1 time out of 5): "Assertion 'set_remove(iterator->links, link) == link' failed at src/shared/userdb.c:314, function userdb_on_query_reply(). Aborting. Aborted (core dumped)" `autofs.service` restart (or `automount` app restart) fixes this issue. However if some of home dirs (like `Desktop` or `Documents`) are mounted by `autofs`, user can't login into Ubuntu Desktop Environment (PC freezes on login with black screen). Since this error can prevent user log in, it might be considered as critical bug. It happens both in `autofs` systemd service and by direct execution of `automount` app (`automount -f -d` command). May be it's an underlying error in `systemd` library (I found the line, mentioned in error, in its source codes). This issue has place in Ubuntu 20.04 (it works correctly in Ubuntu 18.04): > lsb_release -rd Description: Ubuntu 20.04 LTS Release: 20.04 Packages versions: > apt-cache policy autofs systemd autofs: Installed: 5.1.6-2 Candidate: 5.1.6-2 Version table: *** 5.1.6-2 500 500 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 Packages 100 /var/lib/dpkg/status systemd: Installed: 245.4-4ubuntu3 Candidate: 245.4-4ubuntu3 Version table: *** 245.4-4ubuntu3 500 500 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 Packages 100 /var/lib/dpkg/status Steps to reproduce: 1. Ubuntu 20.04 clean install 2. `apt install realmd sssd sssd-tools libnss-sss libpam-sss adcli samba-common-bin` 3. `realm join DOMAIN.NAME` 4. Enable makehomedir by command: `pam-auth-update` 5. `apt install cifs-utils` 6. `apt install autofs` 7. Add next line inside [domain/DOMAIN.EXT] section into /etc/sssd/sssd.conf: `krb5_ccname_template = FILE:%d/krb5cc_%U` 8. Reboot 9. Login as domain user and try to open directory, mounted by `autofs` (in my configuration shares are provided by AD). 10. `autofs.service` stops with the error above about 1 time out of 5 (not always). Found workaround: Add `Restart=always` into `[Service]` section in `/lib/systemd/system/autofs.service` file (in other words configure auto-restart on failures for autofs service). Attachments: 1. Full log of `automount -f -d` command. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1880193/+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