1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Server restore fails

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Mshaker, Oct 21, 2010.

  1. Mshaker

    Mshaker Basic Pleskian

    18
    85%
    Joined:
    Oct 21, 2010
    Messages:
    75
    Likes Received:
    0
    I'm trying to restore a full server backup for plesk 9.5.2 using this command:

    /usr/local/psa/bin/pleskbackup server -s -v

    The backup files created verify that they are good when I run /usr/local/psa/bin/pleskrestore --check-backup /var/lib/psa/dumps/backup_info_1010210319.xml

    Now when I try to restore them on the new server server running plesk 9.5.2 the backup manager throws an exception:

    /usr/local/psa/bin/pleskrestore --restore /var/lib/psa/dumps/backup_info_1010210319.xml -level server -license -verbose

    The error in pmmcli.log
    Code:
    == STDERR ====================
    
    4613: 2010-10-21 04:21:24,194 DEBUG Prepare to call guids fixer
    4613: 2010-10-21 04:21:24,197 INFO Executing <subprocess[4615] '/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/backup/Conflicts/Runner.php --fix-guids --restore-specification=/usr/local/psa/
    PMM/rsessions/20101021042123427/restore.xml --restore-specification-out=/usr/local/psa/PMM/rsessions/20101021042123427/restore.xml.tmp --session-path=/usr/local/psa/PMM/rsessions/20101021042123427'>
    4613: 2010-10-21 04:21:24,497 INFO Subprocess raised ExecuteException: Subprocess <subprocess[4615] '/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/backup/Conflicts/Runner.php --fix-guids --
    restore-specification=/usr/local/psa/PMM/rsessions/20101021042123427/restore.xml --restore-specification-out=/usr/local/psa/PMM/rsessions/20101021042123427/restore.xml.tmp --session-path=/usr/local/psa/PMM/r
    sessions/20101021042123427'> was finished with exit code 254
    == STDOUT ====================
    
    == STDERR ====================
    
    4613: 2010-10-21 04:21:24,787 DEBUG Prepare to detect conflicts
    4613: 2010-10-21 04:21:24,790 INFO Executing <subprocess[4618] '/usr/bin/perl /usr/local/psa/admin/bin/plesk_agent_manager server -c --migration-mode --session-path=/usr/local/psa/PMM/rsessions/2010102104212
    3427'>
    4613: 2010-10-21 04:21:25,360 INFO Execution of <subprocess[4618] '/usr/bin/perl /usr/local/psa/admin/bin/plesk_agent_manager server -c --migration-mode --session-path=/usr/local/psa/PMM/rsessions/2010102104
    2123427'> finished successfully.
    4613: 2010-10-21 04:21:25,363 INFO Executing <subprocess[4624] '/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/backup/Conflicts/Runner.php --detect-conflicts --plesk-dump=/usr/local/psa/PMM/
    rsessions/20101021042123427/dump.xml --owner-guid=64cd8840-8ea0-4f3f-b71d-acd9a1a91506 --restore-specification=/usr/local/psa/PMM/rsessions/20101021042123427/restore.xml --conflicts-description-out=/usr/loca
    l/psa/PMM/rsessions/20101021042123427/conflict_description --session-path=/usr/local/psa/PMM/rsessions/20101021042123427'>
    4613: 2010-10-21 04:21:25,864 INFO Subprocess raised ExecuteException: Subprocess <subprocess[4624] '/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/backup/Conflicts/Runner.php --detect-confl
    icts --plesk-dump=/usr/local/psa/PMM/rsessions/20101021042123427/dump.xml --owner-guid=64cd8840-8ea0-4f3f-b71d-acd9a1a91506 --restore-specification=/usr/local/psa/PMM/rsessions/20101021042123427/restore.xml 
    --conflicts-description-out=/usr/local/psa/PMM/rsessions/20101021042123427/conflict_description --session-path=/usr/local/psa/PMM/rsessions/20101021042123427'> was finished with exit code 255
    == STDOUT ====================
    
    == STDERR ====================
    PHP Fatal error:  Call to a member function getName() on a non-object in /usr/local/psa/admin/plib/backup/Conflicts/Detector/ConflictDetector.php on line 672
    
    4613: 2010-10-21 04:21:25,866 CRITICAL PMMUtility exception: 
    Subprocess <subprocess[4624] '/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/backup/Conflicts/Runner.php --detect-conflicts --plesk-dump=/usr/local/psa/PMM/rsessions/20101021042123427/dump.x
    ml --owner-guid=64cd8840-8ea0-4f3f-b71d-acd9a1a91506 --restore-specification=/usr/local/psa/PMM/rsessions/20101021042123427/restore.xml --conflicts-description-out=/usr/local/psa/PMM/rsessions/20101021042123
    427/conflict_description --session-path=/usr/local/psa/PMM/rsessions/20101021042123427'> was finished with exit code 255
    == STDOUT ====================
    
    == STDERR ====================
    PHP Fatal error:  Call to a member function getName() on a non-object in /usr/local/psa/admin/plib/backup/Conflicts/Detector/ConflictDetector.php on line 672
    
    Traceback (most recent call last):
      File "/usr/local/psa/admin/share/pmmcli/pmmcli.py", line 1887, in main
        data_action_response, errcode_response, error_message = actions.get(sys.argv[1][2:])(parameters)
      File "/usr/local/psa/admin/share/pmmcli/pmmcli.py", line 1732, in restore
        return ActionRunner(RestoreAction, restore_task_specification, parameters).doActivity()
      File "/usr/local/psa/admin/share/pmmcli/pmmcli.py", line 75, in doActivity
        result = self.processor.doActivity()
      File "/usr/local/psa/admin/share/pmmcli/pmmcli.py", line 593, in doActivity
        if session.detectConflicts(plesk_actual_dump):
      File "/usr/local/psa/admin/share/pmmcli/pmmcli_session.py", line 308, in detectConflicts
        return self.__doDetectConflicts(plesk_actual_dump)
      File "/usr/local/psa/admin/share/pmmcli/pmmcli_session.py", line 303, in __doDetectConflicts
        pmm_conflict_detector.ConflictDetector.run(owner_guid,plesk_actual_dump,self.__restore_specification,self.__conflict_description,self.__session_path)
      File "/usr/local/psa/admin/share/pmmcli/pmm_conflict_detector.py", line 90, in run
        raise PMMUtilityException('Conflict Detector', x)
    PMMUtilityException:  was finished with exit code 255
    
    4613: 2010-10-21 04:21:25,867 INFO Outgoing packet:
    <?xml version="1.0" encoding="UTF-8"?>
    <response>
        <errcode>1000</errcode>
        <errmsg>pmm utility 'Conflict Detector' raised an exception. Error code is: 255
    See pmmcli.log to find out detailed information on this</errmsg>
    </response>
    
    Please advise ?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,546
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    The problem probably caused by this configuration on the source server:
    IP address was added to admin's IP pool as exclusive and also the same IP address was added to reseller's IP pool as shared. Check it.
     
  3. Mshaker

    Mshaker Basic Pleskian

    18
    85%
    Joined:
    Oct 21, 2010
    Messages:
    75
    Likes Received:
    0
    Yep you were right. Some of the IP addresses in use were not assigned to the reseller. (Not sure how that happened.. when you convert a client to reseller then assign a new owner for the client shouldn't that automatically add any IP addresses of the client to the resellers IP pool)?

    Anyway thanks again for the quick response!
     
  4. Michael MacDonald

    Michael MacDonald Basic Pleskian

    21
    57%
    Joined:
    Jan 17, 2010
    Messages:
    51
    Likes Received:
    0
    I have the same problem. Many conflicts. Not sure how to resolve them. I am not even sure what sections of the file to report here for review/suggestion. Here is the first section of errors.

    Please advise!

    == STDERR ====================

    11969: 2011-03-21 08:57:47,928 DEBUG Import file operation ended with errcode=111. Filename is backup_info_1010300005.xml
    11969: 2011-03-21 08:57:48,213 INFO Executing <subprocess[11992] '/usr/local/psa/admin/bin/pmm-ras --get-dump-info --dump-storage=/var/lib/psa/dumps/ --dump-file-specification=backup_info_1010300005.xml --check-sign --session-path=/usr/local/psa/PMM/logs'>
    11969: 2011-03-21 08:57:49,730 INFO Execution of <subprocess[11992] '/usr/local/psa/admin/bin/pmm-ras --get-dump-info --dump-storage=/var/lib/psa/dumps/ --dump-file-specification=backup_info_1010300005.xml --check-sign --session-path=/usr/local/psa/PMM/logs'> finished successfully.
    11969: 2011-03-21 08:57:49,735 DEBUG Check dump operation ended.
    11969: 2011-03-21 08:57:49,737 DEBUG <pmmcli.ImportFileAsDumpAction object at 0xb7e8a60c>: response
    11969: 2011-03-21 08:57:49,757 INFO Outgoing packet:
    <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <errcode>111</errcode>
    <errmsg>Dump already exists in repository</errmsg>
    <data>
    <dump description="" owner-guid="00000000-0000-0000-0000-000000000000" name="backup_info_1010300005.xml" owner-type="server" creation-date="1010300005" fullname="backup_info_1010300005.xml" size="10036827364">
    <dump-status dump-status="SIGN-ERROR">
    </dump-status>
    </dump>
    </data>
    </response>

    12011: 2011-03-21 08:57:53,161 DEBUG --> <pmmcli.CheckDumpAction object at 0xb7e8b60c>
    12011: 2011-03-21 08:57:53,162 INFO stdin: <dump-specification><dumps-storage-credentials storage-type="local"><root-dir>/var/lib/psa/dumps</root-dir></dumps-storage-credentials><name-of-info-xml-file>backup_info_1010300005.xml</name-of-info-xml-file></dump-specification>
    12011: 2011-03-21 08:57:53,205 INFO Packet succesfully validated.
    12011: 2011-03-21 08:57:53,215 DEBUG <pmmcli.ActionRunner object at 0xb7e83e4c>: doActivity
    12011: 2011-03-21 08:57:53,249 INFO Executing <subprocess[12012] '/usr/local/psa/admin/bin/pmm-ras --get-dump-info --dump-storage=/var/lib/psa/dumps/ --dump-file-specification=backup_info_1010300005.xml --check-sign --session-path=/usr/local/psa/PMM/logs'>
    12011: 2011-03-21 08:57:53,419 INFO Execution of <subprocess[12012] '/usr/local/psa/admin/bin/pmm-ras --get-dump-info --dump-storage=/var/lib/psa/dumps/ --dump-file-specification=backup_info_1010300005.xml --check-sign --session-path=/usr/local/psa/PMM/logs'> finished successfully.
    12011: 2011-03-21 08:57:53,420 DEBUG <pmmcli.CheckDumpAction object at 0xb7e8b60c>: response
    12011: 2011-03-21 08:57:53,424 INFO Outgoing packet:
    <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <errcode>0</errcode>
    <data>
    <check-dump-result>
    <dump-status dump-status="SIGN-ERROR">
    </dump-status>
    </check-dump-result>
    </data>
    </response>

    12013: 2011-03-21 08:57:54,648 DEBUG --> <pmmcli.RestoreAction object at 0xb7f5660c>
    12013: 2011-03-21 08:57:54,649 INFO stdin: <restore-task-description owner-guid="72e52acd-2bee-4a9d-98f4-ec94bd55bf9e" owner-type="server"><source><dump-specification><dumps-storage-credentials storage-type="local"><root-dir>/var/lib/psa/dumps</root-dir></dumps-storage-credentials><name-of-info-xml-file>backup_info_1010300005.xml</name-of-info-xml-file></dump-specification></source><objects><selected><node name="client" children-processing-type="copy"><context><path>/admin/clients</path></context></node></selected></objects><ignore-errors><ignore-error type="sign"/></ignore-errors><misc verbose-level="3" suspend="false"/></restore-task-description>
    12013: 2011-03-21 08:57:54,666 INFO Packet succesfully validated.
    12013: 2011-03-21 08:57:54,670 DEBUG <pmmcli.ActionRunner object at 0xb7f4ee4c>: doActivity
    12013: 2011-03-21 08:57:54,682 INFO Create restore session 20110321085754921 started
    12013: 2011-03-21 08:57:54,792 INFO Initialized restore session 20110321085754921
    12013: 2011-03-21 08:58:00,389 INFO Create restore session 20110321085754921 done
    12013: 2011-03-21 08:58:00,391 DEBUG Prepare to call sign checker
    12013: 2011-03-21 08:58:00,452 INFO Executing <subprocess[12019] '/usr/local/psa/admin/sbin/backup_sign verify /usr/local/psa/PMM/rsessions/20110321085754921/info.xml'>
    12013: 2011-03-21 08:58:01,832 INFO Subprocess raised ExecuteException: Subprocess <subprocess[12019] '/usr/local/psa/admin/sbin/backup_sign verify /usr/local/psa/PMM/rsessions/20110321085754921/info.xml'> was finished with exit code 2
    == STDOUT ====================
     
  5. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,546
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Did you check it?
     
  6. Michael MacDonald

    Michael MacDonald Basic Pleskian

    21
    57%
    Joined:
    Jan 17, 2010
    Messages:
    51
    Likes Received:
    0
    I am not 100% sure what that means.
     
Loading...