NullPointerException thrown during External Restore
Results 1 to 5 of 5

Thread: NullPointerException thrown during External Restore

  1. #1
    TFG
    TFG is offline
    Active Member
    Join Date
    Nov 2012
    Posts
    3

    NullPointerException thrown during External Restore

    Hi,

    We are experiencing Java crashing out during an external restore that is triggered from the Zimbra 8.0 UI. The email says:

    Code:
    This is an automated notification from ZxBackup about External Restore.
    
    Operation External Restore failed.
    
    Operation Id: df065e38-8046-4c7b-91eb-7aa18ff8297b
    Operation Host: *********
    
    - exception -
    [ExternalRestore] Unknown Exception
           at com.zextras.op.backup.ZEExternalRestoreOperation.restoreItemsFromExternal ( ZEExternalRestoreOperation.java:800 )
           at com.zextras.op.backup.ZEExternalRestoreOperation.doOperation ( ZEExternalRestoreOperation.java:598 )
           at com.zextras.op.ZEOperation.exec ( ZEOperation.java:593 )
           at com.zextras.backup.ZEBackupThread.execOperation ( ZEBackupThread.java:197 )
           at com.zextras.backup.ZEBackupThread.run ( ZEBackupThread.java:107 )
    Caused by: java.lang.NullPointerException
           at com.zextras.backup.ZEBAccount.itemList ( ZEBAccount.java:200 )
           at com.zextras.backup.ZEBAccount.itemList ( ZEBAccount.java:183 )
           at com.zextras.op.backup.ZEExternalRestoreOperation.restoreItemsFromExternal ( ZEExternalRestoreOperation.java:695 )
           at com.zextras.op.backup.ZEExternalRestoreOperation.doOperation ( ZEExternalRestoreOperation.java:598 )
           at com.zextras.op.ZEOperation.exec ( ZEOperation.java:593 )
           at com.zextras.backup.ZEBackupThread.execOperation ( ZEBackupThread.java:197 )
           at com.zextras.backup.ZEBackupThread.run ( ZEBackupThread.java:107 )
    Some background information:

    - We are trying to migrate a Zimbra 6.0.7 server on Ubuntu 8.04 to a Zimbra 8.0 server on Ubuntu 12.04. They are both the open source versions of Zimbra with the Zextras trial installed on both machines. The Zextras version is 1.6.2 on both machines.
    - The initial full backup on the 6.0.7 server was performed according to the instructions and worked fine. The backups are made to a network share and use 60G of disk space.
    - The initial full restore to 8.0 also worked fine, but it took 15 hours. Due to this time frame, we have to perform another incremental backup and restore to get the new emails.
    - Multiple incremental backups have worked fine but any attempt at restoring now gives the above error after a running for a few minutes.

    Are you able to assist in solving this?

    Thanks.

  2. #2
    ZeXtras Ex-Employee
    Join Date
    Oct 2012
    Location
    Vicenza
    Posts
    14
    Hello TFG, welcome to our forums!


    The problem seems to lie in the backupped data.
    In particular, one of the items of an account can't be read.


    Are you sure that:
    1 - Every account's "items" folder (in the network share under accounts/[account_id]/items/) only contains other folders?
    2 - All of those folders are readable by the zimbra user?


    Thanks for your feedback,
    simon
    Last edited by Cine; 11-07-2012 at 10:48 AM.

  3. #3
    TFG
    TFG is offline
    Active Member
    Join Date
    Nov 2012
    Posts
    3
    Hi Simon,

    To answer your questions:

    1) I have run this bash command:

    for DIR in /opt/zimbra/backup/zextras/accounts/*; do find $DIR/items -maxdepth 1 -type f; done

    It returned nothing. Using -type d instead of -type f returned a ton of folders, as expected.

    2) All of the folders and files under /opt/zimbra/backup/zextras/accounts are owned by the zimbra user and zimbra group. They have either chmod 777 or 640 permissions.

    Is there some way to get extra debugging information out of the restore process?

    -- Mark

  4. #4
    ZeXtras Ex-Employee
    Join Date
    Oct 2012
    Location
    Vicenza
    Posts
    14
    Hi TFG.
    Thanks for your answers.
    Just one more thing: did you run the find command you mentioned on the source server?

    And another thing: be aware that the /opt/zimbra/backup/zextras/ folder is usually the default backup path and it shouldn't be used as the import path. You should have mounted the source server backup directory on, for example, /opt/zimbra/backup/import/ on the destination server.

    Have a nice day!
    simon

  5. #5
    TFG
    TFG is offline
    Active Member
    Join Date
    Nov 2012
    Posts
    3
    Hi,

    I have run it again without changing anything and it has worked this time.

    Thank you for your help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •