Converting Docuwiki to Confluence
Asked by Matthew Oney:

We just purchased Confluence but it's going to be awhile until we actually have it to use. In the meantime, we have docuwiki which I actually like too but I don't want to add a bunch of stuff to docuwiki that I won't be able to move later.

I found these tools...

<https://migrations.atlassian.net/wiki/spaces/UWC/pages/1015863/UWC+User+Documentation>

<https://github.com/dmitrii-ageev/dokuwiki-to-confluence>

but has anyone used them lately, in the past year or so? Is there an easy way to get the information from docuwiki into confluence? I'd appreciate any advice or recommendations.

Thanks!


Answers:
author: Matthew Oney
body: Wow... yeah, not finding a real easy answer for this, certainly not as simple as I'd hoped.


author: Nic Brough -Adaptavist-
body: I'm having some luck, and challenges with use UWC to migrate an old MediaWiki into confluence, so yes, people are still using these tools.

comments: author: Gonchik Tsymzhitov
body: UWC need to be updated.

most of refactored forkes persist the bugs


author: Darryl Lee
body: Sorry, this is a slight necropost, but yeah, no joke [@Gonchik Tsymzhitov](/t5/user/viewprofilepage/user-id/726117) and [@nic](/t5/user/viewprofilepage/user-id/4208229) about UWC needing an update and having challenges!

I'm trying to migrate a MediaWiki site over to Confluence and honestly it has been "a blast from the past" (alternately "a stroll through memory lane" or maybe "a buried memory that should have stayed buried"?)

I had to install Confluence 4.3.7 (released in 2013!) because that's the version last "certified" to work with UWC (wow, how is this still around? <https://marketplace.atlassian.com/archive/14575>).

\[SIDENOTE: Confluence 4.3.7 does NOT like the Brave browser. Login kept failing till I switched to good-old Chrome. Confluence 4.3.7 does also not like the Microsoft Edge browser. I could log in, but then certain drop-down navs failed to work. On that machine, I reverted to good old Internet Explorer, which was probably last updated around the same time!\]

\[ANOTHER SIDENOTE: It's quite a trip seeing (and vaguely remembering) this old version of Confluence. It's honestly \*not that different\* from current iterations of both cloud and server. The more things change, the more they stay the same.\]

What's interesting about the conversion that's currently underway is that "time to convert" each page is getting progressively slower. I'm fearing that everything is stored in memory?

From the kickoff, pages were converting in double-digit milliseconds. Now it's 4000+ms. Last night it ran for 3 hours before eventually throwing an OutOfMemoryError. By that time, time to convert was 34797ms.

That was running with the default memory size of 256m. On my retry, I've doubled that to 512m, and it's been running for almost 4 hours. Fingers crossed it will complete tonight. Most recent time to convert is 57137ms. Yikes. We're only up to the letter H. (It runs in alphanumeric order - we started with A.)

++**NOTES:**++

I followed great guide here:

<https://confluence.panio.info/display/PUBL/HOW+to+import+Mediawiki+into+Confluence+using+Mediawiki+XML+dump+and+UWC>

I guess if I read more carefully I would have seen in this other great guide that I could have tried this against Confluence 6.x:

<https://comtronic.com.au/how-to-migrate-pages-from-mediawiki-to-confluence/>

Well, perhaps I'll try just importing straight to 7.13.0 tomorrow :-}


author: Gonchik Tsymzhitov
body: You can checkout that one

<https://github.com/agapoff/WikiLumper>

comments: author: GrandmaBetty
body: I tried that but I always get the same annoying error, not matter what I try:

***Error while connecting to Confluence at ./migrate.pl line 43.***   
***404 Not Found***

I have set up Confluence Server 4.3.7 locally and have enabled *remote API* control.

Any idea what's wrong here?

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/163731i94783A56C447AB67/image-size/large?v=v2&px=999 "Capture.PNG")![Capture2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/163730i4524050F1FD74C1F/image-size/large?v=v2&px=999 "Capture2.PNG")


author: Nathaniel Middleton
body: Reviving this old thread as it seems to be a useful thread to post this to.  
For anyone that stumbles into 404 errors / errors in general with wikilumper:  

space key is case sensitive  
debugging with strace was useful to find this error  
wireshark capture was good (non-tls) in grabbing the URI being used against confluence- see if there are issues there  
pages must be globally unique (this is not the case for dokuwiki... so renaming pages is a must)  
some page syntax causes wikilumper to break... so some edits to pages will be necessary.  
Note: testing against an on-prem confluence as the cloud editions api changed and seems to have broken other migration tools


Tags: jira-software

jira-software-server

server