cancel
Showing results for 
Search instead for 
Did you mean: 

FTP connection timing out

dm_nypl
Champ in-the-making
Champ in-the-making
Hello,

I'm new to administering Alfresco. I'm trying to connect to the server using the OTB configuration on port 2121. I seem to be able to connect but while listing the directories the server times out on me. I've got this running on an AWS Ubuntu 12.10 instance and it is alfresco version 4.2c, if that is of any consequence. I'm wondering if anyone can diagnose what's going on here. Here is what a filezilla session looks like.


Status:   Resolving address of myserver.com
Status:   Connecting to myserverIP:2121…
Status:   Connection established, waiting for welcome message…
Response:   220 FTP server ready
Command:   USER myname
Response:   331 User name okay, need password for myname
Command:   PASS ********
Response:   230 User logged in, proceed
Command:   SYST
Response:   215 UNIX Type: Java FTP Server
Command:   FEAT
Response:   211-Features supported
Response:    MFMT
Response:    SIZE
Response:    UTF8
Response:    MLST size*;modify*;create*;type*;unique*;perm*;media-type*;
Response:    MLSD
Response:    AUTH TLS
Response:   211 END
Command:   OPTS UTF8 ON
Response:   200 OPTS UTF8 ON
Status:   Connected
Status:   Retrieving directory listing…
Command:   PWD
Response:   257 "/"
Command:   TYPE I
Response:   200 Command OK
Command:   PASV
Response:   227 Entering Passive Mode (xx,xxx,xx,xxx,194,201)
Status:   Server sent passive reply with unroutable address. Using server address instead.
Command:   MLSD
Response:   150 File status okay, about to open data connection
Error:   Connection timed out
Error:   Failed to retrieve directory listing


Thanks!
11 REPLIES 11

I believe you need more than 1-2 data ports. I would suggest a minimum of 10 but probably much more than that unless you have a single user and single connection via FTP. Often this range is in the 100's of ports.

The problem that I had was more to do with forcing the gui FTP clients (winscp and filezilla) to use active transfer mode vs default or passive.  I don't think you need to change the from and to dataports unless you are looking to throttle the amount of resources available to the ftp server.  Once I forced the transfer mode, all worked well.
Good Luck!