- Plesk Onyx for Linux
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
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
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.
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 ).