Import data from dotCMS 3.0 to 4.0

75 views
Skip to first unread message

noman....@gmail.com

unread,
Jul 27, 2017, 4:21:14 PM7/27/17
to dotCMS User Group
Hi,
I'm assuming there must be a way to import all the data (users, assets etc) from v3 to v4. As db schema has changed with this new release, I tried the way using starter.zip but it didn't work. I took backup from v3 installation and used that archive to place as starter.zip under ./webapps/ROOT

regards
Noman

Jason Tesser

unread,
Jul 27, 2017, 4:24:22 PM7/27/17
to dotCMS User Group
usually people would upgrade the server not import.  This is the supported way 

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/34b5f0ca-f608-4822-b0c7-f3514a28d8fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

noman....@gmail.com

unread,
Jul 28, 2017, 11:26:34 AM7/28/17
to dotCMS User Group
Hi,
Thanks for getting back. But we have been testing v3 community version and I don't see any option to just upgrade the current instance. It's pointing to documentation for installing as new instance. Is upgrade option available for only enterprise server?

regards
Noman

Nathan Keiter

unread,
Jul 28, 2017, 11:41:50 AM7/28/17
to dot...@googlegroups.com

There is no push-button upgrade, especially between major versions.

 

You have to replace the install with the new version.  Ideally, create a new server with 4.0.1 on it, point it to a copy of your database, start it up.

 

Then when you start it up, it will perform the various DB upgrade tasks.

 

The upgrade documentation will tell you exactly how to prepare for the upgrade and what needs to be done. https://dotcms.com/docs/latest/upgrading-to-dotcms-4-0

 

Actually in this case, there’s not much to do if you are already on 3.x, so maybe follow the install documentation to get 4.0.1 online. https://dotcms.com/docs/latest/installation

 

The important thing is that you keep your file assets and db somewhere safe and connect them to the new version.  Work with copies of those first to make sure you can successfully upgrade.

 

You could actually do it on the same server in a different install folder… I’d be careful though. Once upgraded it is impossible to go back. So backup everything first.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

Jason Tesser

unread,
Jul 28, 2017, 12:07:39 PM7/28/17
to dot...@googlegroups.com
See https://dotcms.com/docs/latest/upgrading-dotcms

also you should checkout the release notes 

noman....@gmail.com

unread,
Aug 3, 2017, 2:58:28 PM8/3/17
to dotCMS User Group
I followed update procedure defined here https://dotcms.com/docs/latest/upgrading-dotcms and it ran into this this exception:

ERROR business.HostAPIImpl: org.elasticsearch.indices.IndexMissingException: [working_20170801163000] missing

java.lang.RuntimeException: org.elasticsearch.indices.IndexMissingException: [working_20170801163000] missing

at com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.indexSearch(ESContentFactoryImpl.java:1358) ~[dotcms_4.1.1_999999.jar:?]

at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.searchIndex(ESContentletAPIImpl.java:734) ~[dotcms_4.1.1_999999.jar:?]

at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.search(ESContentletAPIImpl.java:601) ~[dotcms_4.1.1_999999.jar:?]

at com.dotcms.content.elasticsearch.business.ESContentletAPIImpl.search(ESContentletAPIImpl.java:592) ~[dotcms_4.1.1_999999.jar:?]

at com.dotmarketing.portlets.contentlet.business.ContentletAPIInterceptor.search(ContentletAPIInterceptor.java:1442) ~[dotcms_4.1.1_999999.jar:?]

at com.dotmarketing.portlets.contentlet.business.HostAPIImpl.findAll(HostAPIImpl.java:344) [dotcms_4.1.1_999999.jar:?]

at com.dotmarketing.servlets.InitServlet$InitThread.run(InitServlet.java:369) [dotcms_4.1.1_999999.jar:?]

Caused by: org.elasticsearch.indices.IndexMissingException: [working_20170801163000] missing

at org.elasticsearch.cluster.metadata.MetaData.convertFromWildcards(MetaData.java:884) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.cluster.metadata.MetaData.concreteIndices(MetaData.java:692) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.<init>(TransportSearchTypeAction.java:118) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.<init>(TransportSearchQueryThenFetchAction.java:71) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.<init>(TransportSearchQueryThenFetchAction.java:65) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction.doExecute(TransportSearchQueryThenFetchAction.java:62) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction.doExecute(TransportSearchQueryThenFetchAction.java:52) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:75) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:100) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:43) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:75) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.client.node.NodeClient.execute(NodeClient.java:98) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:338) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:1112) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91) ~[dot.elasticsearch-1.7.3_1.jar:?]

at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65) ~[dot.elasticsearch-1.7.3_1.jar:?]

at com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.indexSearch(ESContentFactoryImpl.java:1348) ~[dotcms_4.1.1_999999.jar:?]


regards

Noman

Jason Tesser

unread,
Aug 3, 2017, 3:22:27 PM8/3/17
to dotCMS User Group
just means you need to reindex

noman....@gmail.com

unread,
Aug 11, 2017, 10:20:35 AM8/11/17
to dotCMS User Group
This worked. Thanks guys for all the help.

regards
Noman
Reply all
Reply to author
Forward
0 new messages