RE: 6.2 to 7.1 Upgrade -Issue related to Missing Doc Lib Files

Gopal Satapathy, modified 6 Years ago. Junior Member Posts: 74 Join Date: 7/28/15 Recent Posts
Hello,

We are in the process of upgrading from 6.2 to DXP 7.1 

While running the db upgrade tool i am having following multiple exceptions(count is 365 for different unique files) related to document library files.

2019-02-25 20:14:29.866 ERROR [main][JournalArticleImageUpgradeUtil:88] Unable to get file entry from URL /documents/24059/30825/OnboardingChecklist_Terrein+functies_Manager_aanwerving+na+interim_FR.docx/a925fde7-13a6-4eac-a95c-c8d231160e57
com.liferay.document.library.kernel.exception.NoSuchFileEntryException: No DLFileEntry exists with the key {uuid=a925fde7-13a6-4eac-a95c-c8d231160e57, groupId=24059}


Using com.liferay.portal.store.file.system.configuration.AdvancedFileSystemStoreConfiguration for document library.

For the file mentioned in the above error i dont see a similar structure in my document library directory. Please see the image attached

How can i check if these files are really missing inside document library?
thumbnail
Alberto Chaparro, modified 6 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Hi Gopal,

Have you added the following property:
dl.store.impl=com.liferay.portal.store.file.system.AdvancedFileSystemStore
To your portal-upgrade-ext.properties?

That's mandatory so that the process knows that you don't use the default FyleSystemStore.
Gopal Satapathy, modified 6 Years ago. Junior Member Posts: 74 Join Date: 7/28/15 Recent Posts
Hello Alberto ,

Yes i have following entries in the 
portal-upgrade-ext.properties.

liferay.home=/liferay/home
dl.store.impl=com.liferay.portal.store.file.system.AdvancedFileSystemStore

Also apart from that, have mentioned following incom.liferay.portal.store.file.system.configuration.AdvancedFileSystemStoreConfiguration.config file as well.

rootDir="/liferay/data/document_library"



​​​​​​​Thanks
thumbnail
Alberto Chaparro, modified 6 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Hello Gopal,

Then maybe they are just 365 images referenced in certain journal article (maybe pretty old versions) which are already lost in the original Liferay version. Could you check those articles in your current Liferay version?

​​​​​​​Thanks! 
Gopal Satapathy, modified 6 Years ago. Junior Member Posts: 74 Join Date: 7/28/15 Recent Posts
Yes Alberto,

That is what we are trying to figure out, but bit confused on how AdvancedFileSystemStore stores data and how liferay tries to fetch data.

Meaning if the url is /documents/24059/30825/OnboardingChecklist_Terrein+functies_Manager_aanwerving+na+interim_FR.docx/a925fde7-13a6-4eac-a95c-c8d231160e57 then do i need to check inside document_library/20157/24059/30825 directory to see if the file exists or not?(20157 is the company id and inside the 6.2 document library there ate two directories namely 0 and 20157)

OR 

Being the administrator can i simply hit the <domain name>/documents/24059/30825/OnboardingChecklist_Terrein+functies_Manager_aanwerving+na+interim_FR.docx/a925fde7-13a6-4eac-a95c-c8d231160e57 url to check if the file exists?

Thanks
Gopal
thumbnail
Alberto Chaparro, modified 6 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Hi Gopal,

The error is thrown during the manipulation of image references inside JournalArticle XMLs, what I am suggesting is that you look for those references in the JournalArticle.content field in the original database. Once you know which journalArticles have those references you will be able to check if those references are already broken in the original version of Liferay just trying to edit those articles from the UI.

​​​​​​​I hope it helps.
Gopal Satapathy, modified 6 Years ago. Junior Member Posts: 74 Join Date: 7/28/15 Recent Posts
Hello Alberto,

I just followed what you suggested and checked randomly for some JournalArticles and found that yes indeed for those the old versions are having issues and the files are missing in the 6.2 environment itself.

I want to keep those old versions of JournalArticles  as it is and want to proceed with the Upgrade. So can i simply ignore those exceptions?

Thanks,
​​​​​​​Gopal
thumbnail
Alberto Chaparro, modified 6 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Hi Gopal,

Yes, if those links were already broken in 6.2, you can ignore the exceptions during the upgrade.

In fact, we have recently changed the log level in these cases from ERROR to WARN:
https://issues.liferay.com/browse/LPS-91363

:-)

Best regards.