Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: SSL Handshake failed. Error #1000
marti100

From: Bern, Switzerland
Posts: 9
Member Since: 10/28/03
posted January 20, 2004 4:32 AM

The connection between the latest version of Dart .NET (Secure) with the Titan ftp-server frequently results in a 'SSL Handshake failed. Error #1000' on the ftp-server. After this happens, no more login is possible! The error could happen several times a day or just once a week. Does anybody know if this error is caused by the Dart component or by the Titan ftp-server? This is the log:

Connection accepted from XXX.XX.XX.XX:4679, new socket is #748
2004-01-19 16:51:37 [2/748] SSL Handshake success.
2004-01-19 16:51:37 [2/748] Checking IP Access rules: IP address XXX.XX.XX.XX is not banned.
2004-01-19 16:51:37 [2/748] Server is online, processing connection.
2004-01-19 16:51:37 [2/748] Sending: 220 Titan FTP Server (Secure) 2.30.151 Ready.
2004-01-19 16:51:37 [2/748] Successfully sent banner message
2004-01-19 16:51:37 [2/748] Received: USER TTS
2004-01-19 16:51:37 [2/748] Sending: 331 User name okay, need password.
2004-01-19 16:51:37 [2/748] Received: PASS <hidden>
2004-01-19 16:51:37 [2/748] Sending: 230-Welcome tts from XXX.XX.XX.XX. You are now logged in to the server.
2004-01-19 16:51:37 [2/748] 230 User logged in, proceed.
2004-01-19 16:51:37 [2/748] Received: PASV
2004-01-19 16:51:37 [2/748] Socket #664 listening on Address/Port: XXX.XX.XX.XX:1618.
2004-01-19 16:51:37 [2/748] Sending: 227 Entering Passive Mode (10,24,140,39,6,82).
2004-01-19 16:51:37 [2/748] Received: LIST tts\files_to_tts\*
2004-01-19 16:51:37 [2/748] Sending: 150 File status okay; about to open data connection.
2004-01-19 16:51:37 [2/748] SSL Handshaking mode, handshake with client on data socket #776...
2004-01-19 16:51:37 [2/748] SSL Handshake success.
2004-01-19 16:51:37 [2/748] SSL Handshaking OK, opening data connection
2004-01-19 16:51:37 [2/748] Sending: 226 Closing data connection. Transferred 346 bytes.
2004-01-19 16:51:37 [2/748] Received: SIZE \tts\files_to_TTS\SIF02.D20040119.S413022
2004-01-19 16:51:37 [2/748] Sending: 213 66
2004-01-19 16:51:37 [2/748] Received: PASV
2004-01-19 16:51:37 [2/748] Socket #676 listening on Address/Port: XXX.XX.XX.XX:1619.
2004-01-19 16:51:37 [2/748] Sending: 227 Entering Passive Mode (10,24,140,39,6,83).
2004-01-19 16:51:37 [2/748] Received: RETR \tts\files_to_TTS\SIF02.D20040119.S413022
2004-01-19 16:51:37 [2/748] Sending: 150 Opening BINARY mode data connection for SIF02.D20040119.S413022 (66 bytes).
2004-01-19 16:51:37 [2/748] SSL Handshaking mode, handshake with client on data socket #760...
2004-01-19 16:51:37 [2/748] SSL Handshake success.
2004-01-19 16:51:37 [2/748] SSL Handshaking OK, opening data connection
2004-01-19 16:51:37 [2/748] Sending: 226 Closing data connection. Transferred 66 bytes.
2004-01-19 16:51:38 [2/748] Received: DELE \tts\files_to_TTS\SIF02.D20040119.S413022
2004-01-19 16:51:38 [2/748] Sending: 250 DELE command successful.
2004-01-19 16:51:38 [2/748] Received: SIZE \tts\files_to_TTS\SIF02.D20040119.S413023
2004-01-19 16:51:38 [2/748] Sending: 213 113
2004-01-19 16:51:38 [2/748] Received: PASV
2004-01-19 16:51:38 [2/748] Socket #692 listening on Address/Port: XXX.XX.XX.XX:1620.
2004-01-19 16:51:38 [2/748] Sending: 227 Entering Passive Mode (10,24,140,39,6,84).
2004-01-19 16:51:38 [2/748] Received: RETR \tts\files_to_TTS\SIF02.D20040119.S413023
2004-01-19 16:51:38 [2/748] Sending: 150 Opening BINARY mode data connection for SIF02.D20040119.S413023 (113 bytes).
2004-01-19 16:51:38 [2/748] SSL Handshaking mode, handshake with client on data socket #676...
2004-01-19 16:51:38 [2/748] SSL Handshake failed. Error #1000, SubError #0, Internal Memory Error. Please contact the program vendor for support.
2004-01-19 16:51:38 [2/748] SSL Handshake failed, closing control connection.
2004-01-19 16:51:38 [2/748] SSL Handshaking FAILED, closing data connection.
2004-01-19 16:51:38 [2/748] Sending: 425 Unable to open data connection.
2004-01-19 16:51:38 [2/748] Warning: The socket has been closed by the client
2004-01-19 16:51:38 [2/748] Closing connection 0x1c6a008, socket #748
2004-01-19 16:51:38 [2/544] Connection accepted from XXX.XX.XX.XX:4684, new socket is #800
2004-01-19 16:51:39 [2/544] Connection accepted from XXX.XX.XX.XX:4935, new socket is #640
2004-01-19 16:52:06 [2/544] Connection accepted from XXX.XX.XX.XX:4688, new socket is #596
2004-01-19 16:52:08 [2/544] Connection accepted from XXX.XX.XX.XX:4690, new socket is #784
2004-01-19 16:52:19 [2/544] Connection accepted from XXX.XX.XX.XX:4943, new socket is #768
2004-01-19 16:52:39 [2/544] Connection accepted from XXX.XX.XX.XX:4694, new socket is #848
2004-01-19 16:52:59 [2/544] Connection accepted from XXX.XX.XX.XX:4949, new socket is #868
2004-01-19 16:53:17 [2/544] Connection accepted
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 20, 2004 8:39 AM

If it only happens several times a day, it's going to be pretty hard to determine what's going on. If you figure out a way to narrow it down, let us know.

We'll need the address of the server in order to test it, so if you don't want to post that in public, contact support@dart.com to discuss your options.

marti100

From: Bern, Switzerland
Posts: 9
Member Since: 10/28/03
posted January 26, 2004 12:18 PM

Unfortunately, I cannot provide the ftp server to test it, but the problem is in a way reproduceable. this is the log when it happened:

Titan log:
2004-01-26 17:36:03 [2/344] SSL Handshaking mode, handshake with client on data socket #640...
2004-01-26 17:36:04 [2/264] Connection accepted from 192.168.1.231:1638, new socket is #704
2004-01-26 17:36:04 [2/704] SSL Handshake failed. Error #1705, SubError #-41, SSL Handshaking failed with internal error.
2004-01-26 17:36:04 [2/704] SSL Handshake failed, closing control connection.
2004-01-26 17:36:04 [2/704] Closing connection 0x2670008, socket #704
2004-01-26 17:36:04 [2/264] Connection accepted from 192.168.1.231:1639, new socket is #540
2004-01-26 17:36:34 [2/344] Warning: The socket has been closed by the client
2004-01-26 17:36:34 [2/344] Closing Data Socket #344 for 0x1343da8
2004-01-26 17:36:34 [2/344] Closing connection 0x1343da8, socket #344
2004-01-26 17:36:34 [2/264] Connection accepted from 192.168.1.231:1644, new socket is #440
2004-01-26 17:36:34 [2/264] Connection accepted from 192.168.1.231:1645, new socket is #612
2004-01-26 17:37:05 [2/264] Connection accepted from 192.168.1.231:1650, new socket is #472
2004-01-26 17:37:05 [2/264] Connection accepted from 192.168.1.231:1651, new socket is #672
2004-01-26 17:37:35 [2/264] Connection accepted from 192.168.1.231:1656, new socket is #756
2004-01-26 17:37:35 [2/264] Connection accepted from 192.168.1.231:1657, new socket is #792
2004-01-26 17:38:06 [2/264] Connection accepted from 192.168.1.231:1660, new socket is #828

Dart .net Log:

File name: "C:\TESTSECUREFTP\input\SIF02.D20031211.S272565"
  at a.Invoke(Delegate CurrentDelegate, Object[] args)
  at Dart.PowerTCP.SecureFtp.Ftp.Put(String localFileName, String remoteFileName)
  at secure_ftp.MySecureFtp.ftp_mput(String sourceFile, String destination) in c:\sftp_dll\secure_ftp\mysecureftp.cs:line 59
26.01.2004 17:36:03: System.InvalidOperationException: Connection terminated by server during SSL handshake. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
  at a.Invoke(Delegate CurrentDelegate, Object[] args)
  at Dart.PowerTCP.SecureFtp.Tcp.b(Byte[] A_0, Int32 A_1, Int32 A_2)
  at Dart.PowerTCP.SecureFtp.TcpStream.Read(Byte[] buffer, Int32 offset, Int32 size)
  at Dart.PowerTCP.SecureFtp.av.a(Byte[] A_0, Int32 A_1)
  at Dart.PowerTCP.SecureFtp.av.k()
  at Dart.PowerTCP.SecureFtp.av.p()
  --- End of inner exception stack trace ---
  at a.Invoke(Delegate CurrentDelegate, Object[] args)
  at Dart.PowerTCP.SecureFtp.Ftp.Get(String remoteFileName, String localFileName)
  at secure_ftp.MySecureFtp.ftp_mget(String remoteFile, String localFile) in c:\sftp_dll\secure_ftp\mysecureftp.cs:line 42
26.01.2004 17:36:04: System.InvalidOperationException: Connection terminated by server during SSL handshake. ---> System.Net.Sockets.SocketException: A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied
  at Dart.PowerTCP.SecureFtp.Tcp.a(Byte[] A_0, Int32 A_1, Int32 A_2)
  at Dart.PowerTCP.SecureFtp.TcpStream.Write(Byte[] buffer, Int32 offset, Int32 size)
  at Dart.PowerTCP.SecureFtp.PipeStream.c(Byte[] A_0, Int32 A_1, Int32 A_2)
  at Dart.PowerTCP.SecureFtp.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
  at Dart.PowerTCP.SecureFtp.av.a(e A_0)
  at Dart.PowerTCP.SecureFtp.av.a(Byte[] A_0, UInt32 A_1)
  at Dart.PowerTCP.SecureFtp.av.a(Byte[] A_0, Int32 A_1)
  at Dart.PowerTCP.SecureFtp.av.k()
  at Dart.PowerTCP.SecureFtp.av.p()
  --- End of inner exception stack trace ---
  at a.Invoke(Delegate CurrentDelegate, Object[] args)
  at Dart.PowerTCP.SecureFtp.Ftp.Put(String localFileName, String remoteFileName)
  at secure_ftp.MySecureFtp.ftp_mput(String sourceFile, String destination) in c:\sftp_dll\secure_ftp\mysecureftp.cs:line 59
26.01.2004 17:36:34: System.InvalidOperationException: Connection terminated by server during SSL handshake. ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
  at a.Invoke(Delegate CurrentDelegate, Object[] args)
  at Dart.PowerTCP.SecureFtp.Tcp.b(Byte[] A_0, Int32 A_1, Int32 A_2)
  at Dart.PowerTCP.SecureFtp.TcpStream.Read(Byte[] buffer, Int32 offset, Int32 size)
  at Dart.PowerTCP.SecureFtp.av.a(Byte[] A_0, Int32 A_1)
  at Dart.PowerTCP.SecureFtp.av.k()
  at Dart.PowerTCP.SecureFtp.av.p()
  --- End of inner exception stack trace ---
  at a.Invoke(Delegate CurrentDelegate, Object[] args)
  at Dart.PowerTCP.SecureFtp.Ftp.Put(String localFileName, String remoteFileName)

It only happens with secure ftp. The same code for just ftp (Dart ftp) works.

Has somebody an idea what there happens?
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX