Backup to FTP repository fails with the error: Export dump to FTP failed

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:21:13 UTC

Modified:

2016-12-21 20:31:41 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Backup to FTP repository fails with the error: Export dump to FTP failed

Symptoms

Exporting a Parallels Plesk Panel (Plesk) backup to an FTP server fails with the following error:

The dump have been made successfully but can not be imported to FTP due to errors

The content of /usr/local/psa/PMM/sessions/2013-11-20-113722.40/psadump.log shows:

[14105]: 10:37:27 ERROR e5e5cbb4-6424-4cb8-803c-53ed122eb067 FTP ERROR: Net::FTP: connect: Connection refused
[14105]: 10:37:27 DEBUG Unlink file '/usr/local/psa/PMM/tmp/backupJkI8Ug/parallels_res1_info_1311201137.xml.tar'
[14105]: 10:37:27 ERROR 64aec726-74f9-4f0c-8758-6cf978e0611a The dump have been made successfully but can not be imported to FTP due to errors.
The dump 'parallels_res1_info_1311201137.xml' have been leaved at repository '/usr/local/psa/PMM/tmp/backupJkI8Ug'. Please export it manually
[14105]: 10:37:27 DEBUG Runtime error: Export dump to FTP failed at /usr/local/psa/admin/bin/plesk_agent_manager line 724.
at /usr/local/psa/admin/bin/plesk_agent_manager line 724
main::perform('verbose', 4, 'owner-type', 'reseller', 'split-size', undef, 'session-path', '/usr/local/psa/PMM/sessions/2013-11-20-113722.40', 'description', ...) called at /usr/local/psa/admin/bin/plesk_agent_manager line 1279
main::__ANON__() called at /usr/local/psa/PMM/agents/shared/Error.pm line 398
eval {...} called at /usr/local/psa/PMM/agents/shared/Error.pm line 397
Error::subs::try('CODE(0x374a500)', 'HASH(0x374a5d8)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 1288
main::main() called at /usr/local/psa/admin/bin/plesk_agent_manager line 1290.

[14105]: 10:37:27 ERROR 38b6338c-c3db-4eab-8ead-8594072041b2 Runtime error:
at /usr/local/psa/PMM/agents/shared/Logging.pm line 84
Logging::error('Runtime error', 'fatal') called at /usr/local/psa/admin/bin/plesk_agent_manager line 1285
main::__ANON__('Error::Simple=HASH(0x3541d70)', 'SCALAR(0x33479c0)') called at /usr/local/psa/PMM/agents/shared/Error.pm line 326
eval {...} called at /usr/local/psa/PMM/agents/shared/Error.pm line 320
Error::subs::run_clauses('HASH(0x374a5d8)', 'Export dump to FTP failed at /usr/local/psa/admin/bin/plesk_a...', '', 'ARRAY(0x3351540)') called at /usr/local/psa/PMM/agents/shared/Error.pm line 416
Error::subs::try('CODE(0x374a500)', 'HASH(0x374a5d8)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 1288
main::main() called at /usr/local/psa/admin/bin/plesk_agent_manager line 1290


== STDERR ====================
1+0 records in
1+0 records out
31457280 bytes (31 MB) copied, 0.0431236 s, 729 MB/s
Runtime error: Export dump to FTP failed at /usr/local/psa/admin/bin/plesk_agent_manager line 724.
at /usr/local/psa/admin/bin/plesk_agent_manager line 724
main::perform('verbose', 4, 'owner-type', 'reseller', 'split-size', undef, 'session-path', '/usr/local/psa/PMM/sessions/2013-11-20-113722.40', 'description', ...) called at /usr/local/psa/admin/bin/plesk_agent_manager line 1279
main::__ANON__() called at /usr/local/psa/PMM/agents/shared/Error.pm line 398
eval {...} called at /usr/local/psa/PMM/agents/shared/Error.pm line 397
Error::subs::try('CODE(0x374a500)', 'HASH(0x374a5d8)') called at /usr/local/psa/admin/bin/plesk_agent_manager line 1288
main::main() called at /usr/local/psa/admin/bin/plesk_agent_manager line 1290.


==============================

Error 2:

The dump have been made successfully but can not be imported to FTP due to errors.
The dump 'backup_info_<timestamp>.xml' have been leaved at repository. Please export it manually

Error 3:

Can't upload file '/usr/local/psa/PMM/tmp/backup7WwhZ3/backup_info_<timestamp>.xml.tar' to ftp. Error code: 1

Cause

The status of FTP uploading can be checked in the same directory as the problem was reported, in the migration.result file. For example:

grep 'FTP ERROR' /usr/local/psa/PMM/sessions/2013-11-20-113722.40/migration.result
<description>FTP ERROR: Net::FTP: connect: Connection refused</description>

In the case above, the FTP server refused the connection.

Resolution

  1. Make sure that the FTP repository server is up and running during the creation of the backup.
  2. Check that the firewall allows port 21 ( iptables -L -n ).
  3. Make sure the file /etc/hosts.deny (TCPD wrappers) does not block access to port 21 for your FTP host.
  4. Connect from the Plesk server to the FTP server with your FTP user credentials and try to upload the backup manually.

    # ftp user@ftp.example.com

    ftp> lpwd

    ftp> cd pub

    ftp> put backup.tgz

    ftp> bye

Have more questions? Submit a request
Please sign in to leave a comment.