Error on restore backup
Hello!
Recently I've tried to restore an account from WHM, the restoration process finished, but some of the folders were not restored at all.
The complete log after the restore can be found below
Any ideas what could cause this and how can I avoid it in the future?
/bin/gtar: ./public_html/XXX/: Cannot savedir: Too many levels of symbolic links
/bin/gtar: ./public_html/XXX: Cannot close: Bad file descriptor
/bin/gtar: ./public_html/wp-content/XX/XX/XX/: Cannot savedir: Too many levels of symbolic links
/bin/gtar: ./public_html/wp-content/XX/XX/XX: Cannot close: Bad file descriptor
/bin/gtar: ./public_html/wp-content/XX/XX/XX/: Cannot savedir: Too many levels of symbolic links
/bin/gtar: ./public_html/wp-content/XX/XX/XX: Cannot close: Bad file descriptor
/bin/gtar: ./public_html/wp-content/XX/XX/XX/: Cannot savedir: Too many levels of symbolic links
/bin/gtar: ./public_html/wp-content/XX/XX/XX: Cannot close: Bad file descriptor
/bin/gtar: Exiting with failure status due to previous errors
[2015-12-05 17:04:24 +0200] warn [backup_restore_manager] tar_reader_child_pid exited prematurely (signal: 0; status: 2) while working with target: /home/XXXXXXX, with arguments (--create --file - --no-wildcards-match-slash --exclude=mail/test.XXXXXXX.com --exclude=etc/test.XXXXXXX.com --exclude=mail/test.XXXXXXX.com/* --exclude=etc/test.XXXXXXX.com/* --exclude=public_html/img --exclude=public_html/img/* --exclude=mail/img.XXXXXXX.com --exclude=etc/img.XXXXXXX.com --exclude=mail/img.XXXXXXX.com/* --exclude=etc/img.XXXXXXX.com/* --exclude=public_html/camere --exclude=public_html/camere/* --exclude=mail/camere.XXXXXXX.com --exclude=etc/camere.XXXXXXX.com --exclude=mail/camere.XXXXXXX.com/* --exclude=etc/camere.XXXXXXX.com/* --exclude=etc/*.*/passwd* --exclude=etc/*.*/quota* --exclude=etc/*.*/shadow* --exclude=mail/* --sparse --blocking-factor 200 --directory /storage/2015-12-02/accounts/cpanelpkgrestore.TMP.work.tMozoLoBQc1l1v7b/unsafe_to_read_homedir/homedir -- .) at /usr/local/cpanel/Cpanel/SafeSync/UserDir.pm line 273.
Cpanel::SafeSync::UserDir::sync_to_userdir("source", "/storage/2015-12-02/accounts/cpanelpkgrestore.TMP.work.tMozoL"..., "target", "/home/XXXXXXX", "setuid", ARRAY(0x7e345a8), "exclude", ARRAY(0x721ed10), "wildcards_match_slash", ...) called at /usr/local/cpanel/Whostmgr/Transfers/Systems/Homedir.pm line 208
eval {...} called at /usr/local/cpanel/Whostmgr/Transfers/Systems/Homedir.pm line 207
Whostmgr::Transfers::Systems::Homedir::restricted_restore(Whostmgr::Transfers::Systems::Homedir=HASH(0x79c5128)) called at /usr/local/cpanel/Whostmgr/Transfers/Systems.pm line 116
Whostmgr::Transfers::Systems::restore(Whostmgr::Transfers::Systems::Homedir=HASH(0x79c5128)) called at /usr/local/cpanel/Whostmgr/Transfers/AccountRestoration.pm line 221
Whostmgr::Transfers::AccountRestoration::try {...} () called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 80
eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 71
Try::Tiny::try(CODE(0x7e13288), Try::Tiny::Catch=REF(0x7e22648)) called at /usr/local/cpanel/Whostmgr/Transfers/AccountRestoration.pm line 225
Whostmgr::Transfers::AccountRestoration::_call_one_restore_module_without_archive_prep_check(Whostmgr::Transfers::AccountRestoration=HASH(0x6ec2b68), "Homedir") called at /usr/local/cpanel/Whostmgr/Transfers/AccountRestoration.pm line 483
Whostmgr::Transfers::AccountRestoration::_call_one_restore_module_with_notices(Whostmgr::Transfers::AccountRestoration=HASH(0x6ec2b68), "Homedir") called at /usr/local/cpanel/Whostmgr/Transfers/AccountRestoration.pm line 455
Whostmgr::Transfers::AccountRestoration::_run_restore_system_module(Whostmgr::Transfers::AccountRestoration=HASH(0x6ec2b68), HASH(0x6ed2c10), HASH(0x6e94b18)) called at /usr/local/cpanel/Whostmgr/Transfers/AccountRestoration.pm line 436
Whostmgr::Transfers::AccountRestoration::_run_restore_modules(Whostmgr::Transfers::AccountRestoration=HASH(0x6ec2b68), HASH(0x6ed2c10)) called at /usr/local/cpanel/Whostmgr/Transfers/AccountRestoration.pm line 402
Whostmgr::Transfers::AccountRestoration::_restore_package(Whostmgr::Transfers::AccountRestoration=HASH(0x6ec2b68)) called at /usr/local/cpanel/Whostmgr/Transfers/AccountRestoration.pm line 91
eval {...} called at /usr/local/cpanel/Whostmgr/Transfers/AccountRestoration.pm line 91
Whostmgr::Transfers::AccountRestoration::restore_package(Whostmgr::Transfers::AccountRestoration=HASH(0x6ec2b68)) called at /usr/local/cpanel/Whostmgr/Backup/Restore.pm line 84
eval {...} called at /usr/local/cpanel/Whostmgr/Backup/Restore.pm line 84
Whostmgr::Backup::Restore::load_transfers_then_restorecpmove("ip", 0, "restorereseller", 1, "extractname", "cpmove-XXXXXXX", "restoremail", 0, "output_obj", ...) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Items/AccountBase.pm line 152
Whostmgr::Transfers::Session::Items::AccountBase::_restore_package(Whostmgr::Transfers::Session::Items::AccountLocal=HASH(0x6eabc70)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Item.pm line 272
Whostmgr::Transfers::Session::Item::__ANON__() called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 80
eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 71
Try::Tiny::try(CODE(0x6eb6b08), Try::Tiny::Catch=REF(0x6eb6460)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Item.pm line 301
Whostmgr::Transfers::Session::Item::exec_path(Whostmgr::Transfers::Session::Items::AccountLocal=HASH(0x6eabc70), ARRAY(0x6eb6538), ARRAY(0x6eb6b50)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Items/AccountBase.pm line 43
Whostmgr::Transfers::Session::Items::AccountBase::restore(Whostmgr::Transfers::Session::Items::AccountLocal=HASH(0x6eabc70)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 525
Whostmgr::Transfers::Session::Processor::__ANON__() called at /usr/local/cpanel/Whostmgr/Transfers/Session.pm line 1461
Whostmgr::Transfers::Session::__ANON__() called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 80
eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 71
Try::Tiny::try(CODE(0x6eb6280), Try::Tiny::Catch=REF(0x6eb0520)) called at /usr/local/cpanel/Whostmgr/Transfers/Session.pm line 1465
Whostmgr::Transfers::Session::exec_with_output_directed_to_fh(Whostmgr::Transfers::Session=HASH(0x6e41ce8), GLOB(0x6eb6148), CODE(0x6e593f0)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 528
Whostmgr::Transfers::Session::Processor::_process_dequeued_item(Whostmgr::Transfers::Session::Processor=HASH(0x6e3b688)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 432
Whostmgr::Transfers::Session::Processor::_process_items(Whostmgr::Transfers::Session::Processor=HASH(0x6e3b688)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 389
Whostmgr::Transfers::Session::Processor::__ANON__() called at /usr/local/cpanel/Cpanel/ForkAsync.pm line 36
eval {...} called at /usr/local/cpanel/Cpanel/ForkAsync.pm line 36
Cpanel::ForkAsync::do_in_child(CODE(0x6e59cc0)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 391
Whostmgr::Transfers::Session::Processor::_spawn_child(Whostmgr::Transfers::Session::Processor=HASH(0x6e3b688), undef, Whostmgr::Transfers::Session=HASH(0x6e41ce8)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 235
Whostmgr::Transfers::Session::Processor::_process_child(Whostmgr::Transfers::Session::Processor=HASH(0x6e3b688), Whostmgr::Transfers::Session=HASH(0x6e41ce8), 0) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 189
Whostmgr::Transfers::Session::Processor::_process_child_with_output_redirection(Whostmgr::Transfers::Session::Processor=HASH(0x6e3b688), Whostmgr::Transfers::Session=HASH(0x6e41ce8), 0) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 154
Whostmgr::Transfers::Session::Processor::__ANON__() called at /usr/local/cpanel/Cpanel/ForkAsync.pm line 36
eval {...} called at /usr/local/cpanel/Cpanel/ForkAsync.pm line 36
Cpanel::ForkAsync::do_in_child(CODE(0x6e3afc8)) called at /usr/local/cpanel/Whostmgr/Transfers/Session/Processor.pm line 156
Whostmgr::Transfers::Session::Processor::start(Whostmgr::Transfers::Session::Processor=HASH(0x6e3b688)) called at /usr/local/cpanel/Cpanel/Backup/RestoreQueue.pm line 229
Cpanel::Backup::RestoreQueue::Processor::__ANON__() called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 80
eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 71
Try::Tiny::try(CODE(0x6e17378), Try::Tiny::Catch=REF(0x6e758a0)) called at /usr/local/cpanel/Cpanel/Backup/RestoreQueue.pm line 238
Cpanel::Backup::RestoreQueue::Processor::restore_account(HASH(0x6de6168), Cpanel::LoggerAdapter=HASH(0x6c84470)) called at /usr/local/cpanel/Cpanel/Backup/RestoreQueue.pm line 109
Cpanel::Backup::RestoreQueue::Processor::__ANON__() called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 80
eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 71
Try::Tiny::try(CODE(0x6de5e98), Try::Tiny::Catch=REF(0x3f2bea0)) called at /usr/local/cpanel/Cpanel/Backup/RestoreQueue.pm line 113
Cpanel::Backup::RestoreQueue::Processor::process_task(Cpanel::Backup::RestoreQueue::Processor=HASH(0x6c84500), cPanel::TaskQueue::Task=HASH(0x6de60f0), Cpanel::LoggerAdapter=HASH(0x6c84470)) called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/cPanel/TaskQueue.pm line 582
eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/cPanel/TaskQueue.pm line 585
cPanel::TaskQueue::__ANON__() called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/cPanel/StateFile.pm line 238
eval {...} called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/cPanel/StateFile.pm line 238
cPanel::StateFile::Guard::call_unlocked(cPanel::StateFile::Guard=HASH(0x6e01f18), CODE(0x6de5a90)) called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/cPanel/TaskQueue.pm line 590
cPanel::TaskQueue::process_next_task(cPanel::TaskQueue=HASH(0x6cbb8e0)) called at /usr/local/cpanel/Cpanel/Backup/RestoreQueue.pm line 660
Cpanel::Backup::RestoreQueue::activate() called at bin/backup_restore_manager.pl line 222
The subprocess reported error number 2 when it ended.
Unable to copy home directory for user: XXXXXXX
-
/bin/gtar: ./public_html/wp-content/XX/XX/XX/: Cannot savedir: Too many levels of symbolic links /bin/gtar: ./public_html/wp-content/XX/XX/XX: Cannot close: Bad file descriptor
Hello :) Are you able to manually extract this archive and review the contents of this directory to see which symbolic links are created? Thank you.0 -
Hello Michael! Unfortunately it was a daily backup, retained only for 2 days, so it doesn't exists anymore :| Any ideas what can I check to avoid this situation in the future? Thank you. 0 -
You can review the contents of /home/$user/public_html/wp-content to see if symbolic links as referenced in the error output still exist for this account. Thank you. 0 -
I've done that, no symlinks found. :) I will try in the near future to clone the whole account and try a restore, to see if the error persists. If the situation will be the same, I will be prepared to "catch" all the info I can. Thank you for your time! 0
Please sign in to leave a comment.
Comments
4 comments