Fórum
Lost liferay portal configuration when copied to another system(VM)
Shruthi Valsalan, modificado 8 Anos atrás.
Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
I had created a portal for an organization using Liferay. I copied the liferay folder to another system ie virtual machine. But when I tried to run it on that system ,I was not able to do so. I just got the tomcat server page. Later I installed the eclipse and other stuff related to Liferay and ran the server, the server ran but I lost all the data, configuration everything related to my portal and the portal displayed was the Liferay portal from the scratch. Why did this happen? How do I regain my portal.
Harish Kumar, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Expert Postagens: 483 Data de Entrada: 31/07/10 Postagens Recentes
Hi
You need to check for below points while moving your liferay setup
1. data folder - did you copied the data folder as it contains all the images, documents etc.
2. Database backup - did you backup your existing database and imported the same to new machine.
3. portal-ext.properties - did you copied the portal-ext.properties as it contains various properties and database configuration.
Regards,
Harish
You need to check for below points while moving your liferay setup
1. data folder - did you copied the data folder as it contains all the images, documents etc.
2. Database backup - did you backup your existing database and imported the same to new machine.
3. portal-ext.properties - did you copied the portal-ext.properties as it contains various properties and database configuration.
Regards,
Harish
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Hi.. I copied the entire folder.. Entire thing!
Harish Kumar, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Expert Postagens: 483 Data de Entrada: 31/07/10 Postagens Recentes
Hi
Check the database on virtual machine to ensure that it contains the data and check portal-ext.properties file to ensure that Its pointing to that database.
Check the database on virtual machine to ensure that it contains the data and check portal-ext.properties file to ensure that Its pointing to that database.
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Yes Sir.. I did check on them .
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
The path of liferay matters. You might need to specify liferay.home property in portal-ext.properties or else liferay won't be able to find the data as liferay try to find the old installation path. Please refer to http://docs.liferay.com/portal/6.2/propertiesdoc/portal.properties.html#Liferay Home
Arun
The path of liferay matters. You might need to specify liferay.home property in portal-ext.properties or else liferay won't be able to find the data as liferay try to find the old installation path. Please refer to http://docs.liferay.com/portal/6.2/propertiesdoc/portal.properties.html#Liferay Home
Arun
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Hi, where exactly is this portal-ext.properties / portal.properties file????
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
You can create portal-ext.propeties file and add to the liferay home folder. Change liferay.home in your portal-setup-wizard file.
But I usually put all in portal-ext.properties. I've attached what you need. The complete list which you can override can be found from here. Also you might need to change the deploy path in portal-ide or else you won't be able to deploy to liferay from your ide
Arun
You can create portal-ext.propeties file and add to the liferay home folder. Change liferay.home in your portal-setup-wizard file.
But I usually put all in portal-ext.properties. I've attached what you need. The complete list which you can override can be found from here. Also you might need to change the deploy path in portal-ide or else you won't be able to deploy to liferay from your ide
Arun
Anexos:
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
So you telling me that i just need to add this to my liferay folder?
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Yes, exactly where you found the other properties file(portal-setup-wizard.properties). Please try to change the values in portal-setup-wizard.properties. I'm not sure whether it will effect, but on a safe side you better change the path. Please note its the liferay home folder path, not the one I specified in the attachment. That was just an sample
Arun
Arun
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Arun, I have changed the path in the portal-setup-wizard.properties file. I have attached the screenshot of it above.
Anexos:
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
I doubt that, because the first image paths seems like Liferay/data/ and in the properties files it says LP/liferay-portal-6.2-ce-ga4. So its wrong path already. I've attached an image of sample liferay home folder. I believe Liferay (in your case) is the home folder, So it should be like liferay.home=your_path_here/Liferay
Arun
Arun
Anexos:
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Harish Kumar, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Expert Postagens: 483 Data de Entrada: 31/07/10 Postagens RecentesShruthi Valsalan:
Arun, I have changed the path in the portal-setup-wizard.properties file. I have attached the screenshot of it above.
Hi
Locate the portal-ext.properties file in D:\LP\liferay-portal-6.2-ce-ga4 OR in D:\LP\liferay-portal-6.2-ce-ga4\<tomcat-folder>\webapps\ROOT\WEB-INF\classes folder.
liferay.home property should be set to D:/LP/liferay-portal-6.2-ce-ga4
As per your screenshot "setup.wizard.enabled=false" is on the same line move it to new line.
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Yes Harish is right, even your admin.email.from.name is concatenated with the email address. It should work now,
Arun
Arun
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Yes
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Its still the scratch version.
Harish Kumar, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Expert Postagens: 483 Data de Entrada: 31/07/10 Postagens RecentesShruthi Valsalan:
Its still the scratch version.
Can you post portal-ext.properties file here.
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
Did you add the portal-ext.properties file? Is there any errors you can find in logs? If there, please post it here.(D:\LP\liferay-portal-6.2-ce-ga4\tomcat-7.0.42\logs)
Arun
Did you add the portal-ext.properties file? Is there any errors you can find in logs? If there, please post it here.(D:\LP\liferay-portal-6.2-ce-ga4\tomcat-7.0.42\logs)
Arun
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
New Member Postagens: 8 Data de Entrada: 12/03/15 Postagens Recentes
Hi.. Shruthi here.. My posts for the day were over.
the log file : i found 3 errors 'HR files' 'example hook' and 'theme a'. This was because i removed them from the library.
the log file : i found 3 errors 'HR files' 'example hook' and 'theme a'. This was because i removed them from the library.
Anexos:
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens RecentesShruthi Valsalan:
like this??
Exactly like this.(your previous post)
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
I dint get you.. Should i copy it as a whole or how? what are things that i should keep in my mind.. Please do guide me
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
Please replace your portal-setup-wizard.properties with the attached file. portal-setup-wizard.properties is the one generated once you install liferay. We use portal-ext.properties to override the default portal.properties. Make sure the ports are not occupied before you start(Please refer the old posts).
Arun
Please replace your portal-setup-wizard.properties with the attached file. portal-setup-wizard.properties is the one generated once you install liferay. We use portal-ext.properties to override the default portal.properties. Make sure the ports are not occupied before you start(Please refer the old posts).
Arun
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
Instead of this you could have posted your log, as it would have helped instead of a blank screen
Arun
Instead of this you could have posted your log, as it would have helped instead of a blank screen
Arun
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
RE: Lost liferay portal configuration when copied to another system(VM)
Anexos:
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Hi Arun,
I noticed another thing, I have the original folder in C drive of my machine, to check whether it works from another location, i copied the folder to E drive, but dint change the paths though. The webpage was running fine as the original one. Later i changed the path to the E drive one. The webpage was of the scratch one.
I noticed another thing, I have the original folder in C drive of my machine, to check whether it works from another location, i copied the folder to E drive, but dint change the paths though. The webpage was running fine as the original one. Later i changed the path to the E drive one. The webpage was of the scratch one.
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
Try to copy again and start with the path changed, that should work. Don't start Liferay until you change the path.
Arun
Try to copy again and start with the path changed, that should work. Don't start Liferay until you change the path.
Arun
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Hi,
I also migrated the db from hsql to postgres. Took a back-up. And changes portal.properties file.
Still not working!!
Got a blank screen.
I also migrated the db from hsql to postgres. Took a back-up. And changes portal.properties file.
Still not working!!
Got a blank screen.
Anexos:
Nyan Tun Zaw, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
New Member Postagens: 9 Data de Entrada: 24/07/15 Postagens Recentes
hi did u manage to do this? coz i'm facing the same problem
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens RecentesHarish Kumar:
Shruthi Valsalan:Arun, I have changed the path in the portal-setup-wizard.properties file. I have attached the screenshot of it above.
liferay.home property should be set to D:/LP/liferay-portal-6.2-ce-ga4
Hi,
Do you mind freshly copying again and make the changes(liferay.home and other cleanups in portal-setup-wizard.properties). Then start the server
Hope that work
Arun
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
New Member Postagens: 8 Data de Entrada: 12/03/15 Postagens Recentes
HI,
Okay i will do so, please guide me in copying the folder to the VM.
i have attached the folder details and the .properties file of the current system.
Okay i will do so, please guide me in copying the folder to the VM.
i have attached the folder details and the .properties file of the current system.
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Junior Member Postagens: 50 Data de Entrada: 28/01/15 Postagens Recentes
Now nothing is being displayed Arun.. Just blank screen
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens RecentesShruthi Valsalan:
I had created a portal for an organization using Liferay. I copied the liferay folder to another system ie virtual machine. But when I tried to run it on that system ,I was not able to do so. I just got the tomcat server page. Later I installed the eclipse and other stuff related to Liferay and ran the server, the server ran but I lost all the data, configuration everything related to my portal and the portal displayed was the Liferay portal from the scratch. Why did this happen? How do I regain my portal.
Hi,
I think i know what is the problem. I didn't read your question properly. It says "I just got the tomcat server page"., means you have another tomcat running(default port 8080) other than the one used for Liferay. I also notice from your logs that your tomcat port for Liferay is 8081 and AJP Connector is configured at 8019. This is not enough, you need to change <Server port="8005" shutdown="SHUTDOWN"> also to run multiple tomcat because they might be sharing the same port. The file is located at liferay\tomcat\conf\server.xml. Once you made the changes you can start the Liferay again and access at http://localhost:8081. The other way around is stop the other tomcat from running and then start your Liferay. You can use netstat command at command line or use GUI tool like TCPView to check the ports that are occupied. And regarding the other portlet errors, try to clean the liferay\tomcat\temp and liferay\tomcat\work directory. Another thing is I couldn't find your database configuration anywhere, that might be a reason its showing from scratch. You should include your database configurations in portal-ext.properties. One more thing I found from your log is you are using Java 1.8, you should use Java 1.7
Arun
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
New Member Postagens: 8 Data de Entrada: 12/03/15 Postagens Recentes
Hi Arun,
I am a bit ignorant about the procedure for the below statement.
" Another thing is I couldn't find your database configuration anywhere, that might be a reason its showing from scratch. You should include your database configurations in portal-ext.properties"
I am using Liferay's default database, i have not configured anything myself. So can you please explain how to go about with it.
I am a bit ignorant about the procedure for the below statement.
" Another thing is I couldn't find your database configuration anywhere, that might be a reason its showing from scratch. You should include your database configurations in portal-ext.properties"
I am using Liferay's default database, i have not configured anything myself. So can you please explain how to go about with it.
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
You mean Hypersonic??
Arun
You mean Hypersonic??
Arun
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
New Member Postagens: 8 Data de Entrada: 12/03/15 Postagens Recentes
Yes
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
New Member Postagens: 8 Data de Entrada: 12/03/15 Postagens Recentes
Is there something we can do to it?? Can we regain the data?? Or should i start from the scratch??
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens RecentesHarish Kumar:
Hi
2. Database backup - did you backup your existing database and imported the same to new machine.
Harish
Hi,
Yes you can. Next time I think you should be much more specific about things. Harish already mentioned about database backup. First of all Hypersonic is supposed to be for demo purposes. I don't think they recommend it to use in developement / production environment. You must have started liferay without setting the lifery.home and this must have created a new hsql database. Thats why its showing from scratch. The hsql database can be found at liferay-portal\data\hsql\lportal.script. Copy this file from your old machine and put it in the new one at the same path and start the liferay. It should probably work.
Arun
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
New Member Postagens: 8 Data de Entrada: 12/03/15 Postagens Recentes
Hi,
It did not work. Its still the scratch version.
I infact copied the folder as a whole , so i dint miss anyting.
Now i did copy the lportal.script, but it dint work .
It did not work. Its still the scratch version.
I infact copied the folder as a whole , so i dint miss anyting.
Now i did copy the lportal.script, but it dint work .
Arun Das, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Regular Member Postagens: 166 Data de Entrada: 23/07/12 Postagens Recentes
Hi,
Add the following portal-ext.properties to your liferay folder. Check the lportal.script whether your data is there. You can follow this blog
Arun
Add the following portal-ext.properties to your liferay folder. Check the lportal.script whether your data is there. You can follow this blog
Arun
Anexos:
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
New Member Postagens: 8 Data de Entrada: 12/03/15 Postagens Recentes
Harish Kumar, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
Expert Postagens: 483 Data de Entrada: 31/07/10 Postagens RecentesShruthi Valsalan:
Is there something we can do to it?? Can we regain the data?? Or should i start from the scratch??
2. Database backup - did you backup your existing database and imported the same to new machine.
3. portal-ext.properties - did you copied the portal-ext.properties as it contains various properties and database configuration.
In my very first reply I suggested you to backup your existing database and import the same to DB on virtual machine. Next update the portal-ext.properties file to point to this new database. Untill and unless you import the complete data to your new DB, how can you expect things to work fine.
Shruthi Valsalan, modificado 8 Anos atrás.
RE: Lost liferay portal configuration when copied to another system(VM)
New Member Postagens: 8 Data de Entrada: 12/03/15 Postagens Recentes
Hi Harish,
The problem is here i did not have an explicit database. I was using Liferay's default, as a result i did not know backup or the issues related to it. I copied the entire Liferay folder to the virtual machine.
The problem is here i did not have an explicit database. I was using Liferay's default, as a result i did not know backup or the issues related to it. I copied the entire Liferay folder to the virtual machine.