Bug#1129339: apt hangs for 25 seconds before acting if logind isn't running
David Kalnischkies <[email protected]> Mon, 2 Mar 2026 20:43:03 +0100
| Newsgroups | gmane.linux.debian.apt.devel |
|---|---|
| Message-ID | <aaXRisJjrlTBE4TA__5132.01992014132$1772481217$gmane$org@gosurf.lan> |
Am Sun, Mar 01, 2026 at 09:32:42AM +0100, schrieb g1: > it), this hangs for 25 seconds, until dbus reports timeout on libsystemd added apparently isd_bus_set_method_call_timeout(3) after https://salsa.debian.org/apt-team/apt/-/merge_requests/60 was merged in 2019. The default seems to be 25 sec and if I read Luca right they consider that a sensible default. As I have no sufficient knowledge of dbus I am not sure if its as simple as lowering the timeout given I have no idea how "fast" our method call is supposed to return the fd… (If that needs to be configurable for slow targets, yada yada yada …) [or why it is that way at all. I would naively assume a method without a listener to 'timeout' immediately… but as said, no dbus knowledge] I also wonder a bit if this code (apt-pkg/contrib/fileutl.cc 3448ff) is based on some example or what not that might or might not deserve an update (if it wasn't). I suppose not as I couldn't find a single user of that method via codesearch in Debian at least, but maybe everyone else is linking against dbus directly. Note that this is about the call only, so pre-depends on a somewhat broken login provider. There is no hang if there is e.g. no dbus running at all (like in a chroot). Best regards David Kalnischkies
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIyBAABCgAdFiEE5sn+Q4uCja/tn0GrMRvlz3HQeIMFAmml6EYACgkQMRvlz3HQ eIOpqg/4uaXtNEXcg75QHRks//TWdjHS7XZG1lRcsnE5S+kWyF4uArZosXPNFf6P 9y6JX4Vn1QNfrisqstiwi73DaSZNjJE7tr8eEphUAMLD+hU/VN5QsR/dSkZaO1lk UlmVLQcgf9a4aFcuF6YDILCkjt0Vo1i0g+9+Jl/P3RPA3BtYEq6nf1/m33W93aak 9pZc8248TfhuldwKIJ+TGgVAYqR6LvL1lJVFbx3GN634qDEIQ0U72PZi7d+pdfIU jwoTo20wBcS0P0FNyeElZFBegVTKaavp8lQu8tQhryxCk835X2TZ/VcL6MNIson6 kwoMVJwGYsovNbJVEZZBeHg2skTvVjKYesmF/sShqJUtfRK1hKqwhbyI3e6C3vT5 8zQfZAlAx1DmMIPLI+QziMQycM2qqUZvlz/pFj2TcV44pXX269ltVeyw+jVaESRg c89m4Yd/+C4n/Oz24FD0DBzOYXzcSU/xQVJeS+O2JufqaV2xMZoQjO0btIVXalJ8 4FCfuWhzPjVqc2Q99pZCmWrVCY8WI2fXlKI3WgONHJvVyvd391YwvKKKilFke4b7 75lSwEAYZTHFkyutiHMRybcrwNhuNe+OrIoLiQg6a4gPHXyWKTsRBjP+4o6bYkV6 0vwe6VpBm0rqGUk65+8QHgEBMH3MtU8dsMWY9Q3rJYOgDtqYqw== =6SmY -----END PGP SIGNATURE-----