RE: NoSuchFileException during upgrade to liferay 6.2 from liferay 5.2.3

thumbnail
mohsen ghafoory, modified 7 Years ago. New Member Posts: 10 Join Date: 2/17/18 Recent Posts
I am trying to migrate to liferay 6.2 from Liferay 5.2.3,first i upgrade to liferay 6.0.6, my database is completely upgraded, but my images and files are not found in version 6.0.6 and I can not find the file. i use this tutrial o upgrade : http://msonbati.blogspot.com/2014/12/liferay-migration-form-523-to-62.html
thumbnail
Nader Jafari, modified 7 Years ago. Junior Member Posts: 84 Join Date: 8/24/11 Recent Posts
Hi
what is dl.hook.impl in your portal-ext.properties?
before migrate and now.
thumbnail
Amos Fong, modified 7 Years ago. New Member Posts: 10 Join Date: 2/17/18 Recent Posts
at the first time when i start migrat from 5.2.3 to 6.0.6 this is my portal-ext.properties :

jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost:3306/db606?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=1

permissions.user.check.algorithm=5
image.hook.impl=com.liferay.portal.image.DatabaseHook

at the end of migrate to 6.0.6 this is my portal-ext.properties :

jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost:3306/db606?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=1


image.hook.impl=com.liferay.portal.image.FileSystemHook
​​​​​​​dl.hook.impl=com.liferay.documentlibrary.util.AdvancedFileSystemHook
thumbnail
Olaf Kock, modified 7 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
mohsen ghafooryI am trying to migrate to liferay 6.2 from Liferay 5.2.3,first i upgrade to liferay 6.0.6, my database is completely upgraded, but my images and files are not found in version 6.0.6 and I can not find the file. i use this tutrial o upgrade : http://msonbati.blogspot.com/2014/12/liferay-migration-form-523-to-62.html
That tutorial is a good weather scenario that might work, if you start at the same position where they start, but even then, I believe that a couple of steps are missing.
You should read the upgrade instructions for all of the 6.x series that's available on https://dev.liferay.com/ - the principle for upgrades has stayed the same within the 6.x series.
In particular I'm missing
  • Inspecting and partically using portal-legacy-<version>.properties
  • Conversion of ImageGallery to DocumentLibrary (I'm not sure, which version it appeared in, or if it was fully automated - too long ago)
And another issue that I have with that tutorial, on first glance:
  • It assumes that you have used AdvancedFileSystem[Hook|Store] from the beginning - which you might or might not have. As you state that your documents are missing, this might be the issue you're looking for.
Quick Win: inspect portal-legacy-5.2.properties - it contains all of the settings that changed in 6.0 and lists the defaults from 5.2 - you may or may not need to add these to your portal-ext.properties. But you'll need to be aware of those changes.
thumbnail
mohsen ghafoory, modified 7 Years ago. New Member Posts: 10 Join Date: 2/17/18 Recent Posts
thanks for your help but i need a best tutrial for upgrading liferay 5.2 to liferay 6.2 and then upgrading to liferay 7.1 and surely not missed my document...
thumbnail
Olaf Kock, modified 7 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
mohsen ghafoorythanks for your help but i need a best tutrial for upgrading liferay 5.2 to liferay 6.2 and then upgrading to liferay 7.1 and surely not missed my document...

The problem is: When you follow a random tutorial on the internet, it might just document what the author required, but not your additionally required steps.
I'll stand by my recommendation from above:

You should read the upgrade instructions for all of the 6.x series that's available on https://dev.liferay.com/ - the principle for upgrades has stayed the same within the 6.x series.

And my answer above has given a few hints as to which steps you might have missed.
thumbnail
Olaf Kock, modified 7 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Olaf Kock
You should read the upgrade instructions for all of the 6.x series that's available on https://dev.liferay.com/ - the principle for upgrades has stayed the same within the 6.x series.
I went on another hunt for the ancient documentation - and indeed it's still available, but hard to find (e.g. seems to require some cookies, I can't link directly. Filed as LRDOCS-6404):

Go to https://dev.liferay.com, click "Documentation". When the page is loaded, select "6.0 and earlier". On the resulting page, use the secondary navigation to find the available documentation, e.g. under "User & Admin", you'll find the "Administrator's Guide" Use your target version's guide to find the upgrade instructions for how to upgrade to that version. I've opened the 5.2 guide, and its upgrade instructions go back to version 4.3.
thumbnail
Alberto Chaparro, modified 7 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts
Hi Mohsen,

As Olaf said you have the official documentation in dev.liferay.com, more specifically​​​​​​​ this is the link you need to follow:
https://dev.liferay.com/es/discover/deployment/-/knowledge_base/6-2/upgrading-liferay

I hope it helps.

Cheers.