Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting Confluence to Google Cloud SQL

yvonnearnoldus April 25, 2018

Hi,

I have been trying to connect Confluence to a Postgresql database in Google Cloud SQL.

It is possible to connect using jdbc but it needs a jdbc library from google com.google.cloud.sql.postgres.SocketFactory (https://cloud.google.com/sql/docs/postgres/connect-external-app#java). 

But when I use jdbc as specified in the Google documentation I get an error "The SocketFactory class provided com.google.cloud.sql.postgres.SocketFactory could not be instantiated".

I checked on the Docker image atlassian/confluence-server:6.3.2 and there is no SockerFactory on disc.

I we are deploying confluence using Kubernetes so we will be using Docker images.

Is there a way to use Google Cloud SQL with Confluence?

3 answers

1 accepted

0 votes
Answer accepted
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 25, 2018

Hi Yvonne,

I clicked on the link you provided and saw the Java connection instructions:

 

The JDBC socket factory provides an alternative to the client-side proxy software, and requires the Cloud SQL API to be enabled, just as the Cloud SQL Proxy does. The socket factory provides the same level of encryption as the proxy, and authenticates with Cloud SDK credentials, so the Cloud SDK must be installed and authenticated.

Please make sure the Cloud SDK  is installed and the Cloud SQL API is enabled. There is a giant blue button on this page you linked to before to enable it if you haven't already.

I look forward to working with you on this.

Thanks,

Ann

0 votes
Omar Madrid January 4, 2019

Google sdk Is a set of tools needed to connect a VM to other Google cloud services.

And it is easy to install!!

0 votes
yvonnearnoldus April 26, 2018

Hi,

I did see the blue button. And I did perform the task behind the blue button.

But in order to use Google Cloud SQL I need to create my own confluence image and maintain this because I need to inject the Google SDK, far form Ideal.

Any change you will add support for Google Cloud SQL to Confluence, so customers do not need to install Google SDK?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events