FTP Error: Could not write to socket: Broken pipe
By viewing this error while using your ftp server, you may get the impression of some bug/problem in your ftp server. This is exactly what happened in the early morning when I got call that vsftpd server in one of the Amazon EC2 server stopped working. When tyring to transfer a file it’s showing something like this:
Error: Could not write to socket: Broken pipe
Unable to download file xxxx
In first, I chekced the config of vsftpd, and restarted it. It’s working fine. Then got the clue from “unable to download file” messages which indicates that ftp server is not able to write/download file. When I checked the space:
[root@domU-12-31-38-00-AD-E2:/etc/vsftpd] df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.9G 9.4G 0 100% /
/dev/sda2 147G 188M 140G 1% /mnt
You can see, 100% space full in / partition. Problem disappeared after cleaning up the space. This server was one of few servers, which were not convered by our nagios implementation then, though this incident accelerated the process.