Unable to download documents and media after 6.2 to 7.2 upgrade. 404 ErrorUnable to download documents and media after 6.2 to 7.2 upgrade. 404 Errorhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1148069222024-03-29T15:58:17Z2024-03-29T15:58:17ZRE: Unable to download documents and media after 6.2 to 7.2 upgrade. 404 ErAlberto Chaparrohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1148437992019-08-22T16:21:49Z2019-08-22T16:21:49ZYes Brody, that should work.Alberto Chaparro2019-08-22T16:21:49ZRE: Unable to download documents and media after 6.2 to 7.2 upgrade. 404 ErBRODY HIGGS JRhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1148434292019-08-22T13:47:21Z2019-08-22T13:47:21Z<span style="color: #000000"></span>Ok. So the solution would be to run the database upgrade again using the following config settings, correct?<br /><span style="color: #000000"></span><span style="color: #000000"></span>Liferay 7.2 Portal-ext.properties:<br /><span style="color: #000000"></span>dl.store.file.system.root.dir=${liferay.home}/data/document_library<br /><span style="color: #000000"></span>dl.store.impl=com.liferay.portal.store.file.system.AdvancedFileSystemStore<br /><br /><span style="color: #000000"></span><span style="color: #000000"></span>tools\portal-tools-db-upgrade-client\portal-upgrade-ext.properties:<br /><span style="color: #000000"></span>dl.store.impl=com.liferay.portal.store.file.system.AdvancedFileSystemStoreBRODY HIGGS JR2019-08-22T13:47:21ZRE: Unable to download documents and media after 6.2 to 7.2 upgrade. 404 ErOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1148386332019-08-22T08:56:55Z2019-08-22T08:56:55Z<div class="quote-title">BRODY HIGGS JR:</div><blockquote><br /><span style="color: #000000"></span> The files exist, but the Liferay GUI can’t locate older files after the 6.2 to 7.2 upgrade. New files that I uploaded after 7.2 upgrade can be downloaded.<br /><br /><span style="color: #000000"></span>Liferay 6.2 portal ext:<br /><span style="color: #000000"></span>dl.hook.impl=com.liferay.documentlibrary.util.AdvancedFileSystemHook<span style="color: #000000"></span><br />dl.store.file.system.root.dir=${liferay.home}/data/document_library<br /><span style="color: #000000"></span><br />Liferay 7.2 portal-ext:<span style="color: #000000"></span><br />dl.store.impl=com.liferay.portal.store.file.system.FileSystemStore<br /><span style="color: #000000"></span>dl.store.file.system.root.dir=${liferay.home}/data/document_library<br /><span style="color: #000000"></span><br /></blockquote>Your 6.2 installation stored the files with the "AdvancedFileSystem" structure, while 7.2 accesses them with Simple-"FileSystem". The storage location for both, despite sharing the same root directory, is different and this is the root cause: During your upgrade, you'll have to use the same store for documents as in your old installation, to find and migrate the binary data properly. It seems that you didn't.<br />Naturally, now if you upload new documents, they'll be stored with the same ("FileSystem") format that they're being read, but you can't read those stored with a different underlying directory layout.Olaf Kock2019-08-22T08:56:55ZRE: Unable to download documents and media after 6.2 to 7.2 upgrade. 404 ErBRODY HIGGS JRhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1148364602019-08-21T18:08:40Z2019-08-21T18:08:40Z<span style="color: #000000"></span>I still receive the ‘404 - File or Directory not found’ error when attempting to download a file. Below are snippets of my portal-ext.properties file. Also, the download link of some files I cannot download are below as well as the file location on backend server. The files exist, but the Liferay GUI can’t locate older files after the 6.2 to 7.2 upgrade. New files that I uploaded after 7.2 upgrade can be downloaded.<br /><br /><span style="color: #000000"></span>Liferay 6.2 portal ext:<br /><span style="color: #000000"></span>dl.hook.impl=com.liferay.documentlibrary.util.AdvancedFileSystemHook<span style="color: #000000"></span><br />dl.store.file.system.root.dir=${liferay.home}/data/document_library<br /><span style="color: #000000"></span><br />Liferay 7.2 portal-ext:<span style="color: #000000"></span><br />dl.store.impl=com.liferay.portal.store.file.system.FileSystemStore<br /><span style="color: #000000"></span>dl.store.file.system.root.dir=${liferay.home}/data/document_library<br /><span style="color: #000000"></span><br />Download Link:<span style="color: #000000"></span>/documents/27431/36212/filename.pdf/29e66731-605d-4d79-8004-f81030ef53d9?t=1560432106173&download=true<br /><span style="color: #000000"></span>File path on server:<span style="color: #000000"></span>liferay\data\document_library\20155\36212\23\92\23927.afsh<br /><span style="color: #000000"></span><br />Download Link:<span style="color: #000000"></span>/documents/27431/37158/2018.pdf/9a41e679-09e4-4ecb-872e-ea226d6eb62f?t=1535398565337&download=true<br /><span style="color: #000000"></span>File path on server:<span style="color: #000000"></span>liferay\data\document_library\20155\37158\15\1517.afsh<span style="color: #000000"></span><br /><br />Below is the download link and file path to a new file that I can download<br />.<span style="color: #000000"></span>/documents/27431/10032183/testfile.jpg/645cd365-ffe5-49f6-82bd-d41b8e12b9c9?t=1565371045790&download=true<span style="color: #000000"></span><br />liferay\data\document_library\20155\10032183\24608BRODY HIGGS JR2019-08-21T18:08:40ZRE: Unable to download documents and media after 6.2 to 7.2 upgrade. 404 ErAlberto Chaparrohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1148220912019-08-20T17:18:01Z2019-08-20T17:18:01ZAlso, can you attach your upgrade log?Alberto Chaparro2019-08-20T17:18:01ZRE: Unable to download documents and media after 6.2 to 7.2 upgrade. 404 ErAlberto Chaparrohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1148217692019-08-20T17:16:28Z2019-08-20T17:16:28Z<em></em><em></em><em></em>Then, it should work, we haven't reproduced this issue in our tests. Could you verify the stacktrace after trying to download those files and check if the file exists in the filesystem before and after the upgrade.<span style="font-size: 18px;">Thx</span>Alberto Chaparro2019-08-20T17:16:28ZRE: Unable to download documents and media after 6.2 to 7.2 upgrade. 404 ErBRODY HIGGS JRhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1148214172019-08-20T15:47:41Z2019-08-20T15:47:41Zyes, the document library was copied before the upgrade. All users, sites, pages, documents and media are listed. Unable to download from documents and media. Error: 404 - File or Directory not foundBRODY HIGGS JR2019-08-20T15:47:41ZRE: Unable to download documents and media after 6.2 to 7.2 upgrade. 404 ErAlberto Chaparrohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1148112832019-08-19T22:10:06Z2019-08-19T22:10:06ZHi Brody,Did you copy your DL folder to the new installation before the upgrade?Thanks.Alberto Chaparro2019-08-19T22:10:06ZUnable to download documents and media after 6.2 to 7.2 upgrade. 404 ErrorBRODY HIGGS JRhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1148069212019-08-19T20:54:04Z2019-08-19T20:54:04Z<span style="color: #000000"></span>I am able to download new files (files I uploaded after 7.2 upgrade), but I am unable to download previous files (files downloadable in 6.2). I receive a ‘404 - File or Directory not found’ error when attempting to download a file from documents and media. I can see all site pages, documents and media are listed correctly in Liferay 7.2. I have tried reindexing all searches, but that did not resolve the issue. Below are some contents of my portal-ext.properties files in each version of Liferay. Should I add the dl.store.file.system.root.dir from 6.2 into 7.2 portal-ext.properties file?<br /><br /><span style="color: #000000"></span><span style="color: #000000"></span>Liferay 6.2 po