Submitted by unsalkorkmaz on Sat, 05/28/2011 - 20:23
virtualmin 3.85.gpl on centos 5.6 i am started to getting this error mail: Failed to run /usr/libexec/webmin/virtual-server/sendratings.pl : No such file or directory at /etc/webmin/virtual-server/sendratings.pl line 11.
i disabled it from Scheduled Cron Jobs after getting it 2 times. FYI.
Status:
Active
Comments
Submitted by JamieCameron on Sat, 05/28/2011 - 20:51 Comment #1
This is due to a missing file in Virtualmin GPL. The work-around is to go to Webmin -> System -> Scheduled Cron Jobs, select the sendratings.pl job and delete it.
Virtualmin 3.86 will fix this.
Submitted by sgrayban on Sun, 05/29/2011 - 03:45 Comment #2
I don't think you need the sendratings cron since that is for the Script Installers which the GPL version doesn't have.
Right ?
Submitted by andreychek on Mon, 05/30/2011 - 10:23 Comment #3
The most recent Virtualmin GPL includes a handful of Install Scripts (RoundCube, phpMyAdmin, WHMCS, and another one I can't think of at the moment).
The sendratings.pl is for use with those. Or at least, it's supposed to be :-)
Submitted by sgrayban on Mon, 05/30/2011 - 10:29 Comment #4
Even if that is the case the missing file is not going to break the Pro or GPL versions... so this isn't blocking bug, just a opps.
Submitted by andreychek on Mon, 05/30/2011 - 10:38 Comment #5
Yup, that's correct :-)
The issue only exists in Virtualmin GPL, and it doesn't affect any critical functionality.
The fix is just to disable the sendratings cron job until Virtualmin 3.86 comes out, which will contain the correct file.
Submitted by Issues on Mon, 06/13/2011 - 12:22 Comment #6
Automatically closed -- issue fixed for 2 weeks with no activity.
Submitted by Murz on Wed, 07/06/2011 - 01:10 Comment #7
I have upgrade to Virtualmin 3.86, but it still miss /etc/webmin/virtual-server/sendratings.pl file. And I continue receive cron errors:
Cron <root@host> /etc/webmin/virtual-server/sendratings.pl (failed)
/bin/sh: /etc/webmin/virtual-server/sendratings.pl: not found
I see only /usr/share/webmin/virtual-server/sendratings.pl file
Where can I get the file /etc/webmin/virtual-server/sendratings.pl ?
Submitted by JamieCameron on Wed, 07/06/2011 - 13:28 Comment #8
I noticed a bug that can cause this file to be not created properly, which I'll fix in the next Virtualmin release.
The work-around is to create it manually, with the contents :
#!/usr/bin/perl
open(CONF, "/etc/webmin/miniserv.conf");
while(<CONF>) {
$root = $1 if (/^root=(.*)/);
}
close(CONF);
$ENV{'WEBMIN_CONFIG'} = "/etc/webmin";
$ENV{'WEBMIN_VAR'} = "/var/webmin";
$ENV{'PERLLIB'} = $root;
chdir("$root/virtual-server");
exec("$root/virtual-server/sendratings.pl", @ARGV) || die "Failed to run $root/virtual-server/sendratings.pl : $!";
Be sure to make it executable, with the command
chmod +x /etc/webmin/virtual-server/sendratings.pl