Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Error while Migrating the AEM6 to MongoDBMK

Avatar

Level 2

I am getting error while running the following command "java -jar crx2oak.jar [source CRX 2 repository] mongodb://remoteserver:27017/aem-author" 

the error is  : 

Exception in thread "main" java.net.UnknownHostException: remoteserver
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1246)
        at java.net.InetAddress.getAllByName(InetAddress.java:1162)
        at java.net.InetAddress.getAllByName(InetAddress.java:1098)
        at java.net.InetAddress.getByName(InetAddress.java:1048)
        at com.mongodb.ServerAddress.updateInetAddress(ServerAddress.java:204)
        at com.mongodb.ServerAddress.<init>(ServerAddress.java:73)
        at com.mongodb.ServerAddress.<init>(ServerAddress.java:46)
        at com.mongodb.Mongo.getMongoAuthorityFromURI(Mongo.java:623)
        at com.mongodb.Mongo.<init>(Mongo.java:318)
        at com.mongodb.MongoClient.<init>(MongoClient.java:269)
        at com.adobe.granite.crx2oak.CRX2Oak.crx2oak(CRX2Oak.java:160)
        at com.adobe.granite.crx2oak.CRX2Oak.main(CRX2Oak.java:118)

 

Thanks,

Pavan

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Pavan,

Try with this java -jar cq-quickstart-6.0.0.jar -r crx3,crx3mongo -Doak.mongo.uri=mongodb://remoteserver:27017/aem-author

Also refer[1] to migrate of MongoDB

[1]http://docs.adobe.com/docs/en/aem/6-0/deploy/upgrade.html

 

Thanks,

Lokesh

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

Hi Pavan,

Try with this java -jar cq-quickstart-6.0.0.jar -r crx3,crx3mongo -Doak.mongo.uri=mongodb://remoteserver:27017/aem-author

Also refer[1] to migrate of MongoDB

[1]http://docs.adobe.com/docs/en/aem/6-0/deploy/upgrade.html

 

Thanks,

Lokesh

Avatar

Level 10

Also, crx2oak.jar is used to migrate to TarMK and not for MongoMK. You can follow the steps mentioned above to migrate to MongoDB

Avatar

Level 1

The command that you mentioned allows you to have an AEM 6 instance running with MongoDB. 

Assuming I have my content in tarmk in AEM 6 and for some reason I need to migrate to mongodb, how would I do that. 

 

Siba

Avatar

Employee

Hi,

Migration from TarMK to MongoMK is not yet supported (TarPM -> MongoMK & TarPM -> TarMK are both supported using crx2oak). If you want to track this issue, watch https://issues.apache.org/jira/browse/OAK-1859 and file a DayCare issue so that this issue can be properly prioritized.

Regards,

Justin