Error while Migrating the AEM6 to MongoDBMK | Community
Skip to main content
Level 2
October 16, 2015
Solved

Error while Migrating the AEM6 to MongoDBMK

  • October 16, 2015
  • 4 replies
  • 1149 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

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

4 replies

Adobe Employee
October 16, 2015

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

October 16, 2015

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

Lokesh_Shivalingaiah
Level 10
October 16, 2015

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

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

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