GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
n3trid3r
500 Command not understood
Posts: 4
Joined: 2022-06-30 19:06
First name: Bill
Last name: Stubbles

GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated

#1 Post by n3trid3r » 2022-06-30 20:48

Running FileZilla Server 1.4.1 on a Windows Laptop. I'm using GoAnywhere to create the FTPS client, also running on the same laptop. I can successfully connect, list files, and download a file, but upload attempts are throwing this error even though the file is successfully copied to the destination directory -
<Date> Info [Type] Message
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Command] STOR /output.txt
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Response] 150 Starting data transfer.
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] session::on_socket_event(): source = data, flag = 2, error = 0, state = 2
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] tls_layer_impl::server_handshake()
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] tls_layer_impl::continue_handshake()
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] tls_layer_impl::continue_handshake()
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] tls_layer_impl::continue_handshake()
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] tls_layer_impl::continue_handshake()
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] TLS Handshake successful
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] TLS Session resumed
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] Protocol: TLS1.2, Key exchange: ECDHE-SECP256R1, Cipher: AES-256-GCM, MAC: AEAD, ALPN:
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] session::on_socket_event(): source = data, flag = 2, error = 0, state = 2
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Error] GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated.
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Status] Client did not properly shut down TLS connection
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] tls_layer_impl::shutdown()
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] data_socket_->shutdown() = 126
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Response] 425 Error while transfering data: ECONNABORTED - Connection aborted
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated.
<6/30/2022 3:15:50 PM> FTP Session 43 127.0.0.1 mfttest [Trace] Control channel closed with error from source 0. Reason: ECONNABORTED - Connection aborted.

Active or Passive mode makes no difference.

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated

#2 Post by botg » 2022-07-01 08:32

It looks like your client isn't shutting down the data connection correctly. Update to a client that correctly shuts down the data connection through the TLS closure alert as opposed to dropping the connection.

n3trid3r
500 Command not understood
Posts: 4
Joined: 2022-06-30 19:06
First name: Bill
Last name: Stubbles

Re: GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated

#3 Post by n3trid3r » 2022-07-01 13:35

Is this the same as the Close_Notify command? I have that enabled.
This is more for the developers than for me - any thoughts as to why this is only be an issue when I'm trying to upload a file? Is there something different about the data connection shutdown for uploading a file vs downloading a file or just a directory listing? Both those functions work without any issues. Thank you.

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated

#4 Post by botg » 2022-07-04 07:25

Is this the same as the Close_Notify command? I have that enabled.
It is at least the name as the appropriate alert, see https://datatracker.ietf.org/doc/html/r ... tion-7.2.1
any thoughts as to why this is only be an issue when I'm trying to upload a file? Is there something different about the data connection shutdown for uploading a file vs downloading a file or just a directory listing?
The difference is direction. When downloading, the server tells the client when the end of the transfer has been reached. When uploading, the client tells the server when the end of the transfer has been reached.

n3trid3r
500 Command not understood
Posts: 4
Joined: 2022-06-30 19:06
First name: Bill
Last name: Stubbles

Re: GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated

#5 Post by n3trid3r » 2022-07-05 15:32

Next steps will be to see if I can get a successful FTPS upload using another client, like WinSCP, and then compare the two DEBUG logs to see if I can identify the difference, to escalate to my development team.

n3trid3r
500 Command not understood
Posts: 4
Joined: 2022-06-30 19:06
First name: Bill
Last name: Stubbles

Re: GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated

#6 Post by n3trid3r » 2022-07-06 12:53

The attached file has four session logs - client and server logs for an upload using the GoAnywhere client, which fails, and client and server logs for an upload using the WinSCP client, which works. Can you tell me from these logs what the GoAnywhere client is doing or not doing that causes the upload to fail? I can escalate this back to the developers to fix. Please and thank you.
Attachments
FileZilla Forum logs.txt
(64.36 KiB) Downloaded 53 times

User avatar
botg
Site Admin
Posts: 35491
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: GnuTLS error -110 in gnutls_record_recv: The TLS connection was non-properly terminated

#7 Post by botg » 2022-07-06 23:17

Nothing changed since the earlier assessment. Still no closure alert.

Post Reply