T
Ted Byers
Here is the interesting part of the log for my script that uses
NET::FTP:
Copying 44 files
Net::FTP=GLOB(0x3e18a04)>>> TYPE I
Net::FTP=GLOB(0x3e18a04)<<< 200 Type set to I
Status: 2
C_MerchantData_ALT_Work.2008-11-12.zip
Net::FTP=GLOB(0x3e18a04)>>> ALLO 5062889
Net::FTP=GLOB(0x3e18a04)<<< 202 No storage allocation neccessary.
Net::FTP=GLOB(0x3e18a04)>>> PORT 10,1,10,124,7,5
Net::FTP=GLOB(0x3e18a04)<<< 200 Port command successful
Net::FTP=GLOB(0x3e18a04)>>> STOR C_MerchantData_ALT_Work.
2008-11-12.zip
Net::FTP=GLOB(0x3e18a04)<<< 150 Opening data channel for file
transfer.
Net::FTP=GLOB(0x3e18a04): Timeout at C:/Perl/site/lib/Net/FTP/
dataconn.pm line 7
4
Status: 1
C_MerchantData_ALT_Work.2008-11-13.zip
Net::FTP=GLOB(0x3e18a04)>>> ALLO 5299854
Net::FTP: Unexpected EOF on command channel at C:\backup
\copy.backups.to.T.O.pl
line 48
Status: 5
Qualitatively, it looks like only one zip archive is tranfered (and my
colleagues in TO can open them and verify the contents), and then the
ftp session seems to go away and there is no more interaction with the
ftp server.
Here is the interesting part of a log created (LWP:ebugFile):
Here is the last bit pertaining to the download that occured just
before the failed dowwnload:
LWP:rotocol::http::request: ()
# Time now: {1228452248} = Thu Dec 4 23:44:08 2008
LWP::UserAgent::request: Simple response: OK
# LWP:ebugFile logging to lwp.log
# Time now: {1228452249} = Thu Dec 4 23:44:09 2008
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
ignoring the URL requested (it doesn't matter because if I select a
temporal interval involving a few kbytes of data, all works fine),
here is what follows:
..LWP:rotocol::http::request: ()
# Time now: {1228452869} = Thu Dec 4 23:54:29 2008
LWP::UserAgent::request: Simple response: Internal Server Error
# LWP:ebugFile logging to lwp.log
# Time now: {1228452870} = Thu Dec 4 23:54:30 2008
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
I find it interesting to observe that simply including use of
LWP:ebugFile is sufficient to prevent the script from freezing or
locking up. Instead, an error like this is logged and the script
proceeds to the next request. The error shown above happens in the
middle of the download, and in this run, this is the only download
that failed.
Questions:
1) How do I get more information from LWP:ebugFile? Or is there any
more information to be had?
2) I'd also included the following statements:
use Log::Trace;
use Log::Trace 'print';
use Log::Trace log => 'master.generic.download.trace.log';
use Log::Trace warn => { Deep => 1, Everywhere => 1, Verbose => 2 };
But I did not get any log from Log::Trace. i must have missed
something, but what?
3) The information I'm getting from Net::FTP seems fine, except I have
yet to find the documentation for what the status codes (returned by
the status function) mean. (I found curl, but haven't had time to
compile and run it on the same files). Where will I find a more
complete description of these status codes?
4) Most importantly of all, why do these transfers fail and what can
be done about them?
Thanks
Ted
NET::FTP:
Copying 44 files
Net::FTP=GLOB(0x3e18a04)>>> TYPE I
Net::FTP=GLOB(0x3e18a04)<<< 200 Type set to I
Status: 2
C_MerchantData_ALT_Work.2008-11-12.zip
Net::FTP=GLOB(0x3e18a04)>>> ALLO 5062889
Net::FTP=GLOB(0x3e18a04)<<< 202 No storage allocation neccessary.
Net::FTP=GLOB(0x3e18a04)>>> PORT 10,1,10,124,7,5
Net::FTP=GLOB(0x3e18a04)<<< 200 Port command successful
Net::FTP=GLOB(0x3e18a04)>>> STOR C_MerchantData_ALT_Work.
2008-11-12.zip
Net::FTP=GLOB(0x3e18a04)<<< 150 Opening data channel for file
transfer.
Net::FTP=GLOB(0x3e18a04): Timeout at C:/Perl/site/lib/Net/FTP/
dataconn.pm line 7
4
Status: 1
C_MerchantData_ALT_Work.2008-11-13.zip
Net::FTP=GLOB(0x3e18a04)>>> ALLO 5299854
Net::FTP: Unexpected EOF on command channel at C:\backup
\copy.backups.to.T.O.pl
line 48
Status: 5
Qualitatively, it looks like only one zip archive is tranfered (and my
colleagues in TO can open them and verify the contents), and then the
ftp session seems to go away and there is no more interaction with the
ftp server.
Here is the interesting part of a log created (LWP:ebugFile):
Here is the last bit pertaining to the download that occured just
before the failed dowwnload:
LWP:rotocol::http::request: ()
# Time now: {1228452248} = Thu Dec 4 23:44:08 2008
LWP::UserAgent::request: Simple response: OK
# LWP:ebugFile logging to lwp.log
# Time now: {1228452249} = Thu Dec 4 23:44:09 2008
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
ignoring the URL requested (it doesn't matter because if I select a
temporal interval involving a few kbytes of data, all works fine),
here is what follows:
..LWP:rotocol::http::request: ()
# Time now: {1228452869} = Thu Dec 4 23:54:29 2008
LWP::UserAgent::request: Simple response: Internal Server Error
# LWP:ebugFile logging to lwp.log
# Time now: {1228452870} = Thu Dec 4 23:54:30 2008
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
I find it interesting to observe that simply including use of
LWP:ebugFile is sufficient to prevent the script from freezing or
locking up. Instead, an error like this is logged and the script
proceeds to the next request. The error shown above happens in the
middle of the download, and in this run, this is the only download
that failed.
Questions:
1) How do I get more information from LWP:ebugFile? Or is there any
more information to be had?
2) I'd also included the following statements:
use Log::Trace;
use Log::Trace 'print';
use Log::Trace log => 'master.generic.download.trace.log';
use Log::Trace warn => { Deep => 1, Everywhere => 1, Verbose => 2 };
But I did not get any log from Log::Trace. i must have missed
something, but what?
3) The information I'm getting from Net::FTP seems fine, except I have
yet to find the documentation for what the status codes (returned by
the status function) mean. (I found curl, but haven't had time to
compile and run it on the same files). Where will I find a more
complete description of these status codes?
4) Most importantly of all, why do these transfers fail and what can
be done about them?
Thanks
Ted