Issue with Importing Backup in XWiki

Hi,
I’m encountering an issue where my XWiki crashes when I attempt to import a backup from one environment to another. Could someone please advise on how to resolve this issue?

Thanks in advance!

Just fix the crash!

I’m kidding but you have given so little detail that it’s the only answer I could find :slight_smile:

So let’s start by WDYM by crash? What version of XWiki?

Version of xwiki is XWiki.16.4.0. This is what happened after I tried to import the backup.

Hello, I think it means several things:

  1. that the user with which you did the import doesn’t have the required rights to execute the content of some pages you imported
  2. that you imported not only content pages but also internal technical pages. While this is possible and can be ok, using a XAR to perform a backup/restore is not recommended, see https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Backup

Re 2), imagine that you imported your XAR in a more recent version of XWiki. You’re going to overwrite internal pages of XWiki that were more recent than what’s in your old XAR and that’s going to make some features fail.

Re 1), you can probably fix this by giving more rights to that user (script right, and even programming rights if needed).