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

Package: salt-minion; Reported by: Samuli Airaksinen <devuan@airasa.fi>; Keywords: moreinfo debian; dated Wed, 3 Feb 2021 16:33:01 UTC; Maintainer for salt-minion is (unknown).

Message received at 543@bugs.devuan.org:


Received: (at 543) by bugs.devuan.org; 4 Feb 2021 10:50:03 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Thu, 04 Feb 2021 10:50:03 +0000 (UTC)
Received: from mx.hindley.org.uk (193-36-131-5.cfwn.uk [193.36.131.5])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id A97EEF609FF
	for <543@bugs.devuan.org>; Thu,  4 Feb 2021 11:47:36 +0100 (CET)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1l7cAg-00062U-Py; Thu, 04 Feb 2021 10:47:35 +0000
Received: (nullmailer pid 652 invoked by uid 1000);
	Thu, 04 Feb 2021 10:47:33 -0000
Date: Thu, 4 Feb 2021 10:47:33 +0000
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
Message-ID: <YBvQxSkqVldd3tfw@hindley.org.uk>
References: <835a127b-e5ed-9914-780f-92057214c325@samuliairaksinen.fi>
 <YBre6c4T2YDAY44m@hindley.org.uk>
 <YBrg46aSjo7j99iU@hindley.org.uk>
 <9b52488b-6a7b-01e8-b132-67f2e40a11bc@samuliairaksinen.fi>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <9b52488b-6a7b-01e8-b132-67f2e40a11bc@samuliairaksinen.fi>
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

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

Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#543; Package salt-minion. Full text available.

Message received at 543@bugs.devuan.org:


Received: (at 543) by bugs.devuan.org; 4 Feb 2021 05:00:02 +0000
Return-Path: <devuan@airasa.fi>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Thu, 04 Feb 2021 05:00:02 +0000 (UTC)
Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172])
	(using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id BF7DFF60C36
	for <543@bugs.devuan.org>; Thu,  4 Feb 2021 05:49:15 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=airasa.fi header.i=@airasa.fi header.b="N77/5vRm";
	dkim-atps=neutral
Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4DWR0V1XN9zQlW2;
	Thu,  4 Feb 2021 05:49:14 +0100 (CET)
X-Virus-Scanned: amavisd-new at heinlein-support.de
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=airasa.fi; s=MBO0001;
	t=1612414152;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=4zz2iZOOh21e5Zq5ZzDYvC5jiHt1qe5N9VW8061mjv8=;
	b=N77/5vRmloUUi0giF+pf8fW8ho4ZRiLe4knAyUFvLmsLCkb8XzIZqo5TyXXgogwRL1FXe/
	FCoOc28OMgv+h633PmObBTIs4rOQV4z77AX7aFgSMYBRolKbeYOhyy9W3BPAMxVYRIMEP0
	vcuPde7ZM6R55smyT/XDoZlfWgTPPydkMKCv/EsSNfKUhf9q+FPMmScO+flE5Ze/35f3um
	9wy4Q7uyQF1YMonxNZ3oZxLK1e+0hLXlf3r0nJSo71C0bmk8LZFQqNA0nPILpQzyabasBv
	V+6LrwTWDDitJkIgK7EeaG3I+PV3U9FZ3A0B47qQ0mHEL1lrxlv7dYeZpoOa5Q==
Received: from smtp1.mailbox.org ([80.241.60.240])
	by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030)
	with ESMTP id sYf8eUKebNXY; Thu,  4 Feb 2021 05:49:11 +0100 (CET)
Subject: Re: bug#543: DAEMON_ARGS in /etc/init.d/salt-minion prevents
 salt-minion startup
To: Mark Hindley <mark@hindley.org.uk>, 543@bugs.devuan.org
References: <835a127b-e5ed-9914-780f-92057214c325@samuliairaksinen.fi>
 <YBre6c4T2YDAY44m@hindley.org.uk> <YBrg46aSjo7j99iU@hindley.org.uk>
From: Samuli Airaksinen <devuan@airasa.fi>
Message-ID: <9b52488b-6a7b-01e8-b132-67f2e40a11bc@samuliairaksinen.fi>
Date: Thu, 4 Feb 2021 06:49:11 +0200
MIME-Version: 1.0
In-Reply-To: <YBrg46aSjo7j99iU@hindley.org.uk>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-MBO-SPAM-Probability: 
X-Rspamd-Score: -3.11 / 15.00 / 15.00
X-Rspamd-Queue-Id: 0FC831850
X-Rspamd-UID: 4556c1
X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H4,
	RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

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


Acknowledgement sent to Samuli Airaksinen <devuan@airasa.fi>:
Extra info received and forwarded to list. Copy sent to devuan-dev@lists.dyne.org. Full text available.
Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#543; Package salt-minion. Full text available.

Message received at 543@bugs.devuan.org:


Received: (at 543) by bugs.devuan.org; 3 Feb 2021 17:50:03 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 03 Feb 2021 17:50:03 +0000 (UTC)
Received: from mx.hindley.org.uk (193-36-131-5.cfwn.uk [193.36.131.5])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id E7521F60C2F
	for <543@bugs.devuan.org>; Wed,  3 Feb 2021 18:44:04 +0100 (CET)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1l7MCB-0001S9-MV; Wed, 03 Feb 2021 17:44:03 +0000
Received: (nullmailer pid 23362 invoked by uid 1000);
	Wed, 03 Feb 2021 17:44:03 -0000
Date: Wed, 3 Feb 2021 17:44:03 +0000
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
Message-ID: <YBrg46aSjo7j99iU@hindley.org.uk>
References: <835a127b-e5ed-9914-780f-92057214c325@samuliairaksinen.fi>
 <YBre6c4T2YDAY44m@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <YBre6c4T2YDAY44m@hindley.org.uk>
X-Debbugs-No-Ack: No Thanks
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

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. Full text available.
Added tag(s) moreinfo and debian. Request was from Mark Hindley <mark@hindley.org.uk> to 543-submit@bugs.devuan.org. Full text available.

Message received at 543@bugs.devuan.org:


Received: (at 543) by bugs.devuan.org; 3 Feb 2021 17:40:03 +0000
Return-Path: <mark@hindley.org.uk>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 03 Feb 2021 17:40:03 +0000 (UTC)
Received: from mx.hindley.org.uk (193-36-131-5.cfwn.uk [193.36.131.5])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 141DBF60C00
	for <543@bugs.devuan.org>; Wed,  3 Feb 2021 18:35:41 +0100 (CET)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1l7M43-0001PA-6t; Wed, 03 Feb 2021 17:35:39 +0000
Received: (nullmailer pid 23208 invoked by uid 1000);
	Wed, 03 Feb 2021 17:35:38 -0000
Date: Wed, 3 Feb 2021 17:35:37 +0000
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
Message-ID: <YBre6c4T2YDAY44m@hindley.org.uk>
References: <835a127b-e5ed-9914-780f-92057214c325@samuliairaksinen.fi>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <835a127b-e5ed-9914-780f-92057214c325@samuliairaksinen.fi>
X-Debbugs-No-Ack: No Thanks
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

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

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#543; Package salt-minion. Full text available.

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 3 Feb 2021 16:30:02 +0000
Return-Path: <devuan@airasa.fi>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 03 Feb 2021 16:30:02 +0000 (UTC)
Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171])
	(using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 3B64CF60B76
	for <submit@bugs.devuan.org>; Wed,  3 Feb 2021 17:27:20 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; unprotected) header.d=airasa.fi header.i=@airasa.fi header.b="tAyWy7lc";
	dkim-atps=neutral
Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4DW6XQ1n27zQlYP
	for <submit@bugs.devuan.org>; Wed,  3 Feb 2021 17:27:18 +0100 (CET)
X-Virus-Scanned: amavisd-new at heinlein-support.de
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=airasa.fi; s=MBO0001;
	t=1612369636;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=fMy4qyFvuAXfvQrpfFrHdExobck/nROauKkicPniSGM=;
	b=tAyWy7lcn/XVyImb2d29n8Qje3I4DKSp1C9fU0JvqK+YYsbE3dUMA4gYEF52X2SxjBFCQS
	beQc6cDQZ+sDPIF8O3q2cOG143Iop5WjOwz1QxYFO20ZIYCda+FR6FpyFEg8FlhY/G8jQL
	AWI0R2sDm60yXbA1lHdr9OCkCJzvPInAXWP0H6qqFf4WqwwwtW8KsbAAddVm293Yxz9SC5
	CCydsLTyv6i4riyGGLl0Km4Hrq3A5yGtZM5pvCw3f5D4KUtwOukyrR3gf/4ZueOSW7ccLx
	euZbBlVBBhVA2FmLTh3qIF9Xj5KLLiOwNnYqOE/7S2oqij0/Yuv63bjY3lSMBg==
Received: from smtp2.mailbox.org ([80.241.60.241])
	by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030)
	with ESMTP id vueX8_MsyI61 for <submit@bugs.devuan.org>;
	Wed,  3 Feb 2021 17:27:14 +0100 (CET)
From: Samuli Airaksinen <devuan@airasa.fi>
Subject: DAEMON_ARGS in /etc/init.d/salt-minion prevents salt-minion startup
To: submit@bugs.devuan.org
Message-ID: <835a127b-e5ed-9914-780f-92057214c325@samuliairaksinen.fi>
Date: Wed, 3 Feb 2021 18:27:14 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-MBO-SPAM-Probability: 
X-Rspamd-Score: -4.51 / 15.00 / 15.00
X-Rspamd-Queue-Id: 06EF517D9
X-Rspamd-UID: 658ab2
X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,
	RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

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

Acknowledgement sent to Samuli Airaksinen <devuan@airasa.fi>:
New bug report received and forwarded. Copy sent to devuan-dev@lists.dyne.org. Full text available.
Report forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#543; Package salt-minion. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat, 29 Jan 2022 06:39:01 UTC