Issue
-
After upgrading the Liferay portal DB from 6.2 to 7.2 successfully, the server started successfully but But documents and pages are not visible in the upgraded environment.
- Below error occurs: [#Error1]
2019-12-27 17:35:19.657 ERROR [Start Level: Equinox Container: 0659ff48-b57f-4f57-94ff-35bb767fdf72][DLProcessorRegistryImpl:93] bundle com.liferay.document.library.service:4.0.27 (951)[com.liferay.document.library.internal.util.DLProcessorRegistryImpl(4966)] : The activate method has thrown an exception
java.io.IOException: Unable to create directory /tmp/liferay/document_decrypt
at org.apache.commons.io.FileUtils.forceMkdir(FileUtils.java:2472)
at com.liferay.portal.util.FileImpl.mkdirs(FileImpl.java:754)
at com.liferay.portal.util.FileImpl.mkdirs(FileImpl.java:770)
Environment
-
Upgrade environment:
- Liferay DXP 6.2 - Souce version of the portal
- Liferay DXP 7.2 - Destination version of the portal
- DB upgrade client version: com.liferay.portal.tools.db.upgrade.client-3.0.1
Resolution
-
#Error1 shows that Liferay is trying to create a directory.
-
This issue gets resolved that is the documents and pages are visible in the upgraded environment by configuring the missing DL store configuration. When changing the store’s default root folder and pointing it for the Liferay 6.2 bundle with the directory as you want, While upgrading, you have to point out the directory in which you have copied the 6.2 data
-
Note: Take the backup of this directory before testing it.