Legacy Knowledge Base
Published Jul. 2, 2025

java.io.IOException Unable to create directory

Written By

Thanga Meena

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

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.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base