New Confluence Migrator Pro (Toolkit) Memory warning - Authorization error

Hello,
this is a big day for me, as I am finishing my internship contract at the end of this month and might not have soon a new opportunity to test the features provided in the context of a 10 days trial for the Confluence Migration Toolkit!

The server : it is a Debian server with XJetty running the installation, along with PostgreSQL.
This is the test install XWiki version 16.8.0, with extensions all up to date, and Confluence Migration Toolkit just installed right now.

Considering only one space with less than 30 pages can be tested, I have exported one colleagues space with very few pages. One of these pages, a test page, has several macros usually not supported by default, but listed among the ones supported either with Pro Macros or as a bridge for Confluence migration.

So I start Confluence Migrator Pro from the upper left menu, and the first thing I see in the 1 - prerequisites menus, is that I should setup memory.

The link provided, https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Performances/#HMemory talks only about Catalina, whereas we are using Jetty, now.

I have an /etc/environment file with this in it:

XWIKI_OPTS=-Xmx4096m

and lots of memory:

               total        used        free      
Mem:            31Gi       2.8Gi        24Gi

What should I do?

thank you for your insights!

1 Like

I tried this in /etc/environment:

XWIKI_OPTS="-Xmx16g -Xms8g"

and rebooted the virtual server, now the message states completed. I guess it is happy…

1 Like

Hi @jmarkoll !!!

You should definitely write in the documentation topic if you feel the documentation is incomplete/confusing. While progress may be slow, it still helps to have everything centralized.

I’m happy you got everything working tho!

Good luck with the rest of your internship! Hopefully we’ll still see you around the forum even after it ends :wink:

1 Like

Hello again,

yes I might come once a while. :slight_smile:

1 Like

Hi,

new issue, I feel like I should report. After taking time to re-discover each extra option in Confluence Migrator Pro, I go to hit the Save and view red button, but this is what happened:
Bummer-!-XWiki

So I start a new window clicking on the link in the message, and again the program is not happy with the memory setup (although it hasn’t changed since a moment ago when it stated it was Completed

I redo the custom setup, hit the Save and View, same thing happens. I do Save same thing.

The file is located under /var/lib/xwiki/data, so I also tried changing directory for the home user, and changed ownership to match the user name, same thing.

I can’t test the tool. Any idea?

I would like to up this question with an additional information about importing spaces :
I have been able to import as many spaces and as large as needed, using the Filter Streams Converter tool, without issue.
This is why I can’t fathom what is wrong with Confluence Migrator Pro ?
Is it possible it could have something to do with this issue? Migrations restart when an exception is thrown in the Confluence Migrator Pro code · Issue #101 · xwikisas/application-confluence-migrator-pro · GitHub

The XWiki where I tested it is the version 16.8.0.

Hi @jmarkoll,

I believe this dialog is not specific to Confluence Migrator Pro. It is likely related to CSRF issues, that can happen if you load a page and then wait for a long time, and then try to save.

You need to make sure you are logged as admin, then create a new migration, set your parameters and save without waiting too much.

I don’t believe anything you are mentioning is related to Migrations restart when an exception is thrown in the Confluence Migrator Pro code · Issue #101 · xwikisas/application-confluence-migrator-pro · GitHub, this one is very specific and prevents XWiki from starting.

Note that Confluence Migrator Pro is edited by XWiki SAS which provides support for it. It is not a community / contrib extension. As such, the public community forums are probably not the best place to look for help for it. I kindly suggest you to reach XWiki SAS to get help on the Confluence Migrator Pro as they might be in a better situation to help you on this software.

Hello @rjakse

The second window I opened was a faster one : I already had all the options set up in the previous one and I just had to do the same and copy/paste the file location, but while I have completed the page much faster before trying to save the choices, the result was the same.

When I use the Filter Streams Converter tool I don’t meet with anything like that, even if I take the time to read the comment for each field to fill.

I think I need to find the right way to watch the logs while testing : how can I do that while using the Xjetty packages?

What about the message related to memory? Using XJetty I have an /etc/environment file with this in it:
XWIKI_OPTS="-Xmx16g -Xms8g"

and in the previous step of the test, changing it seemed to have made a difference, as the first line prerequisites had changed with the status Completed instead of Non completed.

Should I add more information in the XWIKI_OPTS= line? If so, what would be relevant?

(I can’t ask XWiki SAS, because I am testing the tool in Trial mode, the licence has not yet been bought).

New result!

I tried again in our XWiki test 16.8.0, after upgrading Confluence XML from version 9.55.0 to 9.56.0.

I have ignored the warning related to memory, as it made no sense to me, and retried importing a small space using Confluence Migration Toolkit in trial mode.

This time it worked. I am not going to see the macros contents that the log says were successfully imported.