Devuan bug report logs - #491
snmpd: Default not sourced, SNMPDOPTS not changed, 'ia_addr' error resurrected

Package: snmpd; Reported by: Alessandro Vesely <vesely@tana.it>; Keywords: debian; Forwarded to https://bugs.debian.org/965034; Maintainer for snmpd is (unknown).
Set bug forwarded-to-address to 'https://bugs.debian.org/965034'. Request was from Mark Hindley <mark@hindley.org.uk> to control@bugs.devuan.org. Full text available.

Message received at 491@bugs.devuan.org:


Received: (at 491) by bugs.devuan.org; 14 Jul 2020 20:20:07 +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); Tue, 14 Jul 2020 20:20:07 +0000 (UTC)
Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179])
	(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 949B8F60A2B
	for <491@bugs.devuan.org>; Tue, 14 Jul 2020 22:15:14 +0200 (CEST)
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 1jvRKa-0003E8-6d; Tue, 14 Jul 2020 21:15:12 +0100
Received: (nullmailer pid 24067 invoked by uid 1000);
	Tue, 14 Jul 2020 20:15:10 -0000
Date: Tue, 14 Jul 2020 21:15:10 +0100
From: Mark Hindley <mark@hindley.org.uk>
To: Alessandro Vesely <vesely@tana.it>
Cc: 491@bugs.devuan.org
Subject: Re: [devuan-dev] bug#491: snmpd: Default not sourced, SNMPDOPTS not
 changed, 'ia_addr' error resurrected
Message-ID: <20200714201510.GE5316@hindley.org.uk>
References: <159474525290.27362.326221750437452939.reportbug@north.ext.tana.it>
 <20200714175834.GD5316@hindley.org.uk>
 <e9d0a6ef-df61-7334-7157-10a85bceb4a2@tana.it>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <e9d0a6ef-df61-7334-7157-10a85bceb4a2@tana.it>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

On Tue, Jul 14, 2020 at 08:20:04PM +0200, Alessandro Vesely wrote:
> > Thanks for this. However, as you note, this is a Debian bug and Devuan uses the
> > Debian packages directly. Please would you report this directly to Debian?
> 
> 
> Hm... is SysV still a priority there?

No, not a priority but certainly still an option.

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#491; Package snmpd. Full text available.

Message received at 491@bugs.devuan.org:


Received: (at 491) by bugs.devuan.org; 14 Jul 2020 18:30:13 +0000
Return-Path: <vesely@tana.it>
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); Tue, 14 Jul 2020 18:30:13 +0000 (UTC)
Received: from wmail.tana.it (wmail.tana.it [62.94.243.226])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with UTF8SMTPS id 5A66FF60A2B
	for <491@bugs.devuan.org>; Tue, 14 Jul 2020 20:20:05 +0200 (CEST)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1152-bit key; secure) header.d=tana.it header.i=@tana.it header.b="AroFQtyP";
	dkim-atps=neutral
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tana.it; s=delta;
	t=1594750804; bh=QDO79veJv1fbx3Ol+yrTPw3NdfNb7LDWFcMvtMar1sI=;
	l=2680; h=To:References:From:Date:In-Reply-To;
	b=AroFQtyP4IWPdVpaslUaspFDomv50DjpGqYny/rT4YPqtmD0UMP1GXMgKWuaenxTz
	 OKdzyON4JxLa1LmIj6TsPfLsu/oEBo2zLCyhwTLG6Sls+zQQA9ED/6T7uD2NgI+wOF
	 QQSwS2hUnxZU9Bvz20WbFcb6gO7TVkpCsjVFWDCLvZa/qFtf5bMS+3bnzPU4n
Authentication-Results: tana.it; auth=pass (details omitted)
Received: from [172.25.197.111] (pcale.tana [172.25.197.111])
  (AUTH: CRAM-MD5 uXDGrn@SYT0/k, TLS: TLS1.3,128bits,ECDHE_RSA_AES_128_GCM_SHA256)
  by wmail.tana.it with ESMTPSA
  id 00000000005DC083.000000005F0DF754.00007AB0; Tue, 14 Jul 2020 20:20:04 +0200
Subject: Re: [devuan-dev] bug#491: snmpd: Default not sourced, SNMPDOPTS not
 changed, 'ia_addr' error resurrected
To: Mark Hindley <mark@hindley.org.uk>, 491@bugs.devuan.org
References: <159474525290.27362.326221750437452939.reportbug@north.ext.tana.it>
 <20200714175834.GD5316@hindley.org.uk>
From: Alessandro Vesely <vesely@tana.it>
Message-ID: <e9d0a6ef-df61-7334-7157-10a85bceb4a2@tana.it>
Date: Tue, 14 Jul 2020 20:20:04 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.9.0
MIME-Version: 1.0
In-Reply-To: <20200714175834.GD5316@hindley.org.uk>
Content-Type: text/plain; charset=us-ascii
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,
	RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

On 14/07/2020 19:58, Mark Hindley wrote:
> Control: tags -1 debian
> 
> On Tue, Jul 14, 2020 at 06:47:32PM +0200, Alessandro Vesely wrote:
>> Package: snmpd
>> Version: 5.7.3+dfsg-5
>> Severity: normal
>> 
>> Dear Maintainer,
>> 
>> after upgrading to Beowulf, daemon.log gets filled with these:
>> 
>> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
>> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
>> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
>> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
>> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
>> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
>> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
>> [...]
>> 
>> It is an old bug, with a known "solution" consisting in lowering the log level.
>> 
>> However, the Debian maintainer must have changed the original init.d/snmpd
>> file, since they use systemd instead, so that /etc/default/snmpd does not
>> get sourced.  Hence the logs.
> 
> Alessandro,
> 
> Thanks for this. However, as you note, this is a Debian bug and Devuan uses the
> Debian packages directly. Please would you report this directly to Debian?


Hm... is SysV still a priority there?


Best
Ale

-------- Forwarded Message --------
Subject: Bug#965034: Acknowledgement (snmpd: Default not sourced, SNMPDOPTS not changed, 'ia_addr' error resurrected)
Date: Tue, 14 Jul 2020 18:15:04 +0000
From: Debian Bug Tracking System <owner@bugs.debian.org>
Reply-To: 965034@bugs.debian.org
To: Alessandro Vesely <vesely@tana.it>

Thank you for filing a new Bug report with Debian.

You can follow progress on this Bug here: 965034: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=965034.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 Net-SNMP Packaging Team <pkg-net-snmp-devel@lists.alioth.debian.org>

If you wish to submit further information on this problem, please
send it to 965034@bugs.debian.org.

Please do not send mail to owner@bugs.debian.org unless you wish
to report a problem with the Bug-tracking system.

-- 
965034: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=965034
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

Acknowledgement sent to Alessandro Vesely <vesely@tana.it>:
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#491; Package snmpd. Full text available.
Added tag(s) debian. Request was from Mark Hindley <mark@hindley.org.uk> to 491-submit@bugs.devuan.org. Full text available.

Message received at 491@bugs.devuan.org:


Received: (at 491) by bugs.devuan.org; 14 Jul 2020 18:10:12 +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); Tue, 14 Jul 2020 18:10:12 +0000 (UTC)
Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179])
	(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 B103CF60481
	for <491@bugs.devuan.org>; Tue, 14 Jul 2020 19:58:47 +0200 (CEST)
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 1jvPCN-0002Yt-2Y; Tue, 14 Jul 2020 18:58:36 +0100
Received: (nullmailer pid 22092 invoked by uid 1000);
	Tue, 14 Jul 2020 17:58:34 -0000
Date: Tue, 14 Jul 2020 18:58:34 +0100
From: Mark Hindley <mark@hindley.org.uk>
To: Alessandro Vesely <vesely@tana.it>, 491@bugs.devuan.org
Subject: Re: [devuan-dev] bug#491: snmpd: Default not sourced, SNMPDOPTS not
 changed, 'ia_addr' error resurrected
Message-ID: <20200714175834.GD5316@hindley.org.uk>
References: <159474525290.27362.326221750437452939.reportbug@north.ext.tana.it>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <159474525290.27362.326221750437452939.reportbug@north.ext.tana.it>
X-Debbugs-No-Ack: No Thanks
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Spam-Status: No, score=-0.0 required=5.0 tests=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 debian

On Tue, Jul 14, 2020 at 06:47:32PM +0200, Alessandro Vesely wrote:
> Package: snmpd
> Version: 5.7.3+dfsg-5
> Severity: normal
> 
> Dear Maintainer,
> 
> after upgrading to Beowulf, daemon.log gets filled with these:
> 
> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
> Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
> [...]
> 
> It is an old bug, with a known "solution" consisting in lowering the log level.
> 
> However, the Debian maintainer must have changed the original init.d/snmpd
> file, since they use systemd instead, so that /etc/default/snmpd does not
> get sourced.  Hence the logs.

Alessandro,

Thanks for this. However, as you note, this is a Debian bug and Devuan uses the
Debian packages directly. Please would you report this directly to Debian?

Thanks

Mark

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

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 14 Jul 2020 16:50:12 +0000
Return-Path: <vesely@tana.it>
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); Tue, 14 Jul 2020 16:50:12 +0000 (UTC)
Received: from wmail.tana.it (wmail.tana.it [62.94.243.226])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with UTF8SMTPS id 153E6F609F5
	for <submit@bugs.devuan.org>; Tue, 14 Jul 2020 18:47:34 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
  (uid 1000)
  by wmail.tana.it with local
  id 00000000005DC07C.000000005F0DE1A4.00006C99; Tue, 14 Jul 2020 18:47:32 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Alessandro Vesely <vesely@tana.it>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: snmpd: Default not sourced, SNMPDOPTS not changed, 'ia_addr' error resurrected
Message-ID: <159474525290.27362.326221750437452939.reportbug@north.ext.tana.it>
X-Mailer: reportbug 7.5.3+devuan3
Date: Tue, 14 Jul 2020 18:47:32 +0200
X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,
	RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Package: snmpd
Version: 5.7.3+dfsg-5
Severity: normal

Dear Maintainer,

after upgrading to Beowulf, daemon.log gets filled with these:

Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
Jul 14 18:31:46 31 north snmpd[27013]: error on subcontainer 'ia_addr' insert (-1)
[...]

It is an old bug, with a known "solution" consisting in lowering the log level.

However, the Debian maintainer must have changed the original init.d/snmpd
file, since they use systemd instead, so that /etc/default/snmpd does not
get sourced.  Hence the logs.

I just changed /etc/init.d/snmpd (lazy me).

-- System Information:
Distributor ID:	Debian
Description:	Devuan GNU/Linux 3 (beowulf)
Release:	3
Codename:	beowulf
Architecture: x86_64

Kernel: Linux 4.19.0-9-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages snmpd depends on:
ii  adduser                3.118
ii  debconf [debconf-2.0]  1.5.71
ii  libc6                  2.28-10
ii  libmariadb3            1:10.3.22-0+deb10u1
ii  libsnmp-base           5.7.3+dfsg-5
ii  libsnmp30              5.7.3+dfsg-5
ii  libssl1.1              1.1.1d-0+deb10u3
ii  lsb-base               10.2019051400
ii  zlib1g                 1:1.2.11.dfsg-1

snmpd recommends no packages.

Versions of packages snmpd suggests:
pn  snmptrapd  <none>

-- Configuration Files:
/etc/default/snmpd changed:
export MIBS=
SNMPDRUN=yes
SNMPDOPTS='-LS6d -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /run/snmpd.pid'

/etc/init.d/snmpd changed:
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
    set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
DESC="SNMP Services"
DAEMON=/usr/sbin/snmpd
PIDFILE="/run/snmpd.pid"
OLD_MIBS_DIR="/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp"
MIBS_DIR="/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf"
export MIBDIRS="$MIBS_DIR:$OLD_MIBS_DIR"
DEFAULT_SNMPDOPTS="-Ls6d -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf"
[ -z "$SNMPDOPTS" ] && SNMPDOPTS=$DEFAULT_SNMPDOPTS
DAEMON_ARGS="$SNMPDOPTS -p $PIDFILE"
do_start_prepare()
{
    	# remove old symlink with previous version
    	if [ -L /var/run/agentx ]; then
		rm -f /var/run/agentx
	fi
	if [ ! -d /var/run/agentx ]; then
		mkdir -p /var/run/agentx
	fi
}

/etc/snmp/snmpd.conf [Errno 13] Permission denied: '/etc/snmp/snmpd.conf'
/etc/snmp/snmptrapd.conf [Errno 13] Permission denied: '/etc/snmp/snmptrapd.conf'

-- debconf information:
  snmpd/upgradefrom36:
  snmpd/upgradefrom521:

Acknowledgement sent to Alessandro Vesely <vesely@tana.it>:
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#491; Package snmpd. 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: Sun, 16 Jan 2022 16:39:01 UTC