SUSE Support

Here When You Need Us

lftp stucks on ftps connection while uploading a zero byte file

This document (7022676) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12 Service Pack 3 (SLES 12 SP3)

Situation

When uploading a zero byte files using lftp via ftps secured connections the process stucks. Uploading regular files shows no problem.

Resolution

When experiencing this issue, please contact SUSE Technical Services for a Program Temporary Fix.

Cause

A problem in the SSL handshake.

Additional Information

lftp -d -u ftpuser -e 'set ftp:ssl-force true; set ssl:verify-certificate no' ftps://<ftp-server>
[...]
lftp ftpuser@vsftpd.suma3.lan:~/in> put test.txt.0 ---> PROT C <--- 200 PROT now Clear. ---> TYPE I <--- 200 Switching to Binary mode. ---> EPSV <--- 229 Entering Extended Passive Mode (|||30008|). ---- Connecting data socket to (192.168.66.180) port 30008 ---- Data connection established ---> ALLO 4 <--- 202 ALLO command ignored. ---> STOR test.txt.0 <--- 522 Data connections must be encrypted. ---- Closing data socket ---> PROT P <--- 200 PROT now Private. ---> EPSV <--- 229 Entering Extended Passive Mode (|||30032|). ---- Connecting data socket to (192.168.66.180) port 30032 ---- Data connection established ---> STOR test.txt.0 <--- 150 Ok to send data. Certificate verification: common name: ‘vsftpd.suma3.lan’ matched ---- Closing data socket <--- 226 Transfer complete. ---> SITE UTIME 20180202150623 test.txt.0 <--- 500 Unknown SITE command. ---> SITE UTIME test.txt.0 20180202150623 20180202150623 20180202150623 UTC <--- 500 Unknown SITE command. 4 bytes transferred test.txt.0 was a file having content -> upload works upload a zero byte file: lftp ftpuser@vsftpd.suma3.lan:~/in> put test.txt.1 ---> EPSV <--- 229 Entering Extended Passive Mode (|||30100|). ---- Connecting data socket to (192.168.66.180) port 30100 ---- Data connection established ---> STOR test.txt.1 <--- 150 Ok to send data. `test.txt.1' at 0 (0%) [Sending data/TLS] -> hangs

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7022676
  • Creation Date: 22-Feb-2018
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.