Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Received failure with description 'Failure' in while uploading to SFTP server with FileZilla

I faced this issue many times. While uploading or editing any file from FileZilla it its showing error message

Error: error while writing: received failure with description 'Failure'.

After the upload file the file size will be 0 byte.

My server is AWS EC2 with Minimum instance class type.

like image 758
JayminLimbachiya Avatar asked Dec 25 '22 02:12

JayminLimbachiya


1 Answers

The "Failure" is an error message for error code 4, returned by the OpenSSH SFTP server for various problems, for which there's no more specific code in the SFTP protocol version 3. While the server should at least return a specific plain-text error message, it fails to do so.

Common reasons you may get the generic "Failure" error message, while uploading are:

  • Uploading a file to a full filesystem (HDD).
  • Exceeding a user disk quota.

These reasons will even agree with the empty file when the error occurs.

For details, see SFTP Status/Error Code 4 (Failure).

like image 76
Martin Prikryl Avatar answered Apr 08 '23 15:04

Martin Prikryl