Scheduled backup fails: Unable to upload backup files to FTP storage

Created:

2016-12-18 06:44:05 UTC

Modified:

2017-08-08 13:41:41 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Scheduled backup fails: Unable to upload backup files to FTP storage

Applicable to:

  • Plesk Onyx for Linux

Symptoms

A backup is scheduled to start at 00:15 every day to FTP storage. It fails with various warnings like:

Warning: hosting "example.com"
Unable to upload backup files to FTP storage: ack Broken pipe: write( 13, 'domains/example.com/backup_apache-files_1611260017.tgz ' ) at /opt/psa/PMM/agents/shared/IPC/Run/IO.pm line 558. STDOUT:
Warning: hosting "example.com"
Unable to upload archive domains/example.com/backup_apache-files_1611260017.tgz to FTP storage: ack Broken pipe: write( 13, 'domains/example.com/backup_apache-files_1611260017.tgz ' ) at /opt/psa/PMM/agents/shared/IPC/Run/IO.pm line 558.

A manual/scheduled backup is created successfully during a day.

There is a cron task which recreates /var/lib/psa/dumps/ directory:

# crontab -l
* 0,6 * * * rm -rf /var/lib/psa/dumps/ && mkdir -p /var/lib/psa/dumps/domains/example.com/ && chown -R psaadm:psaadm /var/lib/psa/dumps/

Cause

The cron task interferes backup creation by removing files located in /var/lib/psa/dumps/ .

Resolution

Ensure that Scheduled backup and the cron task do not intersect (considering a backup creation time):

  • Change schedule backup start time at Tools & Settings > Backup Manager > Schedule .

Or

  • Change time for the cron task using the following command:
    # crontab -e
Have more questions? Submit a request
Please sign in to leave a comment.