Fórum

Migrate Uesrs from EE to CE

Nisarg Parikh, modificado 12 Anos atrás.

Migrate Uesrs from EE to CE

Expert Postagens: 262 Data de Entrada: 31/12/09 Postagens Recentes
Hi All,

We have previously used EE (6.0.10) and now we are moving to CE (6.0.6).
I have few users in EE which I want in CE. Basically I want to migrate only Users.

Is it possible? if yes then how to achieve that?
Anyone has idea?

Thanks in Advance..

-Nisarg
thumbnail
Thiago Leão Moreira, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Liferay Legend Postagens: 1449 Data de Entrada: 10/10/07 Postagens Recentes
Liferay does not support migration of users. The easiest way to do this is export your users to a LDAP server and then import on your new instance.

Liferay EE (6.0.10) -> LDAP -> Liferay CE (6.0.6)
Nisarg Parikh, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Expert Postagens: 262 Data de Entrada: 31/12/09 Postagens Recentes
Hi Thiago,

Thanks for the suggestion.
I will try that one.

-Nisarg
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
If you don't already have LDAP setup, just use the web services.

http://www.liferay.com/community/wiki/-/wiki/Main/Web+Service+samples;jsessionid=98CCD7189B56A088E857BFEA49195985.node-1
Nisarg Parikh, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Expert Postagens: 262 Data de Entrada: 31/12/09 Postagens Recentes
Hi Hitoshi,

Thanks for the great solution.

Will it work for "https" ?
If I want all the users from DB then I guess I have to change in the code as right now there is only 1 user I can get.

Please let me know.
Thank you.

-Nisarg
Nisarg Parikh, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Expert Postagens: 262 Data de Entrada: 31/12/09 Postagens Recentes
Hi Hitoshi,

I tried to import the user data from the template in the data\template folder but I got the following exception.

D:\Liferay-ce\liferay-wstools_20110119>java jp.co.ogis.liferay.util.UsersImport usersTemplate.csv
Aug 5, 2011 5:37:22 PM jp.co.ogis.liferay.util.UsersImport <init>
INFO: Opening file 'usersTemplate.csv'
Aug 5, 2011 5:37:23 PM jp.co.ogis.liferay.util.UsersImport <init>
INFO: File 'usersTemplate.csv' opened.
Aug 5, 2011 5:37:23 PM jp.co.ogis.liferay.util.UsersImport <init>
SEVERE: Data format error in row: 1
Aug 5, 2011 5:37:23 PM jp.co.ogis.liferay.util.UsersImport <init>
SEVERE: java.lang.NumberFormatException: For input string: "companyId"
Aug 5, 2011 5:37:29 PM jp.co.ogis.liferay.util.UsersImport <init>
SEVERE: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
Aug 5, 2011 5:37:29 PM jp.co.ogis.liferay.util.UsersImport <init>
SEVERE: Insert error. Skipping row 1.
org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
Aug 5, 2011 5:37:32 PM jp.co.ogis.liferay.util.UsersImport <init>
SEVERE: org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
Aug 5, 2011 5:37:32 PM jp.co.ogis.liferay.util.UsersImport <init>
SEVERE: Insert error. Skipping row 2.
org.xml.sax.SAXException: Processing instructions are not allowed within SOAP messages
Aug 5, 2011 5:37:32 PM jp.co.ogis.liferay.util.UsersImport <init>
INFO: Closing file 'usersTemplate.csv'.
Aug 5, 2011 5:37:32 PM jp.co.ogis.liferay.util.UsersImport <init>
INFO: Finished importing user data.


I am running this utility from Windows env and trying to connect to Linux env.
I successfully connect to the environment but there is something wrong with the CSV file.

I am using LR CE 6.0.6 version.

Please help me on this.
Thank you.

-Nisarg
thumbnail
Hitoshi Ozawa, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
The sample is for 6.0.5. You'll have to recompile using LR's 6.0.6 SDK.
Nisarg Parikh, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Expert Postagens: 262 Data de Entrada: 31/12/09 Postagens Recentes
Hi Hitoshi,

I have tried to compile with 6.0.6 JARs. I have replaced axis.jar, portal-client.jar, portal-service.jar files and compiled it but still I am getting the same error.

Please let me know what to do.

Thank you.

-Nisarg
Nisarg Parikh, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Expert Postagens: 262 Data de Entrada: 31/12/09 Postagens Recentes
Hi Hitoshi,

I am still facing the same exception.

Can you please help me in solving this? Is it possible that my .csv file is not proper?

Any help/hint would be appreciated.

Thanks again.

-Nisarg
Nisarg Parikh, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE (Resposta)

Expert Postagens: 262 Data de Entrada: 31/12/09 Postagens Recentes
Hi Hitoshi,

Finally I have done this successfully.

I did some code changes for multiple users.
Export class will read the CSV file contains userIds and some related changes in writting csv file.

Thanks for this wonderful utility.

-Nisarg
Nisarg Parikh, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Expert Postagens: 262 Data de Entrada: 31/12/09 Postagens Recentes
Hi Hitoshi,

I can successfully migrate the users but one thing I have noticed is that the PASSWORD has been changed while importing users.

It was correct while exporting and before executing the import method call.

Any idea why it is happening?

Please help me.

-Nisarg
Nisarg Parikh, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Expert Postagens: 262 Data de Entrada: 31/12/09 Postagens Recentes
I saw the source code and I found that Liferay encrypt the password we send.
In our csv file we already have the password encrypted.

What can be the possible solution for that?

Please help me.
Thank you.

-Nisarg
Arun S, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

New Member Mensagem: 1 Data de Entrada: 05/09/11 Postagens Recentes
Any solution on migrating user from one liferay instance to another liferay instance..emoticon

Is it possible to migrate user through database???
thumbnail
Mani kandan, modificado 12 Anos atrás.

RE: Migrate Uesrs from EE to CE

Expert Postagens: 492 Data de Entrada: 15/09/10 Postagens Recentes
Hi arun,

Try these links

Upgrade instructions

Upgrade from 5 to 6

follow the proper procedure.