Bug#648891: munin-node: upgrade to perl 5.14 breaks munin-node

gregor herrmann gregoa at debian.org
Fri Nov 18 23:09:13 UTC 2011


On Wed, 16 Nov 2011 09:12:13 +1100, Philipp Huebner wrote:

> I just upgraded my unstable system which brought perl 5.14 with it, when munin
> stopped working, saying "there are n nodes with any plugins".
> 
> Checking the log of munin-node revealed this:
> 
> 2011/11/16-09:05:02 [5995]      2011/11/16-09:05:02 [6069] Can't locate auto/POSIX/getpwuid.al in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl) at /usr/share/perl5/Munin/Node/OS.pm line 32\n    ...propagated at /usr/share/perl5/Munin/Common/Timeout.pm line 66, <STDIN> line 76.
> 
> It is clearly visible that munin-node tries to use perl 5.12 which is not installed anymore.

Yup, munin-node needs a restart, and indeed after a restart
everything is fine again [0][1].

Now it would be nice if munin-node would do this itself.

IIRC the perl package has some triggered for that purpose, which so
far is at least used by spamassassin (which had the same problem in
the past).

Ah, here we are (perl changelog):

5.12.3-2:

  * Activate the 'perl-major-upgrade' trigger on major version upgrades
    to notify other packages that might need to be restarted, or take some
    other action (Closes: #230308)

(The bug report also contains an example.)

HTH,
gregor, CC'ing the perl maintainers who might be able to help with the
        trigger and the Storable issue from [1]


[0]
Well, almost, there are some deprecation warnings:

2011/11/18-23:50:04 [1039] Error output from apache_processes:
2011/11/18-23:50:04 [1039]      Use of qw(...) as parentheses is deprecated at /etc/munin/plugins/apache_processes line 164.

and the same from several other modules.

--> http://search.cpan.org/~jesse/perl-5.14.0/pod/perldelta.pod#Use_of_qw%28...%29_as_parentheses

for $x qw(a b c) { ... }

-->

for $x (qw(a b c)) { ... }

[1]

Hm, there's another glitch:

2011/11/18-23:55:07 [2076] Error output from iostat_ios:
2011/11/18-23:55:07 [2076]      Byte order is not compatible at /usr/lib/perl/5.14/Storable.pm line 379, at /etc/munin/plugins/iostat_ios line 218
2011/11/18-23:55:07 [2076] Service 'iostat_ios' exited with status 25/0.

ATM I don't remember how to fix his :/

-- 
 .''`.   Homepage: http://info.comodo.priv.at/ - OpenPGP key ID: 0x8649AA06
 : :' :  Debian GNU/Linux user, admin, & developer - http://www.debian.org/
 `. `'   Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
   `-    NP: Bettina Wegner: Erew Schel Schoschanim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20111119/e9b7b6d8/attachment-0001.pgp>


More information about the Perl-maintainers mailing list