joetesta has asked for the wisdom of the Perl Monks concerning the following question:
We have a script we've been using (launched from crontab) for several years to upload images using Net::FTP. Recently we began to notice problems where the images were not uploading and errors were appearing in the logs.
In troubleshooting, I've found that presently the program works just fine when launched from cmd line, but when launched from crontab it errors consistently. On the remote server, I can see in the FTP log that the connection is still active, the client is changing directories but the STOR command never appears as it does under normal circumstance. On the client side, when the ftp->put is issued, the response appears to be '227 Entering Passive Mode'
I've tried everything I can think of to track down the cause (firewalls, ephemeral ports, memory leaks) but so far my only solution is to run it manually from the cmd line.
Does anyone have any idea what might be the cause of this problem? tyvmia
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: FTP script suddenly not working from crontab
by Laurent_R (Canon) on Jul 17, 2014 at 20:53 UTC | |
by joetesta (Novice) on Jul 17, 2014 at 22:57 UTC | |
|
Re: FTP script suddenly not working from crontab
by Anonymous Monk on Jul 18, 2014 at 00:03 UTC |