🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
3 messages
3 total messages Started by Mike Gabriel Thu, 12 Nov 2026 20:10
Bug#1149219: Probably a race condition
#4302
Author: Mike Gabriel
Date: Thu, 12 Nov 2026 20:10
105 lines
6235 bytes
This message is in MIME format and has been PGP signed.

--=_engme2e_PPQzb0ygEdLBDr1
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Chris, hi Elbrus, hi Roland,

On  Do 12 Nov 2026 16:50:59 CET, Roland Clobus wrote:

> [...]

There has some discussion been going on due to testing migration=20=20
failures=20of src:pkg debian-edu package because of problems like:

```
363s Creating group 'kvm' with GID 982.
363s Creating group 'render' with GID 981.
363s /usr/lib/tmpfiles.d/static-nodes-permissions.conf:18: Failed to=20=20
resolve=20group 'kvm': Unknown group
363s /usr/lib/tmpfiles.d/static-nodes-permissions.conf:19: Failed to=20=20
resolve=20group 'kvm': Unknown group
363s /usr/lib/tmpfiles.d/static-nodes-permissions.conf:20: Failed to=20=20
resolve=20group 'kvm': Unknown group
```

I would like to bring up some findings Roland Clobus and I had that=20=20
might=20be relevant.

TL;DR; does a package that uses the sysusers.d API of systemd need a=20=20
Pre-Depends:=20on libnss-systemd???

The failures we observed in CI (with debian-edu << 2.13.8, the current=20=
=20
version=20has another breakage):

   - a postinst script of some package uses sysusers.d API from systemd to
     create a system user or group
   - and then later on in that postinst script, it tries to operate on that
     user or group (normally a chown on some folder or file)
   - we often then get an error message from that operation like the one
     quoted above, because the user (or group) that just got created does
     not yet exist on the system (or rather: it cannot yet be seen by the
     system).

A parallel observation we had is this:

   - package X configures a new user/group via sysusers.d API from systemd
   - package X want to use this user/group immediately (and fails)
   - further down in the output of APT (Configuring <package>...), we can
     see that libnss-systemd gets configured.
   - libnss-systemd uses dh-nss and ships debian/libnss-systemd.nss. dh-nss
     adds various #DEBHELPER# snippets to all (iirc) package scripts to
     manage "systemd" nss provider info to the entries user, group, shadow,
     gshadow in nsswitch.conf

The problem now is:

   - package X wants to operate on a user/group visible to the system
     via libnss-systemd
   - but: libnss-systemd is not yet configured (postinst)
   - that means: "systemd" entries are not yet in /etc/nsswitch.conf for
     user, group, shadow, gshadow when package X wants to use them
   - which means: the user/group is still invisible when package X wants
     to operate on them

Boom! Should this be discussed with a broader audience???

Happy about feedback!
Mike
--=20

mike=20gabriel aka sunweaver (Debian Developer)
mobile: +49 (1520) 1976 148
landline: +49 (4351) 486 14 27

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: sunweaver@debian.org, http://sunweavers.net


--=_engme2e_PPQzb0ygEdLBDr1
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIzBAABCgAdFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAmr2HA0ACgkQmvRrMCV3
GzGD2Q//bsFiBpAByZ8rLCaQPR1MjRU+yNU0DSAnZBMZWzai/saUPpzl27rKewIO
Znah81gScFuz8/S0Sm7Cw8RKM1Hw7cm4uV3/SlPRr8vXhwzkTuAtZkYjwG1EIcO+
rA55cWZmyFN6jP/gKNHTGleemIBL0cRpovjohj7UTI/84VULmvbm2BGkT1ZntAh3
677C4gQ3cjvjvBB2Uqo4CKfM6meUa1BXSgxlaDkJFEqX1mbqam8ayEFfWVhoIWWp
oIDLea26jADrlhcjGxaEvNFJ1pNncUrCJ7n8xhJKxqKY1pxXRzPx0upp0dTJz56C
iDblviEPlCgcqF5RHosWTAEFFoIg9z5vzhWyYMaTcmnhMEfFRxjdQ/Iq2y80I328
BsCsO+qRve3RfvdE8ZKKTg9qZEK5TAINKOlLQTKgYYrKfkb3diOOz3/7lfPSbpLW
OAafSUJeCWFF/YheId7B1YxQIo3XEHed1J3HX3O4LuiPdzmZPBqs2SUoTCwocBuC
RzxWN8d35DvPz2s9TyjBmuJ+oSYU6+KZ7QNZMifymW5PNQjHDK+S+85l9rHEvW5Y
pGR0DrYs10Sx9hdpr4A8O644Dr6U7ZBst+ne6PBZdXxJj9c4xb0uwKDw6C3KzjJe
qcf5Y7JBfIMdcDXyxtlihFR/csVf2FdiB58xk+ZCvktJCCDEaIw=
=tdXi
-----END PGP SIGNATURE-----

--=_engme2e_PPQzb0ygEdLBDr1--
Bug#1149219: Probably a race condition
#4371
Author: Chris Hofstaedtler
Date: Fri, 13 Nov 2026 12:30
69 lines
4671 bytes
* Mike Gabriel <sunweaver@debian.org> [261112 21:06]:
>Hi Chris, hi Elbrus, hi Roland,
>
>On  Do 12 Nov 2026 16:50:59 CET, Roland Clobus wrote:
>
>>[...]
>
>There has some discussion been going on due to testing migration 
>failures of src:pkg debian-edu package because of problems like:
>
>```
>363s Creating group 'kvm' with GID 982.
>363s Creating group 'render' with GID 981.
>363s /usr/lib/tmpfiles.d/static-nodes-permissions.conf:18: Failed to 
>resolve group 'kvm': Unknown group
>363s /usr/lib/tmpfiles.d/static-nodes-permissions.conf:19: Failed to 
>resolve group 'kvm': Unknown group
>363s /usr/lib/tmpfiles.d/static-nodes-permissions.conf:20: Failed to 
>resolve group 'kvm': Unknown group
>```
>
>I would like to bring up some findings Roland Clobus and I had that 
>might be relevant.
>
>TL;DR; does a package that uses the sysusers.d API of systemd need a 
>Pre-Depends: on libnss-systemd???

But sysusers doesn't use libnss-systemd...

>
>The failures we observed in CI (with debian-edu << 2.13.8, the current 
>version has another breakage):
>
>  - a postinst script of some package uses sysusers.d API from systemd to
>    create a system user or group
>  - and then later on in that postinst script, it tries to operate on that
>    user or group (normally a chown on some folder or file)
>  - we often then get an error message from that operation like the one
>    quoted above, because the user (or group) that just got created does
>    not yet exist on the system (or rather: it cannot yet be seen by the
>    system).
>
>A parallel observation we had is this:
>
>  - package X configures a new user/group via sysusers.d API from systemd
>  - package X want to use this user/group immediately (and fails)
>  - further down in the output of APT (Configuring <package>...), we can
>    see that libnss-systemd gets configured.
>  - libnss-systemd uses dh-nss and ships debian/libnss-systemd.nss. dh-nss
>    adds various #DEBHELPER# snippets to all (iirc) package scripts to
>    manage "systemd" nss provider info to the entries user, group, shadow,
>    gshadow in nsswitch.conf
>
>The problem now is:
>
>  - package X wants to operate on a user/group visible to the system
>    via libnss-systemd
>  - but: libnss-systemd is not yet configured (postinst)
>  - that means: "systemd" entries are not yet in /etc/nsswitch.conf for
>    user, group, shadow, gshadow when package X wants to use them
>  - which means: the user/group is still invisible when package X wants
>    to operate on them

I think these are unrelated problems, each of them deserves detailed 
debugging. 

Relatedly there is dh bug #1070473.

C
Bug#1149219: Probably a race condition
#4376
Author: Mike Gabriel
Date: Fri, 13 Nov 2026 13:30
80 lines
5094 bytes
This message is in MIME format and has been PGP signed.

--=_JnvpQbx3sgJ51n4m0W6ftcA
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Chris,

On  Fr 13 Nov 2026 13:27:02 CET, Chris Hofstaedtler wrote:

> * Mike Gabriel <sunweaver@debian.org> [261112 21:06]:
>> Hi Chris, hi Elbrus, hi Roland,
>>
>> On  Do 12 Nov 2026 16:50:59 CET, Roland Clobus wrote:
>>
>>> [...]
>>
>> There has some discussion been going on due to testing migration=20=20
>>=20failures of src:pkg debian-edu package because of problems like:
>>
>> ```
>> 363s Creating group 'kvm' with GID 982.
>> 363s Creating group 'render' with GID 981.
>> 363s /usr/lib/tmpfiles.d/static-nodes-permissions.conf:18: Failed=20=20
>>=20to resolve group 'kvm': Unknown group
>> 363s /usr/lib/tmpfiles.d/static-nodes-permissions.conf:19: Failed=20=20
>>=20to resolve group 'kvm': Unknown group
>> 363s /usr/lib/tmpfiles.d/static-nodes-permissions.conf:20: Failed=20=20
>>=20to resolve group 'kvm': Unknown group
>> ```
>>
>> I would like to bring up some findings Roland Clobus and I had that=20=
=20
>>=20might be relevant.
>>
>> TL;DR; does a package that uses the sysusers.d API of systemd need=20=20
>>=20a Pre-Depends: on libnss-systemd???
>
> But sysusers doesn't use libnss-systemd...

Ouch. Did some reading and yes, had to shift concepts in my head=20=20
around=20afterwards.

Sorry for the noise,
Mike
--=20

mike=20gabriel aka sunweaver (Debian Developer)
mobile: +49 (1520) 1976 148
landline: +49 (4351) 486 14 27

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: sunweaver@debian.org, http://sunweavers.net


--=_JnvpQbx3sgJ51n4m0W6ftcA
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIzBAABCgAdFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAmr3DnoACgkQmvRrMCV3
GzEuSw/+Jc38p5NhWK2kkbk1a4/RV6hqXvy7nLL6E8QMMgxQFz0hbyevgHb4Xn0F
6omV/jCrJsjUIB31SJCsg87WH3nkiIpDK9vUDQeT62ivhHEfxj2O82BsjSAdtrmF
1dsFH90AazMNGdgqSLDxCVWILpeaOOz8tu9YeGuhbcw6bH3t+XjKw3bT2of2R5Ya
nbYavWF/Ki9HrOJAmxvLay5aOUBAh8f6lxMU303gxXeOEfMJDR8jQ6o0nJRnf1GM
0qaY4vMj0vY05Ig2mxW8v4pu1wnaaUDzEaElaiaMWdcKi+7B9H873t5AdTZ6m4eo
VVCQJrwb8OmBdn4u6mz4RbxHPy0xUXubk7yMOjfcFSY7M/cB4E/ecf+WPbiOeHb8
msRAt9flzfZhi8x5sq5Z14sJnyw22tnukf5dNfCZzbWA/p9jPRRkfY7+dz8LQYQh
Yhmuo/pqGG8g0FPquZ9jRvtQNcVuLJ1Zz/8JDDsDuK29bl5I5qSmfsQ82JHGSo+T
O4zRtAOVozlgvzj+zuRgyInd+15nvazEPrcunr+2BaBbeOG55IcZP6urMVooKTMv
qBP4Gq9MLubfytsD7KhvQRtD3vw2P23Tl0RCCf7nA5wldoe0pnyLtx7sh791ENUw
nk0j1+++th51lLi8o1EOGo50cD9b4B0m1kPgK9uFgCkvtrZpbYY=
=VXWC
-----END PGP SIGNATURE-----

--=_JnvpQbx3sgJ51n4m0W6ftcA--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads