hallowelt / migrate-confluence

Tool to migrate content from Confluence export files into a MediaWiki compatible import source
GNU General Public License v3.0
35 stars 8 forks source link

Huge input lookup #91

Closed Alex-Allgood closed 6 months ago

Alex-Allgood commented 7 months ago

[root@wiki confluence]# migrate-confluence.phar analyze --src ./input/ --dest ./workspace/ Source: /tmp/confluence/input Destination: /tmp/confluence/workspace

Fetching file list ...done. PHP Warning: DOMDocument::load(): internal error: Huge input lookup in /tmp/confluence/input/entities.xml, line: 2042049 in phar:///usr/bin/migrate-confluence.phar/src/Analyzer/ConfluenceAnalyzer.php on line 168

Finding users

Finding namespaces

Finding pages

Finding attachments Done.

Is my space too big, or is there something that I can do to fix this? I have tested this tool on another space and it worked. I tried to carry on and ignore the warning, but It ended up not being able to find a directory.

[root@wiki confluence]# migrate-confluence extract --src input/ --dest workspace/ Source: /tmp/confluence/input Destination: /tmp/confluence/workspace

Fetching file list ...done. PHP Warning: DOMDocument::load(): internal error: Huge input lookup in /tmp/confluence/input/entities.xml, line: 2042049 in phar:///usr/bin/migrate-confluence.phar/src/Extractor/ConfluenceExtractor.php on line 35 Done. [root@wiki confluence]# migrate-confluence convert --src workspace/ --dest workspace/ Source: /tmp/confluence/workspace Destination: /tmp/confluence/workspace

Fetching file list ... In BatchFileProcessorBase.php line 102:

RecursiveDirectoryIterator::__construct(/tmp/confluence/workspace/content/raw): failed to open dir: No such file or directory

convert [--src SRC] [--dest [DEST]] [--config CONFIG]

Alex-Allgood commented 6 months ago

There was a permissions issue on the space and the tool ran properly after I cleaned that up.

Alex-Allgood commented 6 months ago

There was a permissions issue on the space and the tool ran properly after I cleaned that up.

revansx commented 4 months ago

@Alex-Allgood, hello. I'm having the same issue:

Fetching file list ... In BatchFileProcessorBase.php line 102:

RecursiveDirectoryIterator::__construct(/.../input/content/raw): Failed to open directory: No such file or directory

When you say that there was a permission issue with the space, do you mean a permissions issue with the Confluence space prior to exporting? or do you mean a permissions issue with the migration workspace? I'm trying to figure out if I need to ask my client to alter their Confluence system and re-export or if I just need to figure out something that needs to be done on the migrations input and workspace data. Can you say more about what you did to clean up the permissions issue on the space. Thank you!