Errors during backup creation: The dump rotation is failed with code '151'

Created:

2016-12-20 10:10:51 UTC

Modified:

2017-08-08 13:16:43 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Errors during backup creation: The dump rotation is failed with code '151'

Applicable to:

  • Plesk Onyx for Linux

Symptoms

  • An error occurs during scheduled back up to FTP server:
    Unable to rotate dump: The dump rotation is failed with code '151' at /opt/psa/admin/bin/plesk_agent_manager line 1224.
  • The following errors are displayed in /opt/psa/PMM/sessions/<session_timestamp>/migration.log:
    INFO: ArchiveStreamReader::GetNextTarEntry. Error 2. Unable to read expected size. Readed 0, expected 512 (TAR_BLOCK_SIZE)
    INFO: Unable to read first entry from archive.
    INFO: RepositoryError: Repository error: file backup_name6.tar not exists [./repository.cpp:570] virtual void plesk::tRepository::DeletePackedBackup(const string&)
    INFO: pmm-ras finished. Exit code: 151

Cause

Backups for all domains on the server are set up to the same FTP directory. Every domain should have its own directory on the FTP server to avoid name collisions.

Error 151 means that dump file has not been found. It happens on rotation stage during listing existing dumps on FTP and when Plesk initiating dump deletion it already does not exist.

Resolution

Create separate folder on FTP server for each domain and edit corresponding domain FTP backup storage settings to add folder path ( Domains > select the domain > Backup Manager > FTP Storage Settings > Directory for backup files storage ).

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