VSFTP File Transfer Failed, Error 451

Posted April 26, 2017 8.2k views
ApachePHPApplicationsUbuntu 16.04

Command: STOR phase1.php
Response: 150 Ok to send data.
Response: 451 Failure writing to local file.
Error: File transfer failed

I’m using FileZilla, and had no issues without using SFTP for the last several days. After performing consecutive uploads with bug fixes it gives me the error above. I have no idea what to do anymore.

I’ve the done following:

  • sudo chown -R ftp:ftp /var/www
  • restarted vsftpd and apache2
  • sudo chmod 777 -R /var/www
  • and reinstalled the LAMP stack

Nothing seems to be working and it was working just fine prior to last night. I’ve been doing socket connections for a project and thought maybe I exceeded the max connections so I reset the box, and my PC. Nothing changed.

I’m at a loss and would appreciate any help.

Note: It was working fine for 5 days up until last night. I don’t need suggestions to use SFTP, I don’t want to right now.


1 comment
  • Also whenever I go to my DigitalOcean Droplet panel it keeps refreshing saying “Something went wrong…” and refreshing the page. Can’t do anything right now, and it’s extremely frustrating.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Solved the 451 issue. Log file in /var/log/apache2 was 28 GB in size, deleted, problem solved.

  • thanks bro. it work very well

    i use vestacp so i found my log file in /var/log/httpd

    i deleted all file&folder except for some of these lists

    • - access_log
    • - domains (this is folder)
    • - error_log
    • - suexec.log

    note: the folder “domains” I deleted then I created an empty folder with the same name

    and resart httpd. solved :)

Hi @derekrynd

The problem on the control panel is currently being investigated:

VSFTP should log to somewhere - perhaps /var/log/vsftp.log - have a look in the log to see if it will give you more information.