Debian Bug report logs -
#754299
dnsmasq: Reloading dnsmasq with systctl results in stop
Reported by: Vladimir Kudrya <pzs-fs@yandex.ru>
Date: Wed, 9 Jul 2014 17:06:01 UTC
Severity: important
Found in version dnsmasq/2.71-1
Fixed in version dnsmasq/2.80-1
Done: Simon Kelley <simon@thekelleys.org.uk>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, pzs-fs@yandex.ru, Simon Kelley <simon@thekelleys.org.uk>:
Bug#754299; Package dnsmasq.
(Wed, 09 Jul 2014 17:06:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir Kudrya <pzs-fs@yandex.ru>:
New Bug report received and forwarded. Copy sent to pzs-fs@yandex.ru, Simon Kelley <simon@thekelleys.org.uk>.
(Wed, 09 Jul 2014 17:06:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: dnsmasq
Version: 2.71-1
Severity: important
Dear Maintainer, when reloading dnsmasq with changed configuration, daemon stops.
Config is valid, daemon can be started normally after that.
Log of the daemon after systemctl reload action:
July 09 20:53:20 host systemd[1]: Reloading A lightweight DHCP and caching DNS server.
July 09 20:53:20 host dnsmasq[1529]: read /etc/dnsmasq-home.hosts - 2 addresses
July 09 20:53:20 host dnsmasq[1529]: exiting on receipt of SIGTERM
July 09 20:53:20 host systemd[1]: Reloaded A lightweight DHCP and caching DNS server.
Somewhere along the way dnsmasq recieves SIGTERM
It happens only if configuration is changed. Reloading daemon with unchagned config does not stop it.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (900, 'testing'), (400, 'unstable'), (300, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.14-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8@ISO, LC_CTYPE=en_US.UTF-8@ISO (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dnsmasq depends on:
ii dnsmasq-base 2.71-1
ii init-system-helpers 1.19
ii netbase 5.2
dnsmasq recommends no packages.
Versions of packages dnsmasq suggests:
pn resolvconf <none>
-- Configuration Files:
/etc/dnsmasq.conf changed [not included]
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org:
Bug#754299; Package dnsmasq.
(Wed, 16 Jul 2014 13:15:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Simon Kelley <simon@thekelleys.org.uk>:
Extra info received and forwarded to list.
(Wed, 16 Jul 2014 13:15:05 GMT) (full text, mbox, link).
Message #10 received at submit@bugs.debian.org (full text, mbox, reply):
On 09/07/14 18:03, Vladimir Kudrya wrote:
> Package: dnsmasq
> Version: 2.71-1
> Severity: important
>
> Dear Maintainer, when reloading dnsmasq with changed configuration, daemon stops.
> Config is valid, daemon can be started normally after that.
>
> Log of the daemon after systemctl reload action:
>
> July 09 20:53:20 host systemd[1]: Reloading A lightweight DHCP and caching DNS server.
> July 09 20:53:20 host dnsmasq[1529]: read /etc/dnsmasq-home.hosts - 2 addresses
> July 09 20:53:20 host dnsmasq[1529]: exiting on receipt of SIGTERM
> July 09 20:53:20 host systemd[1]: Reloaded A lightweight DHCP and caching DNS server.
>
> Somewhere along the way dnsmasq recieves SIGTERM
> It happens only if configuration is changed. Reloading daemon with unchagned config does not stop it.
>
I tried "making a trivial change to /etc/dnsmasq.conf" as a way to
change the configuration, but I can't reproduce this problem. Could you
give a bit more detail on how you're changing the configuration.
Note that sending SIGHUP to dnsmasq (which is what systemctl reload
does) Will NOT make it re-read it's configuration, except for a small
number of specific items. To use a new configuration, you need to
restart dnsmasq, via systemctl restart.
Cheers,
Simon.
Information forwarded
to debian-bugs-dist@lists.debian.org:
Bug#754299; Package dnsmasq.
(Wed, 16 Jul 2014 13:15:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Simon Kelley <simon@thekelleys.org.uk>:
Extra info received and forwarded to list.
(Wed, 16 Jul 2014 13:15:08 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Simon Kelley <simon@thekelleys.org.uk>:
Bug#754299; Package dnsmasq.
(Thu, 17 Jul 2014 05:45:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Simon Kelley <simon@thekelleys.org.uk>.
(Thu, 17 Jul 2014 05:45:05 GMT) (full text, mbox, link).
Message #20 received at 754299@bugs.debian.org (full text, mbox, reply):
Hm... usually changing additional hosts file was enough to trigger this bug. But now I can not reproduce it either.
I've rechecked it on both my home servers and now the bug is gone. Tried adding upstream server in config file and host in addn-hosts file. Reload did not trigger daemon stop this time.
Maybe it has something to do with recent upgrades. I had this bug o two machines before.
Information forwarded
to debian-bugs-dist@lists.debian.org:
Bug#754299; Package dnsmasq.
(Sat, 19 Jul 2014 20:36:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Simon Kelley <simon@thekelleys.org.uk>:
Extra info received and forwarded to list.
(Sat, 19 Jul 2014 20:36:05 GMT) (full text, mbox, link).
Message #25 received at 754299@bugs.debian.org (full text, mbox, reply):
On 17/07/14 06:40, Vladimir K wrote:
> Hm... usually changing additional hosts file was enough to trigger this bug. But now I can not reproduce it either.
> I've rechecked it on both my home servers and now the bug is gone. Tried adding upstream server in config file and host in addn-hosts file. Reload did not trigger daemon stop this time.
> Maybe it has something to do with recent upgrades. I had this bug o two machines before.
>
My test was on an up-to-date sid system. Since there have been no
changes to dnsmasq, I guess it was a bug in systemd which is now fixed.
I can't see anything obvious in the the changelog though.
Simon.
Information forwarded
to debian-bugs-dist@lists.debian.org, Simon Kelley <simon@thekelleys.org.uk>:
Bug#754299; Package dnsmasq.
(Sun, 20 Jul 2014 11:39:10 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Simon Kelley <simon@thekelleys.org.uk>.
(Sun, 20 Jul 2014 11:39:10 GMT) (full text, mbox, link).
Message #30 received at 754299@bugs.debian.org (full text, mbox, reply):
I work on up-to-date Testing.
Just wanted to recheck just in case, and here it goes again!
dnsmasq.service - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; disabled)
Drop-In: /run/systemd/generator/dnsmasq.service.d
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: inactive (dead) since Sun 2014-07-20 15:21:58 MSK; 3s ago
Process: 1771 ExecStop=/etc/init.d/dnsmasq systemd-stop-resolvconf (code=exited, status=0/SUCCESS)
Process: 1768 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Main PID: 1644 (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/dnsmasq.service
июля 20 10:14:35 hostname dnsmasq-dhcp[1644]: DHCPREQUEST(lan0) 10.42.1.75 8c:3a:e3:5d:af:f3
июля 20 10:14:35 hostname dnsmasq-dhcp[1644]: DHCPACK(lan0) 10.42.1.75 8c:3a:e3:5d:af:f3 android-89ce4...7fbf
июля 20 13:49:33 hostname dnsmasq-dhcp[1644]: DHCPDISCOVER(lan0) 10.42.1.66 30:85:a9:18:52:06
июля 20 13:49:33 hostname dnsmasq-dhcp[1644]: DHCPOFFER(lan0) 10.42.1.66 30:85:a9:18:52:06
июля 20 13:49:33 hostname dnsmasq-dhcp[1644]: DHCPREQUEST(lan0) 10.42.1.66 30:85:a9:18:52:06
июля 20 13:49:33 hostname dnsmasq-dhcp[1644]: DHCPACK(lan0) 10.42.1.66 30:85:a9:18:52:06 mindflash4
июля 20 15:21:58 hostname systemd[1]: Reloading A lightweight DHCP and caching DNS server.
июля 20 15:21:58 hostname dnsmasq[1644]: read /etc/dnsmasq-custom.hosts - 3 addresses
июля 20 15:21:58 hostname dnsmasq[1644]: exiting on receipt of SIGTERM
июля 20 15:21:58 hostname systemd[1]: Reloaded A lightweight DHCP and caching DNS server.
I've checked reloading dnsmasq after some time of operation and upgrades to the system:
The following NEW packages will be installed:
libupower-glib2
The following packages will be upgraded:
acpid alsa-base alsa-utils cups cups-bsd cups-client cups-common cups-core-drivers cups-daemon cups-ppdc
cups-server-common e2fslibs e2fsprogs isc-dhcp-client isc-dhcp-common kmod libaqbanking34 libaqbanking34-plugins
libaqebics0 libaqhbci22 libaqofxconnect7 libatk-bridge2.0-0 libcomerr2 libcups2 libcupscgi1 libcupsimage2
libcupsmime1 libcupsppdc1 libdate-manip-perl libegl1-mesa libegl1-mesa-drivers libeot0 libgbm1 libgc1c2 libgdbm3
libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libgnutls-deb0-28 libgnutls-openssl27 libgssdp-1.0-3
libhunspell-1.3-0 libhyphen0 libice6 libjavascriptcoregtk-1.0-0 libjavascriptcoregtk-3.0-0 libjson-glib-1.0-0
libjson-glib-1.0-common libkmod2 libmpg123-0 libnss3 libnss3-1d libopenvg1-mesa libpciaccess0 libpixman-1-0
libprocps3 libpython-stdlib libquvi-scripts librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libsm6
libss2 liburi-perl libwayland-egl1-mesa libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libwebkitgtk-3.0-0
libwebkitgtk-3.0-common libx264-142 libxatracker2 libxaw7 libxfont1 libxft2 libxml-parser-perl libxml2 libxmlsec1
libxmlsec1-gcrypt libxmlsec1-gnutls libxpm4 module-init-tools mpv openjdk-6-jre openjdk-6-jre-headless
openjdk-6-jre-lib printer-driver-all procps python python-minimal upower x11-apps x11-utils x11-xserver-utils
xauth xbacklight xcursor-themes xfonts-utils
It seems nothing is relevant except isc-dhcp packages.
I will try to just send HUP directly after some time to see what happens if I exclude systemd from the reload process.
Information forwarded
to debian-bugs-dist@lists.debian.org, Simon Kelley <simon@thekelleys.org.uk>:
Bug#754299; Package dnsmasq.
(Sat, 26 Jul 2014 04:39:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Simon Kelley <simon@thekelleys.org.uk>.
(Sat, 26 Jul 2014 04:39:04 GMT) (full text, mbox, link).
Message #35 received at 754299@bugs.debian.org (full text, mbox, reply):
Sending HUP to main process does not result in stop.
Doing systemctl reload sometimes does. This time it was after systemd was upgraded from 204-14 to 208-6. I will recheck after some time.
Information forwarded
to debian-bugs-dist@lists.debian.org, Simon Kelley <simon@thekelleys.org.uk>:
Bug#754299; Package dnsmasq.
(Tue, 10 Feb 2015 09:51:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Simon McVittie <smcv@debian.org>:
Extra info received and forwarded to list. Copy sent to Simon Kelley <simon@thekelleys.org.uk>.
(Tue, 10 Feb 2015 09:51:05 GMT) (full text, mbox, link).
Message #40 received at 754299@bugs.debian.org (full text, mbox, reply):
On Sat, 26 Jul 2014 at 08:34:06 +0400, Vladimir K wrote:
> Sending HUP to main process does not result in stop.
> Doing systemctl reload sometimes does. This time it was after systemd was upgraded from 204-14 to 208-6. I will recheck after some time.
I couldn't reproduce this while testing my proposed patch for
<https://bugs.debian.org/776530> on a current jessie virtual machine
(systemd 215-10). Do you still see this bug?
S
Information forwarded
to debian-bugs-dist@lists.debian.org, Simon Kelley <simon@thekelleys.org.uk>:
Bug#754299; Package dnsmasq.
(Sun, 24 Apr 2016 16:33:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Vladimir K <pzs-fs@yandex.ru>:
Extra info received and forwarded to list. Copy sent to Simon Kelley <simon@thekelleys.org.uk>.
(Sun, 24 Apr 2016 16:33:03 GMT) (full text, mbox, link).
Message #45 received at 754299@bugs.debian.org (full text, mbox, reply):
No longer observing this issue on current testing.
Reply sent
to Simon Kelley <simon@thekelleys.org.uk>:
You have taken responsibility.
(Thu, 18 Oct 2018 18:54:03 GMT) (full text, mbox, link).
Notification sent
to Vladimir Kudrya <pzs-fs@yandex.ru>:
Bug acknowledged by developer.
(Thu, 18 Oct 2018 18:54:03 GMT) (full text, mbox, link).
Message #50 received at 754299-close@bugs.debian.org (full text, mbox, reply):
Source: dnsmasq
Source-Version: 2.80-1
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 754299@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Simon Kelley <simon@thekelleys.org.uk> (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 ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 17 Sep 2018 23:11:25 +0000
Source: dnsmasq
Binary: dnsmasq dnsmasq-base dnsmasq-base-lua dnsmasq-utils
Architecture: source amd64 all
Version: 2.80-1
Distribution: unstable
Urgency: low
Maintainer: Simon Kelley <simon@thekelleys.org.uk>
Changed-By: Simon Kelley <simon@thekelleys.org.uk>
Description:
dnsmasq - Small caching DNS proxy and DHCP/TFTP server
dnsmasq-base - Small caching DNS proxy and DHCP/TFTP server
dnsmasq-base-lua - Small caching DNS proxy and DHCP/TFTP server
dnsmasq-utils - Utilities for manipulating DHCP leases
Closes: 754299 794636 794640 802845 837602 872396 872397
Changes:
dnsmasq (2.80-1) unstable; urgency=low
.
* New upstream. (closes: #837602) (closes: #794640) (closes: #794636)
* Close old bugs, long agp fixed. (closes: #802845) (closes: #754299)
* Provide usr/lib/tmpfiles.d/dnsmasq.conf. (closes: #872396)
* Run restorecon on /run/dnsmasq for SE Linux. (closes: #872397)
Checksums-Sha1:
72e6bc029dda4adb9377a0087bd79d5f04208049 2009 dnsmasq_2.80-1.dsc
78600db2dfea315766e9d08bb259724b3a7a7410 716712 dnsmasq_2.80.orig.tar.gz
0422581cb803545a0621c3725e858f25411cf6f8 23928 dnsmasq_2.80-1.diff.gz
bab12d36f38ef20c4a8ef0dfdaf72e2e05bef654 442176 dnsmasq-base-lua_2.80-1_amd64.deb
c41a6f8b5bf6d3464a5a0fdb9b55b164f79661bc 440356 dnsmasq-base_2.80-1_amd64.deb
814a23abe676782bfb5d92ac2436e6a1620386b0 24256 dnsmasq-utils_2.80-1_amd64.deb
7ea71d0b95d53d482c56fdafc451d348b7faa6aa 16428 dnsmasq_2.80-1_all.deb
1ab13f5fc7467700f97a6482d1cb12e978d9cb62 6064 dnsmasq_2.80-1_amd64.buildinfo
Checksums-Sha256:
524127669c55067c08cd6a68d15ba55c09e2af1998d34c9e725faf5b420a1127 2009 dnsmasq_2.80-1.dsc
c62cf8b6a06bfe3e0df1e90a212a263276bac26ce5f7e5976ec630d8700cd97a 716712 dnsmasq_2.80.orig.tar.gz
6c23ad68f88043c0df49826c0274697b7c75f67fded0f989a29ab657b88564c0 23928 dnsmasq_2.80-1.diff.gz
902ef48a2947010bb58a4dd5db3113c8fb9dc770d796df1ad3c0c6b6f695b50a 442176 dnsmasq-base-lua_2.80-1_amd64.deb
114a1df89dac61de4a1c8c75c11a7d243df32e4ac48b6de35b5731bebc5bfd98 440356 dnsmasq-base_2.80-1_amd64.deb
0a4903dfe5b1c91880739779b840d26c1d403d55899bc6f4c0f606ef38b9e55a 24256 dnsmasq-utils_2.80-1_amd64.deb
4e0dcb41e9db3bc249f06460f740ec7e8a954d13ff71551f0e19bec67bb92f4c 16428 dnsmasq_2.80-1_all.deb
596ce1dfb75c9379e4c31aa380f11053688d9cafec07f516cb616b0a09e9c0ac 6064 dnsmasq_2.80-1_amd64.buildinfo
Files:
0927a2f207ef4d2f87c8de255c75d3b2 2009 net optional dnsmasq_2.80-1.dsc
1878ce051745866a7c1a996d1fceb7c0 716712 net optional dnsmasq_2.80.orig.tar.gz
2ab7e966fbfb47b37152ce718893d61b 23928 net optional dnsmasq_2.80-1.diff.gz
d068940ee29b252c9cac1724b9524629 442176 net optional dnsmasq-base-lua_2.80-1_amd64.deb
f246dc654523fb224825428609710cf6 440356 net optional dnsmasq-base_2.80-1_amd64.deb
6a6ab7c857a811d28b3d5967d84522a8 24256 net optional dnsmasq-utils_2.80-1_amd64.deb
52e356939a0b7f24fd575569075fbbf5 16428 net optional dnsmasq_2.80-1_all.deb
e2a67603461b5ec8444d955a09c2a462 6064 net optional dnsmasq_2.80-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE1urL1u5GuDQkjRESFc3aauGRNaIFAlvIz9EACgkQFc3aauGR
NaJ/FQ/9GdetNVI6DDeKnHvEwXtOx6O9hOqkbuvmQDvogtzxz6DknFcSCaJlZtyo
oB5/P/+VBa1vr0isvhBx89J7M1cigXzgzjvBRXjkWrgC3E+BfUX9o9O+RNkhAMng
00ync3HQTEqVyIj7CmfcgwPu6ZIlrSznUWA+admJt6eNIzpBnhoO4usRxKxrfo8c
muT+86yA+VeHGacgAfNbrnmgSL7ZEXyw3jbmBDrqet8yLc0n/RqY+SSQ7aHdD9/t
QpoueQSNlQgIdKvwzAtXZjZ5XaqjHOd3VMJkcVTt/5WBMMbkEJdAtwZZtWL9YiN/
ydnSNqdaz0wudhdjb51khcqJ5XhIJbUqaRdAixclYOBu3MsEtVXFD5ybYOhTCNRE
0Rqd/UibdcbMU90GpAHH//Bxad4H+/V/E/oz3c7BTGL5NTKF87VPqLHDzE1TBaOB
1SbpH/OZ/zZEOpuxygFbEmbIBfXQOdk2nDJKQfQPw+NVW6AyyCyojEfGXwfMB4qe
67Iu7Qs11RoKbcAPWpqB5pZwFjxjr+yLX9yrUNJPoRrk9LOP+hDFeSL7wWV7Iw8N
Ut8FJLU7lvhzem7R+cBmbB/WTmBG/TfiZkq0Bfx+PgXewrRkiS4C37TLqjSCYbW0
c1rhP0XQvQnQTazUR5yz3LdKBgXUhqRnjnKZdnd7pqwRvG7lmPs=
=o++e
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 22 Dec 2018 07:33:49 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Tue Jul 4 10:36:35 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.