CRX2OAK mongodb to tarmk
We want to use the migrate tool to export data from AEM 6.0 with MongoDB to an AEM 6.3 instances on another site.
For that we need to export all data from the MongoDB, transfer the data to the new site and import in the new instances.
As the size is exceeding the 4GB we cannot use the package manager in crxde. In the past we also used the vlt, currently both instances are not able to communicate with each other. So we are using the crx2oak migration tool from the author server and the following command(connection string as set in AEM used):
java -jar crx2oak-1.8.6-all-in-one.jar "mongodb://CN\=Servername Author,OU\=OU NAME,O\=DOMAIN.LOCAL@PRIMARY server,Secondary server,Arbiter server/author?authMechanism\=MONGODB-X509&ssl\=true&replicaSet\=prod" /export/repository --include-path=/content/dam
and returns the following exception:
Exception in thread "main" java.lang.IllegalArgumentException: Password can not be null when the authentication mechanism is unspecified
at com.mongodb.MongoCredential.<init>(MongoCredential.java:286)
at com.mongodb.MongoCredential.createCredential(MongoCredential.java:142)
at com.mongodb.ConnectionString.createCredentials(ConnectionString.java:519)
at com.mongodb.ConnectionString.<init>(ConnectionString.java:311)
at com.mongodb.MongoClientURI.<init>(MongoClientURI.java:201)
at com.mongodb.MongoClientURI.<init>(MongoClientURI.java:183)
at org.apache.jackrabbit.oak.upgrade.cli.node.MongoFactory.<init>(MongoFactory.java:44)
at org.apache.jackrabbit.oak.upgrade.cli.parser.StoreType$5.createFactory(StoreType.java:114)
at org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments$StoreDescriptor.getFactory(StoreArguments.java:254)
at org.apache.jackrabbit.oak.upgrade.cli.parser.StoreArguments.srcUsesEmbeddedDatastore(StoreArguments.java:113)
at com.adobe.granite.crx2oak.oak.OakUtils.updateSecondaryHeavyOakTopics(OakUtils.java:60)
at com.adobe.granite.crx2oak.oak.OakUtils.updateAllOakTopics(OakUtils.java:41)
at com.adobe.granite.crx2oak.core.MigrationSpecGenerator.preprocess(MigrationSpecGenerator.java:48)
at com.adobe.granite.crx2oak.pipeline.InputAggregatingComponent.process(InputAggregatingComponent.java:38)
at com.adobe.granite.crx2oak.pipeline.Pipeline.run(Pipeline.java:103)
at com.adobe.granite.crx2oak.CRX2Oak.run(CRX2Oak.java:66)
at com.adobe.granite.crx2oak.CRX2Oak.main(CRX2Oak.java:51)
We are not using password authentication but certificates i guess we need to give the certificates as a parameter?
Unfortunately I couldn't identify the proper documentation on this for so far hoping somebody can direct me in the right direction.
Other suggestions are also welcome.