From: Michael S. <mi...@st...> - 2009-03-30 17:03:21
|
I think this has something to do with pasv mode in FTP. When I try to ftp directly to the site, I must use pasv mode (-p) or I get either a long timeout or the 404 error. So here's the new bit of information for me. I've been successfully pulling USGS files with MH for years. Just Friday, I moved my home over to AT&T U-verse and wanted an extra level of NAT for protection of my home PCs. The U-Verse RG (vdsl modem / router) does its own NAT on top of the NAT I'm doing in an Ethernet router. This is called double NAT and does have some issues with various protocols. It turns out that since that change I am no longer able to retrieve the files without using pasv mode; all of the MH USGS earthquake attempts are failing. This is not surprising to me given the double NAT. I wonder if you have something similar going on? I agree with Gregg's approach since the Net::FTP module has a passive option. The command below worked for me. If it works for you then maybe the solution is to modify the earthquakes file. IMO, all FTP should be using pasv now days anyway. cd [your mh path]/bin net_ftp -passive 1 -command get -file quake.tmp -file_remote cnss/quake -server hazards.cr.usgs.gov -user anonymous -password "us...@em..." BTW, I have what I think is a much improved version of the earthquakes script that you can try out if you are interested; I modified it early this morning and it is working great with net_ftp using passive mode. Otherwise I can modify the original earthquakes script for you. Michael -----Original Message----- From: Ryan Davies [mailto:ry...@i-...] Sent: Friday, March 27, 2009 10:36 PM To: mis...@li... Subject: Re: [mh] Re cent Earthquakes - Get Failed Hi Michael. This issue seems to only be apparent with LWP::Simple I can wget the file. And I can links/lynx it Running a small perl line such as: perl -MLWP::Simple -e 'getprint "ftp://hazards.cr.usgs.gov/cnss/quake"' results in: 404 File 'quake' not found <URL:ftp://hazards.cr.usgs.gov/cnss/quake> So far it seems its only perl ryan@Misterhouse:~# perl -v This is perl, v5.10.0 built for i486-linux-gnu-thread-multi Ryan Michael Stovenour wrote: > > Ryan, > I would start by suspecting a network problem outside of Misterhouse. Can > you get the file with FTP? > ftp hazards.cr.usgs.gov > user: anonymous > pass: som...@an... > cd cnss > get quake > > Michael > -- View this message in context: http://www.nabble.com/Recent-Earthquakes---Get-Failed-tp22736842p22753438.ht ml Sent from the Misterhouse - User mailing list archive at Nabble.com. ---------------------------------------------------------------------------- -- ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |