Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Postgres - Unsupported Frontend Protocol

Hello,

 

running a Confluence Self Hosted Server in Docker since March 2020. Did my first image Update lately in December 2020.

 

version: '3.3'

services:
confluence:
image: atlassian/confluence-server:latest
depends_on:
- db
restart: unless-stopped
container_name: confluence
volumes:
- ./data/confluence/confluencedata:/var/atlassian/application-data/confluence
ports:
- '8090:8090'
- '8091:8091'
environment:
- CONFLUENCE_DB_HOST=db
- CONFLUENCE_DB_PORT=5432
- JVM_MAXIMUM_MEMORY=2048
- CATALINA_OPTS=-Xms256m -Xmx1g
- ATL_PROXY_NAME=my.proxy.name
- ATL_PROXY_PORT=443
- ATL_TOMCAT_SCHEME=https

db:
image: postgres:9.6
container_name: postgres
restart: unless-stopped
volumes:
- ./data/postgresdb/postgresqldata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgresuser
- POSTGRES_PASSWORD=postgresuserpassword
- POSTGRES_DB=confluencedb

volumes:
confluencedata: {}
postgresqldata: {}

After the update i get the following message when starting with docker-compose up:

postgres | FATAL: unsupported frontend protocol 1234.5680: server supports 1.0 to 3.0

Since then, server is not starting up anymore.

How do i solve this issue?

1 answer

0 votes

Hi @Andreas H 

I hope you are well.

 

It seems the problem you are facing is similar to what is reported in CONFSERVER-60515.

I would suggest you to try replacing the PostgreSQL JDBC driver bundled with Confluence with the 42.2.18 version available in this link.

Let us know if that works.

Kind regards
Thiago Masutti

Hi @Thiago Masutti 

Thanks for the Links.

The location for the driver files inside the docker container is:

/opt/atlassian/confluence/confluence/WEB-INF/lib

It is also filled with many other .jars.

I tried adding a volume to this directory, but on the host system, the directory stays empty. For testing purposes, i downloaded the Postgresql driver into this volume. It is loaded successfully and the problem seems fixes for the Database part, but the other .jars are now missing.

 

How do i get the file into the container (optimally keep it portable with volumes)?

 

Kind regards

Hi @Andreas H 

Sorry I didn't see the message here.

You could replace the library file by directly mounting the jar file similar as below:

docker run -v <host-confluence-home>:/var/atlassian/application-data/confluence -v <host-confluence-home>/postgresql-42.2.18.jar:/opt/atlassian/confluence/confluence/WEB-INF/lib/postgresql-42.2.16.jar --name="confluence-staging" -d -p 8090:8090 -p 8091:8091 atlassian/confluence-server:7.4.6

 

In the above example, I've downloaded the new JDBC driver file to the location of the home folder in the host and replaced the original file, which in the case of Confluence 7.4.6 is postgresql-42.2.16.jar.

Regards,
Thiago

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

82 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you