Filter streams Converter > Confluence XML > FileNotFoundException

Hi,
we’re currently evaluating the migration process from our Confluence 6.15.4 server instance to XWiki and encounter micellanous errors when trying to import a confluence site backup (ca. 1.5GB / instance with 51 spaces).

Inititially we got a “Failed to analyze the package index” error which seems to be fixed using the Confluence XML cleaner c.f.: Confluence migration illegal character code 11

But now we got a “No space left on device” / “FileNotFoundException” during import.

log.xml.log (10.2 KB)

  <level>ERROR</level>
  <timeStamp>1739272554489</timeStamp>
  <message>Failed to read package</message>
  <throwable class="org.xwiki.filter.FilterException">
    <detailMessage>Failed to analyze the package index</detailMessage>
    <cause class="org.apache.commons.configuration2.ex.ConfigurationException">
      <detailMessage>Unable to save to file /usr/local/tomcat/work/Catalina/localhost/ROOT/xwiki-temp/confluencexml-tree2247449754262436536/objects/111076159/properties.properties</detailMessage>
      <cause class="java.io.FileNotFoundException">
        <detailMessage>/usr/local/tomcat/work/Catalina/localhost/ROOT/xwiki-temp/confluencexml-tree2247449754262436536/objects/111076159/properties.properties (No space left on device)</detailMessage>
        <stackTrace>

The folder “111076159” mentioned in the exception seems not to exists at all:

“No space left on device”

root@d34b1717f6fd:/usr/local/tomcat/work/Catalina/localhost/ROOT/xwiki-temp/confluencexml-tree2247449754262436536/objects# df -h
Filesystem                         Size  Used Avail Use% Mounted on
overlay                             57G   13G   43G  23% /
tmpfs                               64M     0   64M   0% /dev
shm                                 64M     0   64M   0% /dev/shm
/dev/mapper/ubuntu--vg-ubuntu--lv   57G   13G   43G  23% /certs.sh
tmpfs                              7.8G     0  7.8G   0% /proc/acpi
tmpfs                              7.8G     0  7.8G   0% /proc/scsi
tmpfs                              7.8G     0  7.8G   0% /sys/firmware

This is your problem, actually.

The first thing the Confluence filter does is unpacking and analyzing the content of the zip package, and you need the disk space to do that.

1 Like

In the meantime I figured out, that the environment run out of INodes, due to the number of folders/files created in:
/usr/local/tomcat/work/Catalina/localhost/ROOT/xwiki-temp/confluencexml-tree4935871224510322188/objects
When testing the same import locally on my Windows computer in a XWiki Windows test instance, I see, that more than 3.000.000 folders (each containing one properties file) are created below “objects” during import…