Devuan bug report logs - #543
DAEMON_ARGS in /etc/init.d/salt-minion prevents salt-minion startup

version graph

Package: salt-minion; Maintainer for salt-minion is (unknown); Source for salt-minion is src:salt.

Reported by: Samuli Airaksinen <devuan@airasa.fi>

Date: Wed, 3 Feb 2021 16:33:01 UTC

Severity: normal

Tags: debian, moreinfo

Found in version 2018.3.4+dfsg1-6+deb10u2

Done: Mark Hindley <mark@hindley.org.uk>

Forwarded to https://bugs.debian.org/1030345

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#543; Package salt-minion. (Wed, 03 Feb 2021 16:33:01 GMT) (full text, mbox, link).


Acknowledgement sent to Samuli Airaksinen <devuan@airasa.fi>:
New bug report received and forwarded. Copy sent to devuan-dev@lists.dyne.org. (Wed, 03 Feb 2021 16:33:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: Samuli Airaksinen <devuan@airasa.fi>
To: submit@bugs.devuan.org
Subject: DAEMON_ARGS in /etc/init.d/salt-minion prevents salt-minion startup
Date: Wed, 3 Feb 2021 18:27:14 +0200
Package: salt-minion
Version: 2018.3.4+dfsg1-6+deb10u2

In /etc/init.d/salt-minion , the line

DAEMON_ARGS="-d"

causes the minion to freeze upon startup. The -d switch, which runs the 
minion in the background, is ok when /usr/bin/salt-minion is ran 
interactively, but causes the minion to freeze when launched via service.

The switch is also warned against at 
https://ansible-cn.readthedocs.io/en/latest/topics/troubleshooting/minion.html 
. In Debian Buster the salt-minion service is also launched without the 
-d argument.

There is no error message. The last log message in log_levels "trace" 
and "garbage" is: "Getting lsb_release distro information", after which 
the minion remains unresponsive.

Emptying the DAEMON_ARGS fixes the problem and enables salt-minion to 
start properly.


Proposed patch:

@@ -15,7 +15,7 @@
 DESC="salt minion control daemon"
 NAME=salt-minion
 DAEMON=/usr/bin/salt-minion
-DAEMON_ARGS="-d"
+DAEMON_ARGS=""
 PIDFILE=/var/run/$NAME.pid
 SCRIPTNAME=/etc/init.d/$NAME

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#543; Package salt-minion. (Wed, 03 Feb 2021 17:48:01 GMT) (full text, mbox, link).


Message #8 received at 543@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Samuli Airaksinen <devuan@airasa.fi>, 543@bugs.devuan.org
Subject: Re: bug#543: DAEMON_ARGS in /etc/init.d/salt-minion prevents salt-minion startup
Date: Wed, 3 Feb 2021 17:35:37 +0000
Control: tags -1 moreinfo, debian

Samuli,

Thanks for this.

On Wed, Feb 03, 2021 at 06:27:14PM +0200, Samuli Airaksinen wrote:
> Package: salt-minion
> Version: 2018.3.4+dfsg1-6+deb10u2
> 
> In /etc/init.d/salt-minion , the line
> 
> DAEMON_ARGS="-d"
[...]
> . In Debian Buster the salt-minion service is also launched without the -d
> argument.

Devuan uses the Debian package of salt-minion directly without recompilation, so
if this line is not present in the Buster version of the initscript, I wonder if
you might have edited the file yourself at some point?

Mark

Added tag(s) moreinfo and debian. Request was from Mark Hindley <mark@hindley.org.uk> to 543-submit@bugs.devuan.org. (Wed, 03 Feb 2021 17:48:04 GMT) (full text, mbox, link).


Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#543; Package salt-minion. (Wed, 03 Feb 2021 18:03:02 GMT) (full text, mbox, link).


Message #13 received at 543@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Samuli Airaksinen <devuan@airasa.fi>, 543@bugs.devuan.org
Subject: Re: bug#543: DAEMON_ARGS in /etc/init.d/salt-minion prevents salt-minion startup
Date: Wed, 3 Feb 2021 17:44:03 +0000
On Wed, Feb 03, 2021 at 05:35:38PM +0000, Mark Hindley wrote:
> Devuan uses the Debian package of salt-minion directly without recompilation,
> so if this line is not present in the Buster version of the initscript, I
> wonder if you might have edited the file yourself at some point?

Actually, I should have looked first. AFAICS, it is present in the
salt-minion_2018.3.4+dfsg1-6+deb10u2_all.deb initscript at line 18.

So this is a Debian bug. Please report it (together with your patch) directly to
Debian's BTS.

Thanks

Mark

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#543; Package salt-minion. (Thu, 04 Feb 2021 05:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Samuli Airaksinen <devuan@airasa.fi>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. (Thu, 04 Feb 2021 05:03:05 GMT) (full text, mbox, link).


Message #18 received at 543@bugs.devuan.org (full text, mbox, reply):

From: Samuli Airaksinen <devuan@airasa.fi>
To: Mark Hindley <mark@hindley.org.uk>, 543@bugs.devuan.org
Subject: Re: bug#543: DAEMON_ARGS in /etc/init.d/salt-minion prevents salt-minion startup
Date: Thu, 4 Feb 2021 06:49:11 +0200
On 2/3/21 7:44 PM, Mark Hindley wrote:
> Actually, I should have looked first. AFAICS, it is present in the
> salt-minion_2018.3.4+dfsg1-6+deb10u2_all.deb initscript at line 18.

Apologies, so it seems. I only looked at the systemd service files and 
didn't realize there is /etc/init.d/salt-minion in the Debian version as 
well.

Please close this bug as WONTFIX or similar. At least someone may find 
this later and get the tip they need to get salt-minion running in their 
Devuan.

Again, thanks and apologies.

-Samuli


Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#543; Package salt-minion. (Thu, 04 Feb 2021 11:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. (Thu, 04 Feb 2021 11:03:06 GMT) (full text, mbox, link).


Message #23 received at 543@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Samuli Airaksinen <devuan@airasa.fi>
Cc: 543@bugs.devuan.org
Subject: Re: bug#543: DAEMON_ARGS in /etc/init.d/salt-minion prevents salt-minion startup
Date: Thu, 4 Feb 2021 10:47:33 +0000
On Thu, Feb 04, 2021 at 06:49:11AM +0200, Samuli Airaksinen wrote:
> Apologies, so it seems. I only looked at the systemd service files and
> didn't realize there is /etc/init.d/salt-minion in the Debian version as
> well.

No worries.

> Please close this bug as WONTFIX or similar. At least someone may find this
> later and get the tip they need to get salt-minion running in their Devuan.

Actually, I would rather get this fixed in Debian, if possible. Would you mind
sending your report to submit@bugs.debian.org with the patch? It might get
fixed.

Thanks

Mark

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#543; Package salt-minion. (Fri, 03 Feb 2023 11:30:01 GMT) (full text, mbox, link).


Message #26 received at 543@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: 543@bugs.devuan.org
Cc: Samuli Airaksinen <devuan@airasa.fi>
Subject: Re: bug#543: DAEMON_ARGS in /etc/init.d/salt-minion prevents salt-minion startup
Date: Fri, 3 Feb 2023 11:28:19 +0000
Control: forwarded -1 https://bugs.debian.org/1030345

On Thu, Feb 04, 2021 at 10:47:33AM +0000, Mark Hindley wrote:
> Actually, I would rather get this fixed in Debian, if possible. Would you mind
> sending your report to submit@bugs.debian.org with the patch? It might get
> fixed.

I have forwarded this to Debian's BTS.

Mark

Set bug forwarded-to-address to 'https://bugs.debian.org/1030345'. Request was from Mark Hindley <mark@hindley.org.uk> to 543-submit@bugs.devuan.org. (Fri, 03 Feb 2023 11:30:04 GMT) (full text, mbox, link).


Reply sent to Mark Hindley <mark@hindley.org.uk>:
You have taken responsibility. (Wed, 24 Apr 2024 16:12:01 GMT) (full text, mbox, link).


Notification sent to Samuli Airaksinen <devuan@airasa.fi>:
bug acknowledged by developer. (Wed, 24 Apr 2024 16:12:02 GMT) (full text, mbox, link).


Message #33 received at 543-done@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: 543-done@bugs.devuan.org
Subject: Closed in Debian #1030345
Date: Wed, 24 Apr 2024 17:09:35 +0100
Package removed from Debian.

Closing.

Mark

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri Sep 6 19:38:10 2024;