mrtg bug was fixed upstream but is not available in stable or unstable ubuntu or debian packages

Bug #899460 reported by schoutetens
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mrtg (Ubuntu)
Fix Released
Undecided
Unassigned
Maverick
Won't Fix
Undecided
Unassigned
Natty
Won't Fix
Undecided
Unassigned
Oneiric
Won't Fix
Medium
Unassigned

Bug Description

mrtg sends an email to root every time it's called because of an error. As far as I understand, this error has been fixed by mrtg months ago but is still not included in the packages system:
v2.17.3 (2011-12-01): latest stable release
v2.17.1 (2011-02-18): bugfix for the problem related to this bugreport
v2.16.3 (2010-01-20): version included in the packages

due to the nature of mrtg (collecting data) it's called every 5 minutes, resulting in 288 mails/day.
I believe this bug showed up on my system after an APT-triggered perl upgrade some time ago

further info:
related mrtg bug: http://oss.oetiker.ch/mrtg-trac/ticket/45
mrtg changelog: http://oss.oetiker.ch/mrtg/pub/CHANGES

example of such a mail:
Return-Path: <root@...>
X-Original-To: root
Delivered-To: root@...
Received: by .... (Postfix, from userid 0)
        id BD31DDE0490; Fri, 2 Dec 2011 20:25:01 +0100 (CET)
From: root@... (Cron Daemon)
To: root@...
Subject: Cron <root@...> if [ -x /usr/bin/mrtg ] && [ -r /usr/local/mrtg/etc/mrtg.cfg ]; then mkdir -p /usr/local/mrtg/var/log ; env LANG=C /usr/bin/mrtg /usr/local/mrtg/etc/mrtg.cfg 2>&1 | tee -a /usr/local/mrtg/var/log/mrtg.log ; fi
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Message-Id: <20111202192501.BD31DDE0490@...>
Date: Fri, 2 Dec 2011 20:25:01 +0100 (CET)
X-IMAPbase: 1322868671 52
Status: O
X-UID: 2

Constant subroutine SNMP_Session::AF_INET6 redefined at /usr/share/perl/5.12/Exporter.pm line 64.
 at /usr/share/perl5/SNMP_Session.pm line 149
Prototype mismatch: sub SNMP_Session::AF_INET6 () vs none at /usr/share/perl/5.12/Exporter.pm line 64.
 at /usr/share/perl5/SNMP_Session.pm line 149
Constant subroutine SNMP_Session::PF_INET6 redefined at /usr/share/perl/5.12/Exporter.pm line 64.
 at /usr/share/perl5/SNMP_Session.pm line 149
Prototype mismatch: sub SNMP_Session::PF_INET6 () vs none at /usr/share/perl/5.12/Exporter.pm line 64.
 at /usr/share/perl5/SNMP_Session.pm line 149
Constant subroutine SNMPv1_Session::AF_INET6 redefined at /usr/share/perl/5.12/Exporter.pm line 64.
 at /usr/share/perl5/SNMP_Session.pm line 608
Prototype mismatch: sub SNMPv1_Session::AF_INET6 () vs none at /usr/share/perl/5.12/Exporter.pm line 64.
 at /usr/share/perl5/SNMP_Session.pm line 608
Constant subroutine SNMPv1_Session::PF_INET6 redefined at /usr/share/perl/5.12/Exporter.pm line 64.
 at /usr/share/perl5/SNMP_Session.pm line 608
Prototype mismatch: sub SNMPv1_Session::PF_INET6 () vs none at /usr/share/perl/5.12/Exporter.pm line 64.
 at /usr/share/perl5/SNMP_Session.pm line 608

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: mrtg 2.16.3-3.1ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.20-server 3.0.4
Uname: Linux 3.0.0-12-server x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Sat Dec 3 00:50:56 2011
InstallationMedia: Ubuntu-Server 10.10 "Maverick Meerkat" - Release amd64 (20101007)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: mrtg
UpgradeStatus: Upgraded to oneiric on 2011-11-07 (25 days ago)
modified.conffile..etc.cron.d.mrtg: [modified]
modified.conffile..etc.mrtg.cfg: [deleted]
mtime.conffile..etc.cron.d.mrtg: 2011-02-26T14:01:37.522860

Revision history for this message
schoutetens (stijn-a) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mrtg (Ubuntu):
status: New → Confirmed
Revision history for this message
Leo Iannacone (l3on) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - Precise Pangolin. It won't be fixed in previous versions of Ubuntu because the package doesn't fit the requirements for backporting. See https://help.ubuntu.com/community/UbuntuBackports for more information.

https://launchpad.net/ubuntu/+source/mrtg/2.17.3-2ubuntu1

Changed in mrtg (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Leo Iannacone (l3on) wrote :
Changed in mrtg (Ubuntu):
assignee: nobody → Leo Iannacone (l3on)
assignee: Leo Iannacone (l3on) → nobody
Revision history for this message
Leo Iannacone (l3on) wrote :
Revision history for this message
Leo Iannacone (l3on) wrote :
Revision history for this message
Leo Iannacone (l3on) wrote :

Ok,

In my last comment I was wrong,

patch seems can be applied to oneiric, natty, maverick.

Michael Bienia (geser)
Changed in mrtg (Ubuntu):
status: Fix Released → Triaged
status: Triaged → Fix Released
Leo Iannacone (l3on)
Changed in mrtg (Ubuntu Maverick):
assignee: nobody → Leo Iannacone (l3on)
Changed in mrtg (Ubuntu Natty):
assignee: nobody → Leo Iannacone (l3on)
Changed in mrtg (Ubuntu Oneiric):
assignee: nobody → Leo Iannacone (l3on)
Changed in mrtg (Ubuntu Maverick):
status: New → Confirmed
Changed in mrtg (Ubuntu Natty):
status: New → Confirmed
Changed in mrtg (Ubuntu Oneiric):
status: New → Confirmed
Changed in mrtg (Ubuntu Maverick):
assignee: Leo Iannacone (l3on) → nobody
Changed in mrtg (Ubuntu Natty):
assignee: Leo Iannacone (l3on) → nobody
Changed in mrtg (Ubuntu Oneiric):
assignee: Leo Iannacone (l3on) → nobody
Revision history for this message
Leo Iannacone (l3on) wrote :
Revision history for this message
Leo Iannacone (l3on) wrote :
Revision history for this message
Leo Iannacone (l3on) wrote :
Revision history for this message
Mahyuddin Susanto (udienz) wrote :

Uploaded in maverick, natty, and oneiric. Waiting approval from Ubuntu-SRU

Changed in mrtg (Ubuntu Maverick):
status: Confirmed → Fix Committed
Changed in mrtg (Ubuntu Oneiric):
status: Confirmed → Fix Committed
Changed in mrtg (Ubuntu Natty):
status: Confirmed → Fix Committed
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Please test proposed package

Hello schoutetens, or anyone else affected,

Accepted mrtg into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hello schoutetens, or anyone else affected,

Accepted mrtg into natty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hello schoutetens, or anyone else affected,

Accepted mrtg into maverick-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Aaron C. de Bruyn (darkpixel2k) wrote :

Installed the mrtg proposed package. Still getting the same errors.

Revision history for this message
schoutetens (stijn-a) wrote :

indeed. the version of mrtg on my system after installing seems to be 2.16.3, the same as the version included in the regular packages. or did I missed something on the procedure for installing proposed packages?

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: [Bug 899460] Re: mrtg bug was fixed upstream but is not available in stable or unstable ubuntu or debian packages
Download full text (4.3 KiB)

Excerpts from Aaron C. de Bruyn's message of Thu Jan 19 18:17:29 UTC 2012:
> Installed the mrtg proposed package. Still getting the same errors.
>

Aaron, thanks for testing. Can you please run

apt-cache policy mrtg

and paste it here?

> --
> You received this bug notification because you are a member of Ubuntu
> Stable Release Updates Team, which is subscribed to the bug report.
> https://bugs.launchpad.net/bugs/899460
>
> Title:
> mrtg bug was fixed upstream but is not available in stable or unstable
> ubuntu or debian packages
>
> Status in “mrtg” package in Ubuntu:
> Fix Released
> Status in “mrtg” source package in Maverick:
> Fix Committed
> Status in “mrtg” source package in Natty:
> Fix Committed
> Status in “mrtg” source package in Oneiric:
> Fix Committed
>
> Bug description:
> mrtg sends an email to root every time it's called because of an error. As far as I understand, this error has been fixed by mrtg months ago but is still not included in the packages system:
> v2.17.3 (2011-12-01): latest stable release
> v2.17.1 (2011-02-18): bugfix for the problem related to this bugreport
> v2.16.3 (2010-01-20): version included in the packages
>
> due to the nature of mrtg (collecting data) it's called every 5 minutes, resulting in 288 mails/day.
> I believe this bug showed up on my system after an APT-triggered perl upgrade some time ago
>
> further info:
> related mrtg bug: http://oss.oetiker.ch/mrtg-trac/ticket/45
> mrtg changelog: http://oss.oetiker.ch/mrtg/pub/CHANGES
>
> example of such a mail:
> Return-Path: <root@...>
> X-Original-To: root
> Delivered-To: root@...
> Received: by .... (Postfix, from userid 0)
> id BD31DDE0490; Fri, 2 Dec 2011 20:25:01 +0100 (CET)
> From: root@... (Cron Daemon)
> To: root@...
> Subject: Cron <root@...> if [ -x /usr/bin/mrtg ] && [ -r /usr/local/mrtg/etc/mrtg.cfg ]; then mkdir -p /usr/local/mrtg/var/log ; env LANG=C /usr/bin/mrtg /usr/local/mrtg/etc/mrtg.cfg 2>&1 | tee -a /usr/local/mrtg/var/log/mrtg.log ; fi
> Content-Type: text/plain; charset=ANSI_X3.4-1968
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <HOME=/root>
> X-Cron-Env: <PATH=/usr/bin:/bin>
> X-Cron-Env: <LOGNAME=root>
> Message-Id: <20111202192501.BD31DDE0490@...>
> Date: Fri, 2 Dec 2011 20:25:01 +0100 (CET)
> X-IMAPbase: 1322868671 52
> Status: O
> X-UID: 2
>
> Constant subroutine SNMP_Session::AF_INET6 redefined at /usr/share/perl/5.12/Exporter.pm line 64.
> at /usr/share/perl5/SNMP_Session.pm line 149
> Prototype mismatch: sub SNMP_Session::AF_INET6 () vs none at /usr/share/perl/5.12/Exporter.pm line 64.
> at /usr/share/perl5/SNMP_Session.pm line 149
> Constant subroutine SNMP_Session::PF_INET6 redefined at /usr/share/perl/5.12/Exporter.pm line 64.
> at /usr/share/perl5/SNMP_Session.pm line 149
> Prototype mismatch: sub SNMP_Session::PF_INET6 () vs none at /usr/share/perl/5.12/Exporter.pm line 64.
> at /usr/share/perl5/SNMP_Session.pm line 149
> Constant subroutine SNMPv1_Session::AF_INET6 redefined at /usr/share/perl/5.12/Exporter.pm line 64.
> at /usr/share/perl5/SNMP_Session.pm line 608
> Prototype mismatch: sub SNMPv1...

Read more...

Revision history for this message
schoutetens (stijn-a) wrote :

~$ apt-cache policy mrtg
mrtg:
  Installed: 2.16.3-3.1ubuntu1.1
  Candidate: 2.16.3-3.1ubuntu1.1
  Version table:
 *** 2.16.3-3.1ubuntu1.1 0
        400 http://archive.ubuntu.com/ubuntu/ oneiric-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     2.16.3-3.1ubuntu1 0
        500 http://be.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages

Revision history for this message
Aaron C. de Bruyn (darkpixel2k) wrote :

Hi Clint,

It's on a machine that does not have internet access, so I'll have to type it from across the gap... ;)

mrtg:
  Installed: 2.16.3-3.1ubuntu1.1
  Candidate: 2.16.3-3.1ubuntu1.1
  Version table:
 *** 2.16.3-3.1ubuntu1.1 0
        400 http://archive.ubuntu.com/ubuntu/ oneiric-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     2.16.3-3.1ubuntu1 0
        500 http://be.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages

Looks identical to schoutetens.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Excerpts from Aaron C. de Bruyn's message of Thu Jan 19 19:34:12 UTC 2012:
> Hi Clint,
>
> It's on a machine that does not have internet access, so I'll have to
> type it from across the gap... ;)
>
> mrtg:
> Installed: 2.16.3-3.1ubuntu1.1
> Candidate: 2.16.3-3.1ubuntu1.1
> Version table:
> *** 2.16.3-3.1ubuntu1.1 0
> 400 http://archive.ubuntu.com/ubuntu/ oneiric-proposed/universe amd64 Packages
> 100 /var/lib/dpkg/status
> 2.16.3-3.1ubuntu1 0
> 500 http://be.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages
>
> Looks identical to schoutetens.

Yes, that is the updated package. Sounds like the fix did not work....

@schoutetens, did the test also fail for you?

Revision history for this message
schoutetens (stijn-a) wrote :

Hi
yes, exact the same results. To me it looks like the packaged version in 'oneiric-proposed' is the same as the packaged version in 'oneiric': v2.16.3 (2010-01-20).
the bug in mrtg is fixed in v2.17.1 (2011-02-18) and later

Revision history for this message
Leo Iannacone (l3on) wrote :

Can you please check if this package solves the problem?

I added unpack_sockaddr_in6 as option importing Socket6.

https://launchpad.net/~l3on/+archive/ppa/+build/3131367/+files/mrtg_2.16.3-1ubuntu1.2_amd64.deb

Revision history for this message
Leo Iannacone (l3on) wrote :

Anyway... we know that the base version of mrtg has not changed, we are trying to fix bug importing patch from upstream.

And upgrade to 1.7 is not possible in oneiric, unless it got a backport.

Revision history for this message
schoutetens (stijn-a) wrote :

Hi

thanks for the effort. I tried installing but i did not succeed. as far as i understand, the perl version currently installed (and needed for apache2) is not compatible with this version. Or probably I did this completely wrong, i'm not that experienced with Linux.
anyway, i had to remove and install mrtg again to get it running again, because the installed version refused to run correctly

-- installation --

$ sudo dpkg -i mrtg_2.16.3-1ubuntu1.2_amd64.deb
dpkg: warning: downgrading mrtg from 2.16.3-3.1ubuntu1 to 2.16.3-1ubuntu1.2.
(Reading database ... 81363 files and directories currently installed.)
Preparing to replace mrtg 2.16.3-3.1ubuntu1 (using mrtg_2.16.3-1ubuntu1.2_amd64.deb) ...
Unpacking replacement mrtg ...
dpkg: dependency problems prevent configuration of mrtg:
 perl (5.12.4-4) breaks mrtg (<< 2.16.3-3.1) and is installed.
  Version of mrtg to be configured is 2.16.3-1ubuntu1.2.
dpkg: error processing mrtg (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
 mrtg

--resulting errors from mrtg in the root mailbox --

Bareword "P_DETACH" not allowed while "strict subs" in use at /usr/share/perl5/MRTG_lib.pm line 1181.
Compilation failed in require at /usr/bin/mrtg line 92.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 92.

Revision history for this message
schoutetens (stijn-a) wrote :

a friend pointed me towards the --force-all option of dpkg, so i gave it a 2nd try. dpkg finishes the installation, but the result for mrtg is the same (the same error in the root mailbox as above)

$ sudo dpkg --force-all -i mrtg_2.16.3-1ubuntu1.2_amd64.deb
dpkg: warning: downgrading mrtg from 2.16.3-3.1ubuntu1 to 2.16.3-1ubuntu1.2.
(Reading database ... 81363 files and directories currently installed.)
Preparing to replace mrtg 2.16.3-3.1ubuntu1 (using mrtg_2.16.3-1ubuntu1.2_amd64.deb) ...
Unpacking replacement mrtg ...
dpkg: mrtg: dependency problems, but configuring anyway as you requested:
 perl (5.12.4-4) breaks mrtg (<< 2.16.3-3.1) and is installed.
  Version of mrtg to be configured is 2.16.3-1ubuntu1.2.
Setting up mrtg (2.16.3-1ubuntu1.2) ...

Configuration file `/etc/cron.d/mrtg'
 ==> Modified (by you or by a script) since installation.
     Version in package is the same as at last installation.
 ==> Keeping old config file as default.

Configuration file `/etc/mrtg.cfg', does not exist on system.
Installing new config file as you requested.
Processing triggers for man-db ...

Revision history for this message
schoutetens (stijn-a) wrote :

looks to be solved now that I upgraded Ubuntu from 11.10 to 12.04

Changed in mrtg (Ubuntu Maverick):
status: Fix Committed → Won't Fix
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Could somebody write a clear test case for this bug so that it can be verified?

Revision history for this message
Adam Conrad (adconrad) wrote :

Removed from -proposed due to lack of verification:

Removing packages from oneiric-proposed:
 mrtg 2.16.3-3.1ubuntu1.1 in oneiric
  mrtg 2.16.3-3.1ubuntu1.1 in oneiric amd64
  mrtg 2.16.3-3.1ubuntu1.1 in oneiric armel
  mrtg 2.16.3-3.1ubuntu1.1 in oneiric i386
  mrtg 2.16.3-3.1ubuntu1.1 in oneiric powerpc
  mrtg-contrib 2.16.3-3.1ubuntu1.1 in oneiric amd64
  mrtg-contrib 2.16.3-3.1ubuntu1.1 in oneiric armel
  mrtg-contrib 2.16.3-3.1ubuntu1.1 in oneiric i386
  mrtg-contrib 2.16.3-3.1ubuntu1.1 in oneiric powerpc
Comment: Failed SRU verification
Remove [y|N]? y
1 package successfully removed.

Changed in mrtg (Ubuntu Oneiric):
status: Fix Committed → New
Changed in mrtg (Ubuntu Natty):
status: Fix Committed → Won't Fix
Changed in mrtg (Ubuntu Oneiric):
status: New → Triaged
importance: Undecided → Low
importance: Low → Medium
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in mrtg (Ubuntu Oneiric):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.