Cron error for collect info

6 posts / 0 new
Last post
#1 Tue, 07/26/2011 - 16:11
velvetpixel

Cron error for collect info

Since the last virtualmin upgrade I am seeing this error when the collect info job runs: sh: line 1: 27765 Segmentation fault yum info 2> /dev/null

The contents of the perl script /etc/webmin/virtual-server/collectinfo.pl are:

!/usr/bin/perl

open(CONF, "/etc/webmin/miniserv.conf"); while() { $root = $1 if (/^root=(.*)/); } close(CONF); $ENV{'PERLLIB'} = "$root"; $ENV{'WEBMIN_CONFIG'} = "/etc/webmin"; $ENV{'WEBMIN_VAR'} = "/var/webmin"; chdir("$root/virtual-server"); exec("$root/virtual-server/collectinfo.pl", @ARGV) || die "Failed to run $root/virtual-server/collectinfo.pl : $!";

The file has root.root ownership and permissions are -rwxr-xr-x

Any ideas why the error?

Tue, 07/26/2011 - 17:38
andreychek

Hmm, that's an unusual problem.

How much RAM does your server have? You can determine that by running "free -m". If you could post that output here, that'd be great!

Also, what happens if you log in as root, and run the command "yum info" -- do you receive output for that, or do you get an error of some sort?

-Eric

Tue, 07/26/2011 - 18:44
velvetpixel

Thanks for the help and you pointed me in the right direction. I found it was the rpmforge repo causing the segfault. It's apparently a known issue. I am disabling rpmforge for now.

https://bugzilla.redhat.com/show_bug.cgi?id=725798

Tue, 07/26/2011 - 20:04
andreychek

Thanks for the link! If anyone else has that problem, now we'll know what's going wrong.

-Eric

Tue, 07/26/2011 - 20:53
velvetpixel

You are welcome! It's cool to see Dag posting there :D

Tue, 07/26/2011 - 21:30
helpmin

That explains the problem I had :-)

Topic locked