Skip Menu |

This queue is for tickets about the libnet CPAN distribution.

Report information
The Basics
Id: 50371
Status: open
Priority: 0/
Queue: libnet

People
Owner: Nobody in particular
Requestors: perl [...] evancarroll.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.22
Fixed in: (no value)



Subject: strawberry perl Can't use an undefined value as a symbol reference
Perl 5.10.0 libnet 1.22 Net::FTP>>> Net::FTP(2.77) Net::FTP>>> Exporter(5.63) Net::FTP>>> Net::Cmd(2.29) Net::FTP>>> IO::Socket::INET(1.31) Net::FTP>>> IO::Socket(1.30_01) Net::FTP>>> IO::Handle(1.27) Net::FTP=GLOB(0x2022684)<<< 220 Microsoft FTP Service Net::FTP=GLOB(0x2022684)>>> USER kings Net::FTP=GLOB(0x2022684)<<< 331 Password required for kings. Net::FTP=GLOB(0x2022684)>>> PASS .... Net::FTP=GLOB(0x2022684)<<< 230 User kings logged in. Net::FTP=GLOB(0x2022684)>>> TYPE A Net::FTP=GLOB(0x2022684)<<< 200 Type set to A. Net::FTP=GLOB(0x2022684)>>> CWD wwwroot/feed Net::FTP=GLOB(0x2022684)<<< 250 CWD command successful. Net::FTP=GLOB(0x2022684)>>> ALLO 140882 Net::FTP=GLOB(0x2022684)<<< 200 ALLO command successful. Net::FTP=GLOB(0x2022684)>>> PASV Net::FTP=GLOB(0x2022684)<<< 227 Entering Passive Mode (174,36,119,242,18,1). Net::FTP=GLOB(0x2022684)>>> STOR dealermade_inventory.csv Can't use an undefined value as a symbol reference at C:/strawberry/perl/lib/Net/FTP/dataconn.pm line 54. -- Evan Carroll perl@evancarroll.com http://www.evancarroll.com
Show quoted text
> Net::FTP=GLOB(0x2022684)>>> STOR dealermade_inventory.csv > Can't use an undefined value as a symbol reference at > C:/strawberry/perl/lib/Net/FTP/dataconn.pm line 54.
Setting FTP_PASSIVE=0 fixed the problem, everything works now. Maybe there should be a better error for servers that don't permit passive transfers, when the client also doesn't permit them. -- Evan Carroll perl@evancarroll.com http://www.evancarroll.com
From: EHBauer
This is not related to Strawberry Perl. It occurs with ActiveState's Perl as well. Most likely, this problem is related to the System settings, Proxies in place, or something like that. Can't really say. I had that error on Win2k servers with FileZilla FTP servers and ActiveState Perl when connecting to each other (they are in the same network, though). I do not have the specifics about the network setup of that system but my guess is that there are Windows server configurations where a failed passive connection is not recognized by Net::FTP. Maybe someone can set up a WireShark listener on a system where that error occurs and post the communication that is related to this problem. Alas, I'm not allowed to put any software on the servers where I encountered the problem.
On Fri Oct 09 17:27:21 2009, ECARROLL wrote: Show quoted text
>
> > Net::FTP=GLOB(0x2022684)>>> STOR dealermade_inventory.csv > > Can't use an undefined value as a symbol reference at > > C:/strawberry/perl/lib/Net/FTP/dataconn.pm line 54.
> > Setting FTP_PASSIVE=0 fixed the problem, everything works now. Maybe > there should be a better error for servers that don't permit passive > transfers, when the client also doesn't permit them.
This bug is related to #48260, for which setting FTP_PASSIVE=0 also fixes things.