Submitted by ironiq on Wed, 02/17/2010 - 03:39
After installing virtualmin on CentOS 5.4 based on the howto on this page the collectinfo.pl cron job reported the error in $subject. After checking /usr/libexec/webmin/virtual-server dir i had to add a require './collect-lib.pl' right after the other require. Now it works.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Wed, 02/17/2010 - 11:56 Comment #1
What is the full path to the collectinfo.pl cron job that is failing? It sounds like it might be run with the wrong path.
Also, what is the exact error message you are getting related to
$subject
?Submitted by ironiq on Wed, 02/17/2010 - 12:22 Comment #2
Hi!
The exact error message: Undefined subroutine &virtual_server::collect_system_info called at /usr/libexec/webmin/virtual-server/collectinfo.pl line 25.
The cron job runs /etc/webmin/virtual-server/collectinfo.pl
Submitted by JamieCameron on Wed, 02/17/2010 - 12:46 Comment #3
What howto page did you follow to do the install?
If this is a fresh CentOS system that isn't hosting any sites yet, the easiest way is to use our install script.
For the GPL version, this can be found at http://software.virtualmin.com/gpl/scripts/install.sh
Submitted by ironiq on Wed, 02/17/2010 - 12:52 Comment #4
This was exactly done: totally clean CentOS5 with that script. Virtualmin version: 3.76.gpl; Webmin version: 1.500
Submitted by JamieCameron on Wed, 02/17/2010 - 13:03 Comment #5
If you look at the file
/usr/libexec/webmin/virtual-server/collect-lib.pl
, is there a line likesub collect_system_info
at the top?Submitted by ironiq on Wed, 02/17/2010 - 13:05 Comment #6
Yes, the subroutine is there. The problem is that the require was missing from /usr/libexec/webmin/virtual-server/collectinfo.pl.
Submitted by JamieCameron on Wed, 02/17/2010 - 13:36 Comment #7
That require shouldn't be needed though, as collectinfo.pl already require's virtual-server-lib.pl, which in turn requires virtual-server-lib-funcs.pl and then collect-lib.pl.
Submitted by JamieCameron on Wed, 02/17/2010 - 13:37 Comment #8
After your fix, is everything else working OK?
Submitted by ironiq on Wed, 02/17/2010 - 13:58 Comment #9
Well, i can't see anywhere else mentioning that lib. But after adding that line it works.
Submitted by JamieCameron on Wed, 02/17/2010 - 14:04 Comment #10
So does the rest of Virtualmin work OK? I'm concerned that this fix may be just working around a deeper issue..
Submitted by ironiq on Wed, 02/17/2010 - 14:26 Comment #11
Yes, the rest seems to work - but if you mention a deeper issue, than - probably not related, but who knows - can you please check my forum topic here: https://www.virtualmin.com/node/13438
Thanks.
Submitted by JamieCameron on Wed, 02/17/2010 - 16:54 Comment #12
If you like, I could login to your system myself and see what is going wrong? You can send login details to jcameron@virtualmin.com
Submitted by ironiq on Mon, 02/22/2010 - 13:41 Comment #13
I don't really know what happened, but after reinstalling the opsys + virtualmin the problem did not came. The issue can be closed.
Submitted by JamieCameron on Mon, 02/22/2010 - 15:17 Comment #14
Ok, great!