Someone asked my assistance with an FTP problem. I hope someone here can give some more insight.
Login and switching to the directory went ok but at the moment the file list is requested it goes wrong.
His debug log looked like this:
Quote:
Creating data socket
PUT > PASV
GET < 227 Entering Passive Mode (94,23,229,44,19,231).
Connecting to 94.23.229.44:5095
_data_prepare: socket_connect (Connection refused)
Disconnected data from remote host
|
Thinking it might have something to do with passive mode I asked him to disable it and now he gets the following error at the same spot.
Quote:
PUT > NLST
GET < 552 Requested file action aborted.
Disconnected data from remote host
|
552 would normally big given when you try to upload a file and there's not enough diskspace to store it. From my point of view it doesn't make any sense that this code is returned after requesting a file list.
The complete log of the active mode attempt.
Quote:
Staring FTP client class with PORT mode support
UMASK 022
Transfer type: auto ASCII
Timeout 30
Passive mode off
Host ""***.***.***.***("***.***.***.***):21"
Local OS : UNIX
Using PHP's socket extension
Creating socket
Connecting to "***.***.***.***:21"
Connected to remote host ""***.***.***.***:21". Waiting for greeting.
GET < 220 RoxServers.com FTP Server
PUT > USER ***
GET < 331 User name okay, need password.
PUT > PASS ***
GET < 230 User logged in, proceed.
Authentication succeeded
PUT > REST 100
GET < 350 Requested file action pending further information.
This server can resume broken uploads/downloads
Transfer type: binary
Passive mode off
PUT > PWD
GET < 257 "/" is current directory
PUT > CWD /ut-server/Logs
GET < 250 CWD command successful.
PUT > PWD
GET < 257 "/ut-server//Logs" is current directory
PUT > TYPE A
GET < 200 Command okay.
Creating data socket
PUT > PORT 174,132,78,2,175,115
GET < 200 Port ok.
PUT > NLST
GET < 552 Requested file action aborted.
Disconnected data from remote host
PUT > CWD /ut-server//Shots
GET < 250 CWD command successful.
PUT > PWD
GET < 257 "/ut-server/Shots" is current directory
PUT > TYPE A
GET < 200 Command okay.
Creating data socket
PUT > PORT 174,132,78,2,223,190
GET < 200 Port ok.
PUT > NLST
GET < 552 Requested file action aborted.
Disconnected data from remote host
PUT > QUIT
GET < 221 Service closing control connection.
Session finished
Socket closed
|
He also tried using php instead of sockets but no luck there also.
Does anyone have an idea what could be the problem?