Data not found after copying the portal from one system to another

Shruthi Valsalan, modified 10 Years ago. Junior Member Posts: 50 Join Date: 1/28/15 Recent Posts
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.
Arun R S Chandran, modified 10 Years ago. Regular Member Posts: 149 Join Date: 3/12/13 Recent Posts
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.
Shruthi Valsalan, modified 10 Years ago. Junior Member Posts: 50 Join Date: 1/28/15 Recent Posts
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?
siddhant jain, modified 10 Years ago. Junior Member Posts: 69 Join Date: 3/19/13 Recent Posts
Hi Shruthi,

You need to update "liferay.home" in the portal-setup-wizard.properties.


thanks
Siddhant
Shruthi Valsalan, modified 10 Years ago. Junior Member Posts: 50 Join Date: 1/28/15 Recent Posts
Hi Siddhanth ,

I am sorry , i dint get you. update liferay.home to ? ?
siddhant jain, modified 10 Years ago. Junior Member Posts: 69 Join Date: 3/19/13 Recent Posts
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
Shruthi Valsalan, modified 10 Years ago. Junior Member Posts: 50 Join Date: 1/28/15 Recent Posts
Hi,
i have updated the path.
siddhant jain, modified 10 Years ago. Junior Member Posts: 69 Join Date: 3/19/13 Recent Posts
Shruthi Valsalan:
Hi,
i have updated the path.


so it works now??
Shruthi Valsalan, modified 10 Years ago. Junior Member Posts: 50 Join Date: 1/28/15 Recent Posts
No..