Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

georgobb

Posts

7

Joined

Sat Apr 18, 2009 9:01 pm

Control channel unexpectedly closed ('' read so far)

by georgobb » Fri Aug 21, 2009 9:43 pm

Hi,
im using edtFTPnet.dll V2.0.0.0 im my app. The app connects to an ftp-server with no problems, but when trying to download 1 small file i get an error.
The connection goes via an proxy as you can see in the log. I tried the same with filezilla and does not get any error message.

I Include the logfile and a debugging log from filezilla.

Any help is welcome

tia georg


Here the logfile from the ftpconnection:
DEBUG [FTPConnection] 21 Aug 2009 11:19:19.855 : Set LocalDirectory='C:\Programme\xxxxxx'
DEBUG [HostNameResolver] 21 Aug 2009 11:19:21.823 : proxy.services.xxx resolved to 10.10.10.10
DEBUG [FTPClient] 21 Aug 2009 11:19:21.823 : Connecting to 10.10.10.10:21
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:21.917 : Setting socket timeout=120000
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:21.933 : Command encoding=System.Text.ASCIIEncoding
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:21.933 : StrictReturnCodes=False
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:21.995 : 220 Blue Coat FTP Service
DEBUG [FTPConnection] 21 Aug 2009 11:19:21.995 : Connected to proxy.services.xxx
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:26.230 : ---> USER FTPUSER@FTPHOST PROXYPASSWORD
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:26.339 : 331 Enter password.
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:26.339 : ---> PASS ********
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:26.417 : 332 Enter proxy password.
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:27.386 : ---> SIZE test.txt
ERROR [FTPControlSocket] 21 Aug 2009 11:19:27.464 : Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 21 Aug 2009 11:19:27.495 : Exception in SendCommand : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadLine()
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadReply()
at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)
DEBUG [FTPFileFactory] 21 Aug 2009 11:19:27.667 : Defaulting to Unix parsing
DEBUG [FTPControlSocket] 21 Aug 2009 11:19:27.667 : ---> QUIT
ERROR [FTPControlSocket] 21 Aug 2009 11:19:27.667 : Control channel unexpectedly closed ('' read so far)
ERROR [FTPControlSocket] 21 Aug 2009 11:19:27.667 : Exception in SendCommand : EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
EnterpriseDT.Net.Ftp.ControlChannelIOException: Control channel unexpectedly closed ('' read so far)
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadLine()
at EnterpriseDT.Net.Ftp.FTPControlSocket.ReadReply()
at EnterpriseDT.Net.Ftp.FTPControlSocket.SendCommand(String command)

**********************************
Here the filezilla log (same server, same proxy) The filezilla is a german version, but i hope its ok.

2009-08-21 12:10:16 536 1 Status: Benutze Proxy proxy.services.xxx
2009-08-21 12:10:16 536 1 Status: Aufl?sen der IP-Adresse f?r proxy.services.xxx
2009-08-21 12:10:16 536 1 Status: Verbinde mit 10.10.10.10:21...
2009-08-21 12:10:16 536 1 Status: Verbindung hergestellt, warte auf Willkommensnachricht...
2009-08-21 12:10:16 536 1 Trace: CFtpControlSocket::OnReceive()
2009-08-21 12:10:16 536 1 Antwort: 220 Blue Coat FTP Service
2009-08-21 12:10:16 536 1 Trace: CFtpControlSocket::SendNextCommand()
2009-08-21 12:10:16 536 1 Befehl: USER FTPUSER@FTPHOST PROXYPASSWORD
2009-08-21 12:10:16 536 1 Trace: CFtpControlSocket::OnReceive()
2009-08-21 12:10:16 536 1 Antwort: 331 Enter password.
2009-08-21 12:10:16 536 1 Trace: CFtpControlSocket::SendNextCommand()
2009-08-21 12:10:16 536 1 Befehl: PASS ***********
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::OnReceive()
2009-08-21 12:10:17 536 1 Antwort: 332 Enter proxy password.
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::SendNextCommand()
2009-08-21 12:10:17 536 1 Befehl: ACCT ********
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::OnReceive()
2009-08-21 12:10:17 536 1 Antwort: 230 Login successful.
2009-08-21 12:10:17 536 1 Status: Verbunden
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::ResetOperation(0)
2009-08-21 12:10:17 536 1 Trace: CControlSocket::ResetOperation(0)
2009-08-21 12:10:17 536 1 Trace: CFileZillaEnginePrivate::ResetOperation(0)
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::FileTransfer()
2009-08-21 12:10:17 536 1 Status: Starte Download von /test.txt
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::SendNextCommand()
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::ChangeDirSend()
2009-08-21 12:10:17 536 1 Befehl: CWD /
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::OnReceive()
2009-08-21 12:10:17 536 1 Antwort: 250 CWD command successful.
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::SendNextCommand()
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::ChangeDirSend()
2009-08-21 12:10:17 536 1 Befehl: PWD
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::OnReceive()
2009-08-21 12:10:17 536 1 Antwort: 257 "/"
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::ResetOperation(0)
2009-08-21 12:10:17 536 1 Trace: CControlSocket::ResetOperation(0)
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::ParseSubcommandResult(0)
2009-08-21 12:10:17 536 1 Trace: FileTransferSubcommandResult()
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::SendNextCommand()
2009-08-21 12:10:17 536 1 Trace: FileTransferSend()
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::SendNextCommand()
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::TransferSend()
2009-08-21 12:10:17 536 1 Trace: state = 1
2009-08-21 12:10:17 536 1 Befehl: TYPE A
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::OnReceive()
2009-08-21 12:10:17 536 1 Antwort: 200 Command okay.
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::TransferParseResponse()
2009-08-21 12:10:17 536 1 Trace: code = 2
2009-08-21 12:10:17 536 1 Trace: state = 1
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::SendNextCommand()
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::TransferSend()
2009-08-21 12:10:17 536 1 Trace: state = 2
2009-08-21 12:10:17 536 1 Befehl: PASV
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::OnReceive()
2009-08-21 12:10:17 536 1 Antwort: 227 Entering Passive Mode (10,10,10,10,105,35)
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::TransferParseResponse()
2009-08-21 12:10:17 536 1 Trace: code = 2
2009-08-21 12:10:17 536 1 Trace: state = 2
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::SendNextCommand()
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::TransferSend()
2009-08-21 12:10:17 536 1 Trace: state = 4
2009-08-21 12:10:17 536 1 Befehl: RETR test.txt
2009-08-21 12:10:17 536 1 Trace: CTransferSocket::OnConnect
2009-08-21 12:10:17 536 1 Trace: CTransferSocket::OnReceive(), m_transferMode=2
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::OnReceive()
2009-08-21 12:10:17 536 1 Antwort: 150 File status okay; about to open data connection.
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::TransferParseResponse()
2009-08-21 12:10:17 536 1 Trace: code = 1
2009-08-21 12:10:17 536 1 Trace: state = 4
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::SendNextCommand()
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::TransferSend()
2009-08-21 12:10:17 536 1 Trace: state = 5
2009-08-21 12:10:17 536 1 Trace: CTransferSocket::OnReceive(), m_transferMode=2
2009-08-21 12:10:17 536 1 Trace: CTransferSocket::OnClose(0)
2009-08-21 12:10:17 536 1 Trace: CTransferSocket::TransferEnd(1)
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::TransferEnd()
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::OnReceive()
2009-08-21 12:10:17 536 1 Antwort: 226 Transfer complete, closing data connection.
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::TransferParseResponse()
2009-08-21 12:10:17 536 1 Trace: code = 2
2009-08-21 12:10:17 536 1 Trace: state = 7
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::ResetOperation(0)
2009-08-21 12:10:17 536 1 Trace: CControlSocket::ResetOperation(0)
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::ParseSubcommandResult(0)
2009-08-21 12:10:17 536 1 Trace: FileTransferSubcommandResult()
2009-08-21 12:10:17 536 1 Trace: CFtpControlSocket::ResetOperation(0)
2009-08-21 12:10:17 536 1 Trace: CControlSocket::ResetOperation(0)
2009-08-21 12:10:17 536 1 Status: Dateitransfer erfolgreich
2009-08-21 12:10:17 536 1 Trace: CFileZillaEnginePrivate::ResetOperation(0)
2009-08-21 12:10:18 536 1 Trace: CFileZillaEnginePrivate::ResetOperation(0)
2009-08-21 12:10:23 536 1 Trace: CControlSocket::DoClose(64)
2009-08-21 12:10:23 536 1 Trace: CControlSocket::ResetOperation(66)
2009-08-21 12:10:23 536 1 Trace: CFileZillaEnginePrivate::ResetOperation(66)
2009-08-21 12:10:23 536 0 Trace: CControlSocket::DoClose(64)
2009-08-21 12:10:23 536 0 Trace: CControlSocket::ResetOperation(66)
2009-08-21 12:10:23 536 0 Trace: CFileZillaEnginePrivate::ResetOperation(66)
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Control channel unexpectedly closed ('' read so far)

by support2 » Fri Aug 21, 2009 11:12 pm

The clue is here:

332 Enter proxy password.
---> SIZE test.txt

and in Filezilla

332 Enter proxy password.
ACCT ********

Try setting FTPConnection.AccountInfo to the proxy password, and the ACCT command should be used as in Filezilla.
no avatar
User

georgobb

Posts

7

Joined

Sat Apr 18, 2009 9:01 pm

Solved

by georgobb » Sat Aug 22, 2009 4:01 am


Who is online

Users browsing this forum: No registered users and 11 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign