legacy-knowledge-base
公開されました Jul. 2, 2025

java.io.IOException ディレクトリを作成できません。

written-by

Thanga Meena

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

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

legacy-article

learn-legacy-article-disclaimer-text

問題

  • LiferayポータルDBを6.2から7.2に正常にアップグレードした後、サーバーは正常に起動しましたが、アップグレードした環境ではButドキュメントやページが表示されない状態です。
  • 次のエラーが起こります: [#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)

環境

  • 環境をアップグレードする:
    • Liferay DXP 6.2 - Souce版ポータルサイト
    • Liferay DXP 7.2 - ポータルのデスティネーションバージョン
    • DBアップグレードクライアントバージョン: com.liferay.portal.tools.db.upgrade.client-3.0.1

解像度

  • #Error1 は、Liferayがディレクトリを作成しようとしていることを示しています。
  • この問題は 解決され、アップグレードした環境ではドキュメントとページが表示されます。 、不足しているDLストアの設定を行うことで解決します。 ストアのデフォルトのルートフォルダを変更し、Liferay 6.2バンドル用のディレクトリを指定する場合、アップグレード中に、6.2データをコピーしたディレクトリを指定する必要があります。
    • 注意:テストする前に、このディレクトリのバックアップをとってください。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base