Your message dated Sat, 23 Nov 2024 18:54:24 +0000
with message-id <[email protected]>
and subject line Bug#871958: fixed in dnsmasq 2.90-5
has caused the Debian Bug report #871958,
regarding dnsmasq: Service start hangs with postfix+resolvconf+systemd
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
871958: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871958
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dnsmasq
Version: 2.77-2
Severity: normal

Dear Maintainer,

In Stretch and current testing, when postfix and resolvconf are
installed and the dnsmasq service is started after postfix by systemd,
it hangs (on the first start attempt after boot, subsequent attempts
appear to work).  To reproduce the issue on a fresh Stretch install:

# apt-get install dnsmasq postfix resolvconf
# systemctl disable dnsmasq
# reboot
# service dnsmasq start  (or systemctl start dnsmasq)

After about a minute the "service dnsmasq start" command prints:

Job for dnsmasq.service failed because a timeout was exceeded.
See "systemctl status dnsmasq.service" and "journalctl -xe" for details.

At the debug log level, the systemd log includes:

Aug 12 16:37:25 stretch systemd[2942]: dnsmasq.service: Executing: 
/etc/init.d/dnsmasq systemd-start-resolvconf
Aug 12 16:37:25 stretch systemd[1]: postfix.service: Trying to enqueue job 
postfix.service/reload/replace
Aug 12 16:37:25 stretch systemd[1]: [email protected]: Installed new job 
[email protected]/reload as 821
Aug 12 16:37:25 stretch systemd[1]: postfix.service: Installed new job 
postfix.service/reload as 820
Aug 12 16:37:25 stretch systemd[1]: postfix.service: Enqueued job 
postfix.service/reload as 820
Aug 12 16:37:30 stretch systemd[1]: Enabling showing of status.
Aug 12 16:38:55 stretch systemd[1]: dnsmasq.service: Start-post operation timed 
out. Stopping.

The issue appears to be that ExecStartPost of dnsmasq.service invokes
/etc/init.d/dnsmasq systemd-start-resolvconf which invokes resolvconf
which invokes /etc/resolvconf/update-libc.d/postfix which invokes
"/usr/sbin/service postfix reload" which hangs because the postfix
reload operation is queued behind the currently executing dnsmasq start
operation, causing the dnsmasq start operation to eventually time out.

I have been unable to determine why the hang only happens on the first
dnsmasq start attempt after boot.  I can confirm "service postfix
reload" is called, but it does not hang on subsequent attempts.

This could be a bug in systemd, but since it manifested in dnsmasq, I
have filed the issue here to start.  Please reassign if you think it is
a systemd issue.

Thanks,
Kevin

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.12.0-kevinoid1 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), 
LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dnsmasq depends on:
ii  dnsmasq-base         2.77-2
ii  init-system-helpers  1.49
ii  lsb-base             9.20161125
ii  netbase              5.4

dnsmasq recommends no packages.

Versions of packages dnsmasq suggests:
ii  resolvconf  1.79

-- Configuration Files:
/etc/dnsmasq.conf changed [not included]

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: dnsmasq
Source-Version: 2.90-5
Done: Sven Geuer <[email protected]>

We believe that the bug you reported is fixed in the latest version of
dnsmasq, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sven Geuer <[email protected]> (supplier of updated dnsmasq package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 23 Nov 2024 18:50:11 +0100
Source: dnsmasq
Architecture: source
Version: 2.90-5
Distribution: unstable
Urgency: medium
Maintainer: Simon Kelley <[email protected]>
Changed-By: Sven Geuer <[email protected]>
Closes: 774970 871958 934477 1022706
Changes:
 dnsmasq (2.90-5) unstable; urgency=medium
 .
   * d/control + d/copyright:
     - Update my email address to the d.o one.
   * d/control:
     - Mark all packages as Multi-Arch: foreign (closes: #934477). Thanks to
       "Yuriy M. Kaminskiy" <[email protected]> for the patch.
   * d/dnsmasq.service + d/[email protected]:
     - Require network-online.target instead of network.target (closes: #774970,
       lp: #1531184). Thanks to David Britton <[email protected]> for
       the patch.
     - Add Documentation key.
   * d/init-system-common:
     - Run resolvconf asynchronously (closes: #871958, lp: #1778073). Thanks to
       Ciaby, https://launchpad.net/~ciaby, for tracking down what caused a
       deadlock between dnsmasq, resolvconf and postfix.
   * d/tests/*:
     - Add test to verify the fix to bug #871958 still works.
   * d/p/*:
     - Add patch to remove trailing white space from dnsmasq.conf.example
       (closes: #1022706).
   * d/rules:
     - Apply dh_installexamples instead of explicit code to package
       dnsmasq.conf.example.
   * d/dnsmasq.init:
     - Fix lintian issue init.d-script-missing-lsb-short-description.
Checksums-Sha1:
 6c00123604e2bfd3430686a5b9f2fcae28999a26 2620 dnsmasq_2.90-5.dsc
 56c12139cef8b41c4d0b5d6ce2c5ed94ecd28eda 33204 dnsmasq_2.90-5.debian.tar.xz
 ef0fa8f9d9c8266b04d15f32e40546b77802464f 8438 dnsmasq_2.90-5_amd64.buildinfo
Checksums-Sha256:
 14ae1eba409decf3a244b58652a22a69defe1f567513e2df085f77a4803bf2dc 2620 
dnsmasq_2.90-5.dsc
 f9fb880dab7170a21836e5a34d275e93008dde33a9affdc688e9f3bf94b84bff 33204 
dnsmasq_2.90-5.debian.tar.xz
 136fe8b28d7a8f004bbdbf7c92fcccdc62a125a358c45d53356ea08fb943862d 8438 
dnsmasq_2.90-5_amd64.buildinfo
Files:
 eeb18eb095b0eebdec78912b32b48c91 2620 net optional dnsmasq_2.90-5.dsc
 6ac241a283c75ebfb41fd85468ae402f 33204 net optional 
dnsmasq_2.90-5.debian.tar.xz
 02dc2459ade9216b6e4c0427eac7d3d6 8438 net optional 
dnsmasq_2.90-5_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEPfXoqkP8n9/QhvGVrfUO2vit1YUFAmdCGTUPHHNnZUBkZWJp
YW4ub3JnAAoJEK31Dtr4rdWFTN8P/2nNlOc1DvASppNX290fCsJoO0nxwnWSAXaY
MIxKqC3yat6jdjnEpCn1H7Cj1i6Wntt4z1pKNJLtS8Xq63j2EYf5OSXyJxgoD20q
VieL9kIhnxnAsCSJoSAjU/KzfMwX9p9EzpC6yxUVjRQunbZfbhDKH7owXgLDGf48
vNW4Jdt5twhEP4G2qS1mTgji/PFA2Gmp1iaLI3DNnNrwpgkggBA57/FGNPPEnVYP
qrnPu0trSiT/wDdFxWQL5kgEII9ljAi1Bs8+bPbX7B2cjy5nbyCKTYh7gYZdKZav
eGScKHAZjsFyDF3DgWMIEsQLaKRXexTAEKM70qoiAL9DrHp+kLfFHXCcA5FHtDEr
pE9YDZ6h5cE0bLj/5DrlxTuQICJoXoeNHSGNvRGIoMVyTojyMQm48ykOYkEVEpUZ
ZdZF39Ym0pH5Yder10ESk1AfiIPRwSvWSrlwS+aDbdXQ46ON4Mn7vsjtUCQfpgWq
mxJnx97SG4+Jv226ffZrJLmT0ssdZVZeD4ZcNyhS5U83jzpZhxrtDdTDrkLJ8pv6
iZoW4qdyB8hQb5Kbcj7o4aRAhc0MLvy/TviDXSBTsZKyGzHz+FH+MghiRaqwMnMb
oeREVNlKaoBa/8dgNHI9nDwMPPqpWo5CBPuQIh9pqOxynP8v/1QMHht6y2VDXsPq
+C6Y7yn4
=db6L
-----END PGP SIGNATURE-----

Attachment: pgpZ1PsZzfpj_.pgp
Description: PGP signature


--- End Message ---

Reply via email to