FTP intermitent fail driving me nuts

willemvdm

Well-Known Member
Joined
Apr 16, 2006
Messages
338
Reaction score
0
Location
Uitenhage
Hi there.

I have a website hosted in the US. Lately, past few months I'm battling with uploading files to my site with FTP. Several times I've opened support tickets with my host about this problem. Though they try their best to help, it generally along the line of nothing wrong with the server, must be fault on client side. After a day or two or three and several failed attempts I try again and whala the upload work. I let my host provider know that ftp worked and they say, but they didn't do anything on the server. Neither did I, so I was a bit skeptical. Few weeks later when I try to upload again, same problem.

Now I've discovered that when I run into the problem and I just keep on trying that eventually the upload succeed. Then if I try 2 min later it fail.

Description of problem.

I can always connect to the server, I can change directory on remote server, but as soon as I do ls, put or get the connection time out. Then I must close the program and start again.

I've tried several ftp clients, windows build in ftp, FTP commander, Winscp, FTPshell, filezilla, just to name a few. I've also tried both passive and active mode, though my host say I must use passive. I've tried removing all port forward on my router. I've tried both using router making connection and pc making the connection. I've recently changed over to vista, but still have xp on my pc too and xp has the same result. I even tried DSL (Dam Small Linux)

All have the same result, failing about 90% of the time.

Here is a extract from filezilla. You'll see, the first list command was successful, but then after changing to another folder, the list command failed. I'm using Telkom Internet, could that be the problem. Also tried Axxess shapped prepaid account, still same problem.

Status: Resolving address of ftp.aalwyne.co.za
Status: Connecting to 66.197.167.227:21...
Status: Connection established, waiting for welcome message...
Response: 220---------- Welcome to Pure-FTPd [TLS] ----------
Response: 220-You are user number 3 of 50 allowed.
Response: 220-Local time is now 18:28. Server port: 21.
Response: 220-This is a private system - No anonymous login
Response: 220-IPv6 connections are also welcome on this server.
Response: 220 You will be disconnected after 15 minutes of inactivity.
Command: USER ***************
Response: 331 User *************** OK. Password required
Command: PASS **********
Response: 230-User *************** has group access to: aalwynec
Response: 230 OK. Current restricted directory is /
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: PASV
Response: 227 Entering Passive Mode (66,197,167,227,117,194)
Command: LIST
Response: 150 Accepted data connection
Response: 226-ASCII
Response: 226-Options: -a -l
Response: 226 86 matches total
Status: Directory listing successful
Status: Retrieving directory listing...
Command: CWD wap
Response: 250 OK. Current directory is /wap
Command: PWD
Response: 257 "/wap" is your current location
Command: PASV
Response: 227 Entering Passive Mode (66,197,167,227,140,131)
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing

I tried using net2ftp.com and managed to upload 5 times in a row with no problem, so it seem as if the problem is on my side. I don't want to keep on bothering my host service provider, since it don't seem to be a problem on their side and also I feel I only have the lowest valued package paying R10 per month, I can't expect them to run up and down for me for such little money.

Anyone have any idea what is going on here.

Reason why I'd like to use ftp apposed to using my host's web interface, is so that I can automate the process of uploading, uploading only the files that I changed automatically.

Is there perhaps any other alternatives to ftp. My site is hosted on a linux box.
 
What time of day do you try this? Plus do you get the same results on Sundays?

PS: Have you tried this yet? Has helped me in the past with the same problem.

PowerFTP by CooolSoft ( http://www.cooolsoft.com/powerftp.htm )
PowerFTP is a powerful FTP client/server software. The best feature of PowerFTP is the function of multiple thread downloading and uploading. it can even split one big file into several parts, and download each part at one time!
 
Last edited:
I tried it right now again with no luck. Yes, Sundays it fail too. I sat most of this past Sunday trying different FTP clients. Tried a couple of times today during the day too, all the same.
 
This happened on my FTP too... but the hosters apparently have fixed it.

I don't know what they did.

Ask your hoster to look into it!
 
This might do it for you: multiple thread downloading and uploading.

Give it a try and let us know.
 
Yet you can surf to the website with no problems?
Do you have any firewalls in line that might be causing problems on port 21?
 
Hi,

I know the host said you must use Passive, but do you still get the error during a Non - Passive session?
 
I would say post a question in your ISP's forum but this is a bad sign already :(

http://forum.softdux.com/
Notice: Undefined variable: sourcedir in /home/softdux/public_html/forum/index.php on line 54

Warning: require_once(/QueryString.php) [function.require-once]: failed to open stream: No such file or directory in /home/softdux/public_html/forum/index.php on line 54

Fatal error: require_once() [function.require]: Failed opening required '/QueryString.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/softdux/public_html/forum/index.php on line 54
 
I do have firewalls, I've disabled the router firewall and also Disabled windows firewall. Still the same.

Using non-passive/i.e.active fail 100% of the time, so thats no good.

Are there any free public ftp servers in the US that I could try uploading to, just to test?
 
Ok, I've created an account with drivehq.com, connected to their server, uploaded some files, downloaded some files and all work 100%, so maybe the problem is server side.

Yet, I can't understand why using net2ftp.com work. What makes the ftp connection that they make to my site different from the one I make from my PC.

So I suppose I'll have to open another support ticket.
 
The problem is probably on their side. Ask them to check their firewall's open ports. The reason why it sometimes works for you is because passive connections rely on a random port that is opened from their side and it uses that for the session.

You were lucky in some cases, as the port fell into the range of their permits, but on most other occasions, it was obviously denied.

Ask them to sort out their server's firewall.
 
Just want to report back. FTP is now working 100%, even my little program I'm busy writing to upload only changed files to my website is working now. Thought it was my s***ty programming that caused it to fail all the time.

Apparently the time on the server was set 5 minutes ahead. Don't really understand how that make a difference, but it is working now.
 
Great to see it has worked out for you. I seriously don't get that 5 minutes ahead statement - 5 minutes ahead of what? GMT? EST? That will not influence correct operation of an FTP server.

Again, though, at least it's working for you now ;)
 
After getting a support ticket, FTP started working before I received a reply. I then send an email to inform them it's working. This is the reply I got.

while trying a few things I did notice that the servers time was 5
minutes ahead, which also sometimes cause "interesting problems". I'm
going to re-enable the firewall and then want you to try it again for me
please.

Later I also got this.

FTP is a very "poorly designed" protocol in that it doesn't gaurentee delivery, and somethin like the servers time will affect it as well. I wasn't aware of the fact that the server's time was 5 minutes ahead, which then caused this problem. żylaki

So it could also be one of the "few things" tried above, but for all I care it could have been the fish munching data of the SAT3 cable:eek:, I'm just happy all is well now.:)
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X