'Remote connections to this server are not allowed' error when attempting to connect to H2 database in Confluence Server
プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。
問題
When attempting to connect remotely to the embedded H2 database in Confluence Server the following exception is thrown:
Connection to jdbc:h2:tcp://myserver.com/myconfluence/localhome/database/h2db failed.
Remote connections to this server are not allowed.
原因
Remote connections to the embedded H2 database are not permitted for security reasons. You can only connect to H2 from the server on which Confluence is installed.
ソリューション
Connect to the embedded H2 database from the server on which Confluence is installed, as described in Embedded H2 Database.
Note: Plugin vendors can connect remotely to the embedded H2 database when Confluence is running in dev mode, but administrators should not use this as a workaround, and instead should migrate to a supported external database.