Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Data not found after copying the portal from one system to another
Hi,
I had developed a portal in my system using Liferay, I used Liferay's default database. I had added a few pdf's , docx and images in the portal. Now i had to transfer the portal from my system to a virtual machine.
I installed the same version of liferay in virtual machine. Migrated the database from HSQL to Postres, took backup . I did make changes in the portal.properties file and also copied the data from my system ie(liferay-portal-6.2-ce-ga4\data\document_library) to the same location in VM.
I was able to run the portal in the virtual machine, but whrn i clicked on the pdf's,docs and images file, it mentioned that the file is not found
The requested resource was not found
(ex: http://localhost:8081/documents/20182/27029/Outliers+The+Story+Of+Success.pdf/04cc3569-bbce-4896-87c0-f9f6e5db7415) .
What went wrong?
I did check the db, the data was present.
I had developed a portal in my system using Liferay, I used Liferay's default database. I had added a few pdf's , docx and images in the portal. Now i had to transfer the portal from my system to a virtual machine.
I installed the same version of liferay in virtual machine. Migrated the database from HSQL to Postres, took backup . I did make changes in the portal.properties file and also copied the data from my system ie(liferay-portal-6.2-ce-ga4\data\document_library) to the same location in VM.
I was able to run the portal in the virtual machine, but whrn i clicked on the pdf's,docs and images file, it mentioned that the file is not found
The requested resource was not found
(ex: http://localhost:8081/documents/20182/27029/Outliers+The+Story+Of+Success.pdf/04cc3569-bbce-4896-87c0-f9f6e5db7415) .
What went wrong?
I did check the db, the data was present.
Shruthi Valsalan:
Hi,
I had developed a portal in my system using Liferay, I used Liferay's default database. I had added a few pdf's , docx and images in the portal. Now i had to transfer the portal from my system to a virtual machine.
I installed the same version of liferay in virtual machine. Migrated the database from HSQL to Postres, took backup . I did make changes in the portal.properties file and also copied the data from my system ie(liferay-portal-6.2-ce-ga4\data\document_library) to the same location in VM.
I was able to run the portal in the virtual machine, but whrn i clicked on the pdf's,docs and images file, it mentioned that the file is not found
(ex: http://localhost:8081/documents/20182/27029/Outliers+The+Story+Of+Success.pdf/04cc3569-bbce-4896-87c0-f9f6e5db7415) .
What went wrong?
I did check the db, the data was present.
Do you have the same exact folder structure including the disc drive label and folder names for both machines? I face the problem when I had different folder structure. But I'm not sure about your problem. If the folder structure and names are not matching with your local m/c then try to make both same and see whether it's working.
Hi Sir,
I have the same exact folder structure folder names for both machines But the disc drive label is different, earlier it was in downloads, now in D drive. But will that matter?
I have the same exact folder structure folder names for both machines But the disc drive label is different, earlier it was in downloads, now in D drive. But will that matter?
Hi Shruthi,
You need to update "liferay.home" in the portal-setup-wizard.properties.
thanks
Siddhant
You need to update "liferay.home" in the portal-setup-wizard.properties.
thanks
Siddhant
Hi Siddhanth ,
I am sorry , i dint get you. update liferay.home to ? ?
I am sorry , i dint get you. update liferay.home to ? ?
Shruthi Valsalan:
Hi Siddhanth ,
I am sorry , i dint get you. update liferay.home to ? ?
this property contains the full path to liferay home directory. as you said that you have moved to D drive from downloads, you need to update the path here as well.
thanks
Siddhant
Hi,
i have updated the path.
i have updated the path.
Shruthi Valsalan:
Hi,
i have updated the path.
so it works now??
No..