<div dir="ltr">Upgrading libnet might help... Kal's (/wave) script  works for me: perl 5.20.2 + Net::FTP v3.05<div><br></div><div><div>[brendon@aragorn bin]$ ./<a href="http://test-ftp.pl">test-ftp.pl</a></div><div>Net::FTP>>> Net::FTP(3.05)</div><div>Net::FTP>>>   Exporter(5.71)</div><div>Net::FTP>>>   Net::Cmd(3.05)</div><div>Net::FTP>>>   IO::Socket::IP(0.29)</div><div>Net::FTP>>>     IO::Socket(1.38)</div><div>Net::FTP>>>       IO::Handle(1.35)</div><div>Net::FTP=GLOB(0x150de88)<<< 220 ProFTPD 1.3.3g Server (<a href="http://ftp.arin.net">ftp.arin.net</a>) [::ffff:199.212.0.151]</div><div>Net::FTP=GLOB(0x150de88)>>> USER anonymous</div><div>Net::FTP=GLOB(0x150de88)<<< 331 Anonymous login ok, send your complete email address as your password</div><div>Net::FTP=GLOB(0x150de88)>>> PASS ....</div><div>Net::FTP=GLOB(0x150de88)<<< 230 Anonymous access granted, restrictions apply</div><div>Net::FTP=GLOB(0x150de88)>>> CWD /pub/stats</div><div>Net::FTP=GLOB(0x150de88)<<< 250 CWD command successful</div><div>Net::FTP=GLOB(0x150de88)>>> PASV</div><div>Net::FTP=GLOB(0x150de88)<<< 227 Entering Passive Mode (199,212,0,151,219,13).</div><div>Net::FTP=GLOB(0x150de88)>>> NLST T*</div><div>Net::FTP=GLOB(0x150de88)<<< 450 No files found</div><div>No files found</div><div>        at main::(unknown source)</div></div><div><br></div><div><br></div><div>The changes page at <a href="https://metacpan.org/changes/distribution/libnet">https://metacpan.org/changes/distribution/libnet</a> is not very helpful tho - the version jumps from v.1.30 to 3.0 over 8/9 Oct 2014... but there are mentions of other issues with PASV mode, perhaps they're related?</div><div><br></div><div>Cheers,</div><div><br></div><div>- Brendon</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 17, 2015 at 9:11 AM, Kahlil Hodgson <span dir="ltr"><<a href="mailto:kahlil.hodgson@dealmax.com.au" target="_blank">kahlil.hodgson@dealmax.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I get the same issue when running on perl-5.18.4. Upgrading Perl may<br>
not help you here :-(<br>
<br>
Kahlil (Kal) Hodgson                       GPG: C9A02289<br>
Head of Technology                         (m) <a href="tel:%2B61%20%280%29%204%202573%200382" value="+61425730382">+61 (0) 4 2573 0382</a><br>
DealMax Pty Ltd                            GitHub: @tartansandal<br>
<br>
Suite 1416<br>
401 Docklands Drive<br>
Docklands VIC 3008 Australia<br>
<br>
"All parts should go together without forcing.  You must remember that<br>
the parts you are reassembling were disassembled by you.  Therefore,<br>
if you can't get them together again, there must be a reason.  By all<br>
means, do not use a hammer."  -- IBM maintenance manual, 1925<br>
<br>
<br>
On 17 March 2015 at 09:04, Timothy Hunt <<a href="mailto:T.Hunt@bom.gov.au">T.Hunt@bom.gov.au</a>> wrote:<br>
> Thanks for this. It is passive which is killing us - many of our partners (data sources) are turning off active FTP, forcing passive. Hence the issue surfacing. I am working through a support case with RedHat and will be trying newer versions of Perl today.<br>
><br>
> Cheers,<br>
> Tim.<br>
><br>
> --<br>
> Tim Hunt<br>
> Information Systems and Services Division<br>
> Bureau of Meteorology<br>
> Level 7, 700 Collins Street, Docklands VIC 3008<br>
> Tel: <a href="tel:%2B61%203%209669%204094" value="+61396694094">+61 3 9669 4094</a> | <a href="mailto:t.hunt@bom.gov.au">t.hunt@bom.gov.au</a><br>
><br>
> -----Original Message-----<br>
> From: Kahlil Hodgson [mailto:<a href="mailto:kahlil.hodgson@dealmax.com.au">kahlil.hodgson@dealmax.com.au</a>]<br>
> Sent: Tuesday, 17 March 2015 8:57 AM<br>
> To: Timothy Hunt<br>
> Cc: melbourne-pm<br>
> Subject: Re: [Melbourne-pm] FTP on RHEL [SEC=UNCLASSIFIED]<br>
><br>
> Hi Tim,<br>
><br>
> Managed to replicate your issue on a CentOS6 machine with this script <a href="https://gist.github.com/tartansandal/1f2582c4fca42719925e" target="_blank">https://gist.github.com/tartansandal/1f2582c4fca42719925e</a>. If I change the connection to active rather than passive, It works for me. If I use passive mode, I get an error which throws to a bad part of the code which generates another error, masking the original error.<br>
><br>
> Hope this helps.<br>
><br>
> K<br>
><br>
> Kahlil (Kal) Hodgson                       GPG: C9A02289<br>
> Head of Technology                         (m) <a href="tel:%2B61%20%280%29%204%202573%200382" value="+61425730382">+61 (0) 4 2573 0382</a><br>
> DealMax Pty Ltd                            GitHub: @tartansandal<br>
><br>
> Suite 1416<br>
> 401 Docklands Drive<br>
> Docklands VIC 3008 Australia<br>
><br>
> "All parts should go together without forcing.  You must remember that the parts you are reassembling were disassembled by you.  Therefore, if you can't get them together again, there must be a reason.  By all means, do not use a hammer."  -- IBM maintenance manual, 1925<br>
_______________________________________________<br>
Melbourne-pm mailing list<br>
<a href="mailto:Melbourne-pm@pm.org">Melbourne-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/melbourne-pm" target="_blank">http://mail.pm.org/mailman/listinfo/melbourne-pm</a><br>
</blockquote></div><br></div>