'Remote connections to this server are not allowed' error when attempting to connect to H2 database in Confluence Server

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

Problem

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. 

Cause

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.

Resolution

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


DescriptionRemote connections to the embedded H2 database are not permitted in Confluence Server
ProductConfluence
Last modified on Aug 29, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.