I'm trying to move a repository from tarmk to mongodb, and am using
the oak-run restore command, but am getting an exception;

spazzo:oak-run torgeir$ java -jar ./target/oak-run-1.2.1.jar restore
mongodb://localhost/oak ~/oak-repository-backup-20150427a

Apache Jackrabbit Oak 1.2.1
Exception in thread "main" java.lang.IllegalArgumentException: builder
must be a org.apache.jackrabbit.oak.plugins.document.DocumentRootBuilder
at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.asDocumentRootBuilder(DocumentNodeStore.java:2232)
at 
org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.merge(DocumentNodeStore.java:1490)
[...]

Looking at the mailing list it might be due to OAK-2049. I've tried
running the node count script in oak console to find the offending
node, but it detects no errors.

http://oak-dev.jackrabbit.apache.narkive.com/KVUViR6K/cannot-backup-and-restore-aem-tar-repository

Are there any other things I need to fix in the repository? I've run
the check, compact and then backup commands on the repository prior to
trying to restore it to mongodb.

-- 
-Tor

Reply via email to