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

サービス イメージをアップグレードした後、liferay サービスがデータベースに接続できない

written-by

Gustavo Vasconcelos

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 サービス イメージをバージョン 4.0.4 以降にアップグレードした後、Liferay DXP は データベース サービスに接続できなくなり、以下の「Caused by」句でデータベースに接続しようとするとエラーが表示されます。
Caused by: java.net.UnknownHostException: database--route: Name does not resolve
	at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
	at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
	at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
	at java.net.InetAddress.getAllByName0(InetAddress.java:1277)
	at java.net.InetAddress.getAllByName(InetAddress.java:1193)
	at java.net.InetAddress.getAllByName(InetAddress.java:1127)
	at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:132)
	at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:65)
	... 63 more

Environment

  • Liferay Cloud 上の Liferay DXP (任意のバージョン)

解決策

  • この問題の根本的な原因は、DXP Cloud の Services Update 2020.33.1でリリースされた、データベースと liferay サービスの変更です。
  • この問題を解決するには、 データベース サービスをバージョン 4.0.3 以降にアップグレードします。
  • 今後他の問題が発生するのを防ぐために、すべてのサービス イメージ パックとして更新し、そのバージョンを Service Updates 変更ログに記載することを検討し ください。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base