Unable to accept passive connection

Anything you want!
Locked
achuta
New User
Posts: 7
Joined: Fri Aug 14, 2009 1:26 pm

Unable to accept passive connection

Post by achuta » Wed Dec 02, 2009 7:16 am

Hi all,

I am using Cerberus FTP server Professional Edition v3.1.0.1. On my client (a handheld computer, using asynchronous mode) I am uploading files (from a certain folder) non-stop in a thread. Non-stop means one after the other. If there is a failure, I make the thread sleep for 5 secs and try uploading again.

I am using passive connection. The PASV range is 11000-13000 and there is only one client (the handheld) that is using the passive connection on the FTP server. The server has a public ip address that is it does not begin with 192.168, 10.0, or 172.16. Hence there is no need for me to configure anything in the linksys router as outline on Cerberus online help documentation.

Problem:
After the handheld has successfully uploaded 47-65 files, no more files can be uploaded. I get the following error while trying to perform any upload after that.
[2009-12-02 11:17:55]: WARN [ 86573] - Timeout while waiting for connection
[2009-12-02 11:17:55]: ERROR [ 86573] - Unable to accept passive connection
[2009-12-02 11:17:55]:SUGGEST [ 86573] - For help see http://www.cerberusftp.com/faq/initialsetup.htm#Q3
[2009-12-02 11:17:55]: REPLY [ 86573] - 425 Unable to open the data connection

My question:
1. Why is the Cerberus server unable to accept passive connection?
2. Why does it work for the initial 67 files? I checked if I am closing connections and that's fine. Also, I am using Professional edition (license - not trial) - shouldn't there be unlimited connections?

Thanking you in advance for your time.

Best regards,
-A

User avatar
Serin
Site Administrator
Posts: 1785
Joined: Sat Jan 01, 2005 6:57 pm
Location: United States
Contact:

Re: Unable to accept passive connection

Post by Serin » Thu Dec 03, 2009 8:40 am

Hello,

Perhaps you have another service listening on one of the PASV ports? Even if that is the case, the next file transfer should work.

If you stop the thread (client) and restart do transfers work again for a while?

achuta
New User
Posts: 7
Joined: Fri Aug 14, 2009 1:26 pm

Re: Unable to accept passive connection

Post by achuta » Mon Dec 07, 2009 5:00 am

Hi there,

Thank you for your response.

If I stop the thread and restart the transfers, it still fails. I need to reset the device and then launch the transfer again and then it works.

I really need to find a solution to this problem.

Thanks and Regards,
-A

User avatar
Serin
Site Administrator
Posts: 1785
Joined: Sat Jan 01, 2005 6:57 pm
Location: United States
Contact:

Re: Unable to accept passive connection

Post by Serin » Mon Dec 07, 2009 9:54 am

Hello,

When you say reset the device, are you referring to the Linksys router or Cerberus? This sounds like it may be a router issue. Do you have any other routers you can try?

achuta
New User
Posts: 7
Joined: Fri Aug 14, 2009 1:26 pm

Re: Unable to accept passive connection

Post by achuta » Mon Dec 07, 2009 1:59 pm

Hi there,

sorry for the confusion.

By resetting the device, I meant resetting the handheld computer (running Window Mobile OS).

Any help is appreciated.

Thanks and Regards,
-A

User avatar
Serin
Site Administrator
Posts: 1785
Joined: Sat Jan 01, 2005 6:57 pm
Location: United States
Contact:

Re: Unable to accept passive connection

Post by Serin » Mon Dec 14, 2009 2:46 am

Hello,

If resetting the handheld computer is what fixes the problem then that leads me to believe the problem is almost certainly with the client. I'm not very familiar with Windows Mobile but could you be running into a problem with limited resources on the handheld? Perhaps you aren't closing file handles and are hitting a resource limit there. Just a guess.

wschmi
New User
Posts: 3
Joined: Tue Sep 29, 2009 6:26 am

Re: Unable to accept passive connection

Post by wschmi » Mon Jan 25, 2010 9:45 am

Hi,

i have nearly the same problem, but passive connections work if start the server from desktop-shortcut.
Version 3.1.0.4 (x64)

please look at the log:

[2010-01-25 15:27:49]: SYSTEM [Server] - Installed as a service - started from the SCM

....

[2010-01-25 15:29:22]:COMMAND [ 1] - TYPE I
[2010-01-25 15:29:22]: REPLY [ 1] - 200 Type Binary

[2010-01-25 15:29:22]:COMMAND [ 1] - PASV
[2010-01-25 15:29:22]: REPLY [ 1] - 227 Entering Passive Mode (xxx,xxx,xxx,11,42,248)

[2010-01-25 15:29:22]:COMMAND [ 1] - MLSD
[2010-01-25 15:30:54]: WARN [ 1] - Timeout while waiting for connection
[2010-01-25 15:30:54]: ERROR [ 1] - Unable to accept passive connection
[2010-01-25 15:30:54]:SUGGEST [ 1] - For help see http://www.cerberusftp.com/faq/initialsetup.htm#Q3
[2010-01-25 15:30:54]: REPLY [ 1] - 425 Unable to open the data connection

[2010-01-25 15:30:54]: SYSTEM [ 1] - The client closed the connection
[2010-01-25 15:30:54]:CONNECT [ 1] - Connection Terminated

-----------------------------------------------------------------------

[2010-01-25 15:34:32]: SYSTEM [Server] - Installed as a service - not started from the SCM

....

[2010-01-25 15:35:36]:COMMAND [ 2] - TYPE I
[2010-01-25 15:35:36]: REPLY [ 2] - 200 Type Binary

[2010-01-25 15:35:36]:COMMAND [ 2] - PASV
[2010-01-25 15:35:36]: REPLY [ 2] - 227 Entering Passive Mode (xxx,xxx,xxx,11,58,59)

[2010-01-25 15:35:36]:COMMAND [ 2] - MLSD
[2010-01-25 15:35:36]: REPLY [ 2] - 150 Opening data connection

[2010-01-25 15:35:36]:CONNECT [ 2] - SSL connection using TLSv1/SSLv3, 128 bit encryption
[2010-01-25 15:35:36]:CONNECT [ 2] - SSL data connection established
[2010-01-25 15:35:36]: REPLY [ 2] - 226 Transfer complete

any hints? is this a bug? tested on Windows Server 2003 R2 and 2008 R2. Problem occurs on both systems.

best regards

W0lf

User avatar
Serin
Site Administrator
Posts: 1785
Joined: Sat Jan 01, 2005 6:57 pm
Location: United States
Contact:

Re: Unable to accept passive connection

Post by Serin » Mon Jan 25, 2010 10:54 am

W0lf,

When in service mode, do PASV connections sometimes work or do they always fail? Can you open the GUI window when running in Service mode? You might have a conflict on the default SOAP listening port (10000). You could check and see that other services aren't running on that port and change your default SOAP port to something like 10001 and restart the service.

wschmi
New User
Posts: 3
Joined: Tue Sep 29, 2009 6:26 am

Re: Unable to accept passive connection

Post by wschmi » Tue Jan 26, 2010 2:51 am

Good Morning,

changing the soap port does not help. same error again.

Something more discovered:
PASV-Error occurs only in FTPES, not in unsecured transfer
Firewall throw exception when ftpserver in service mode on port 1100x. sometimes 11000, 11001 or 11003. the port changes. if i open all ports (any/any) -> pasv connection works, but this is not the way its meant to be :roll:
No Firewall exceptions when start from desktop.

User avatar
Serin
Site Administrator
Posts: 1785
Joined: Sat Jan 01, 2005 6:57 pm
Location: United States
Contact:

Re: Unable to accept passive connection

Post by Serin » Wed Jan 27, 2010 12:06 am

I think we've fixed the problem. This was a bug and release 3.1.0.5 should resolve it.

Locked