[WinSCP 6.3] Sync over FTPES stops after a while

Advertisement

GwenDragon
Joined:
Posts:
11
Location:
Germany

[WinSCP 6.3] Sync over FTPES stops after a while

Sync over FTPES stops with WinSCP 6.3

Using WinSCP 6.3 with scripting in batch on Windows 11 to sync files.
After a while the connection freezes or breaks and script end with error.

Expected:
All files are synced as it happen in WinSCP 6.1.2 before

Current:
The connection stops after a while syncing files.

Additional:
OS: Windows 11 23H2
Client: WinSCP 6.3
Transfer protocol: FTPES / Port 21 / Passive

Works with FTP (no SSL/TLS) in WinSCP 6.3
Batch works in WinSCP 6.1.2 without disconnecting.

Remote FTP Server:
Debian 11.9
ProFTPd 1.3.7a
libssl OpenSSL 1.1.1w
Last edited by GwenDragon on 2024-02-15 15:50; edited 1 time in total

Reply with quote

Advertisement

GwenDragon
Joined:
Posts:
11
Location:
Germany

How to send you log and batch script, content should not be public.

Last log lines
> 2024-02-15 15:29:45.192 EPSV
< 2024-02-15 15:29:45.202 229 Entering Extended Passive Mode (|||53329|)
> 2024-02-15 15:29:45.202 MLSD
. 2024-02-15 15:29:45.202 Connecting to srv2.*****.de:53329 ...
< 2024-02-15 15:29:45.216 150 Opening ASCII mode data connection for MLSD
. 2024-02-15 15:29:45.227 Session ID reused

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: [WinSCP 6.3] Sync over FTPES stops after a while

You can post the logs as a private attachment here. Thanks.
Please post logs from both 6.1 and 6.3.

Reply with quote

GwenDragon
Joined:
Posts:
11
Location:
Germany

Do you need a special log level for WinSCP log?
With 6.3 the script does never end now. Looks like no reconnect happens by scripting.
What to do?

Server log showed:
Feb 14 16:44:45 srv2 proftpd[908404]: mod_tls/2.9.2: unexpected OpenSSL error, disconnecting

And ProFTPD TLS log:
2024-02-15 17:10:03,463 mod_tls/2.9.2[1151966]: added 2 certs from '/opt/psa/admin/conf/httpsd.pem' to SSL_CTX certificate chain
2024-02-15 17:10:03,474 mod_tls/2.9.2[1151966]: TLS/TLS-C requested, starting TLS handshake
2024-02-15 17:10:03,505 mod_tls/2.9.2[1151966]: client supports secure renegotiations
2024-02-15 17:10:03,506 mod_tls/2.9.2[1151966]: TLSv1.3 connection accepted, using cipher TLS_AES_256_GCM_SHA384 (256 bits)
2024-02-15 17:10:03,808 mod_tls/2.9.2[1151966]: Protection set to Private
2024-02-15 17:10:03,896 mod_tls/2.9.2[1151966]: TLSv1.3 data connection accepted, using cipher TLS_AES_256_GCM_SHA384 (256 bits, resumed session)
2024-02-15 17:10:08,527 mod_tls/2.9.2[1151966]: unable to accept TLS connection: system call error: [104] Connection reset by peer
2024-02-15 17:10:08,527 mod_tls/2.9.2[1151966]: unable to open data connection: TLS negotiation failed
2024-02-15 17:10:08,527 mod_tls/2.9.2[1151966]: panic: SSL_ERROR_SSL, line 11109: 
  (1) error:140E0197:SSL routines:SSL_shutdown:shutdown while in init
2024-02-15 17:10:08,527 mod_tls/2.9.2[1151966]: unexpected OpenSSL error, disconnecting

Reply with quote

GwenDragon
Joined:
Posts:
11
Location:
Germany

If I try to use WinSCP.exe (6.3) (GUI) and download a larger folder, it crashes while calculation of folder size is done.
I can send you a zipped crashdump.
  • WinSCP.exe.4448.zip (1.11 MB, Private file)

Reply with quote

Advertisement

Advertisement

martin
Site Admin
martin avatar

Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.

Reply with quote

Advertisement

GwenDragon
Joined:
Posts:
11
Location:
Germany

I made some testes and I can see my issue is solved, no connection loss and freeze with the version 6.3.1 you sent me :-)

EDIT: And official released 6.3.1 works stable.
Thanks a lot.

So you can close this thread as bug is fixed.

Reply with quote

Advertisement

You can post new topics in this forum