First, I believe this is the appropriate area to post this question, but I'm not sure - if it belongs somewhere else, I would appreciate having someone move it to where it needs to be.
I'm working on setting up a RHEL 6.4 virtual machine, in this particular case attempting to run a script designed to copy database log files for use with a replication setup. This particular version of the script is trying to copy the files from one location on the machine, to another location on the same machine. Except for some of the IP configuration details, this script is identical to the version we've had running on remote servers getting the files from this machine's predecessor in the past.
On the previous machines I've run this on (a SuSE 11.3 and a SuSE 9.3 box), I've been able to get this script to run without any problems. On this new machine, the script invariably fails out with the following error message (IP blotted, otherwise exact):
Code:
Uncaught exception from user code:
scp timed out while trying to connect to ###.###.###.### at ./sl-logshipn-r line 203
at /usr/local/share/perl5/Net/SCP/Expect.pm line 228
Net::SCP::Expect::scp('Net::SCP::Expect=HASH(0x6e5b98)', '###.###.###.###:/var/log/slony/logship/arc/slony1_log-attestr2-20...', '/var/log/slony//logship2/arc/slony1_log-attestr2-20130422_114...') called at ./sl-logshipn-r line 203
The line in the code which the error is triggering on is:
Code:
$scpe->scp("$host:$lsnLOGDIR/arc/$zip_nm","$lship_arcdir/$zip_nm");
I can call the files across manually via the scp command from the shell prompt, using the same username; the system does not appear to require a password when I do this, and the copy appears to occur immediately.
What specifically determines the where/how of how Net::SCP::Expect tries to transfer an scp'd file? Obviously, I messing up in something there, but I'm not sure where to begin trying to track the error down. Any advice on a good starting point would be greatly appreciated.