Combination View Flat View Tree View
Threads [ Previous | Next ]
Mudasar Kalwar
Images and document not visible after migration to liferay 6.1.0 GA1
November 8, 2012 9:52 PM
Answer

Mudasar Kalwar

Rank: New Member

Posts: 23

Join Date: September 13, 2012

Recent Posts

Hi All,

I upgrade from liferay 5.2.3 to 6.0.6 , it was successfully done without any error left; but when I upgrade from 6.0.6 to 6.1.0 GA1, unable to see the images and documents.
Steps related to images and documents I have done during migration(only related to documents are described).
1. during migration to 6.0.6 I wrote following lines to my portal-ext.prropeties file
image.hook.impl=com.liferay.portal.image.FileSystemHook
image.hook.file.system.root.dir=${liferay.home}/data/images
dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
dl.hook.file.system.root.dir=${liferay.home}/data/document_library


I know in liferay 5.2.3 we have saved the images and documents to file system.
after this I start the server and migrated legacy permission to 6. It was successful , I was able to see the documents and images.

2. Now it turn to migrate from 6.0.6 to 6.1.0 GA1 , for that I wrote in these lines
image.hook.impl=com.liferay.portal.image.FileSystemHook
image.hook.file.system.root.dir=${liferay.home}/data/images
dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
dl.hook.file.system.root.dir=${liferay.home}/data/document_library


start tomcat, migrate permissions to 6, after successful migration , re start the server but unable to see the documents and images. when ever trying to access the file in contents getting this error in tomcat console
Current URL /c/document_library/get_file?uuid=be4eecc7-8e9a-416c-aa4d-f3cbd855d759&groupId=14 generates exception: No file versions found for fileEntryId 61901
05:50:48,093 INFO [PortalImpl:4894] com.liferay.portlet.documentlibrary.NoSuchFileVersionException: No file versions found for fileEntryId 61901
com.liferay.portlet.documentlibrary.NoSuchFileVersionException: No file versions found for fileEntryId 61901
at com.liferay.portlet.documentlibrary.service.impl.DLFileVersionLocalServiceImpl.getLatestFileVersion(DLFileVersionLocalServiceImpl.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

can any one suggest what I am missing ?


Thanks
Mudasar Kalwar
RE: Images and document not visible after migration to liferay 6.1.0 GA1
November 11, 2012 9:10 PM
Answer

Mudasar Kalwar

Rank: New Member

Posts: 23

Join Date: September 13, 2012

Recent Posts

one solution I found is to add the entries of files in dlfileversion from dlfilentry. is it fine ? is it any other solution ?