View Full Version : Failed to execute scout - return code is 9
mellomutt
3rd December 2007, 05:11 PM
Where should I go from here?
Cannot send scout to the remote host.
Failed to execute scout.
The return code is 9
The output on STDERR is
"use" not allowed in expression at - line 4, at end of line
syntax error at - line 4, near "<password>
#!/usr/bin/perl
use strict"
BEGIN not safe after errors--compilation aborted at - line 16.
and <password> is the password i gave the migration utility.
ib1984
10th December 2007, 05:07 AM
looks like network connection to source host is broken. Also, check that PMM is not corrupted by using 'rpm -V psa-migration-manager | grep ^..5' command.
realaaa
10th December 2007, 05:14 AM
migration manager uses perl scripts to determine type of remote OS (scout) and collect data (agent).
as seen from the error message there was a problem during scout script execution.
it can be found under the Plesk directory, let's take a look:
# head /usr/local/psa/PMM/scout.pl
#!/usr/bin/perl
use strict;
# checkXXX function synopsis:
#
# ($agent, $name) = checkXXX();
#
# Here $agent contains name of agent, ie "PleskX"
# $name contains name of the panel, ie "Plesk 7.1.5"
...
as you can see it tries to declare "use strict;' pragma and eventually fails with ""use" not allowed"
So - I recommend to check perl on source host, probably you need to find out why "use" is restricted.
The easiest way to do it - is to upload scout.pl file to the source host and try to execute it, no parameters needed, if it's OK then you'll get the output like this:
# /usr/local/psa/PMM/scout.pl
<?xml version="1.0"?><scout-result><detected-panel agent="PleskX" name="Plesk 8.1.1 RedHat el4 81070716.12"/><os-info os="Linux" loadavg="0.12 0.10 0.09"/><remote-fs><fs mountpoint="/" device="/dev/mapper/VolGroup00-LogVol00" mode="rw" size="15291875328" free="12255825920" type="ext3"/><fs mountpoint="/boot" device="/dev/sda1" mode="rw" size="103512064" free="88702976" type="ext3"/></remote-fs></scout-result>
It should fail with the same error and from then you will only need to find out why it happens.
vBulletin® v3.6.12, Copyright ©2000-2008, Jelsoft Enterprises Ltd.