The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Database: Database connection failed after docker down.

scranthony
January 20, 2019

Hi,

 

i restart docker with docker down command.

Postgres has changed the name of the container. For that reason i changed this name in confluence.cfg.xml file to. But it does not help.  Confluence still shows me: 

Database: Database connection failed

 

Before docker down everything worked perfect.

What i checked:

- db existence.

- connection to Postgres DB using php script. (Works)

- reload confluence a couple of times.

 

Why it does not work then?

 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Tobias Anstett (K15t)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 20, 2019

Hi @scranthony,

Have you restarted Confluence after re-configuring the confluence.cfg.xml? This file is only read on startup, so modifications won't take effect just reloading.

Best, Tobias

scranthony
January 21, 2019

sure. I restarted several times. Even tried to change permissions of all confluence folder to 777 for testing. no luck.

Tobias Anstett (K15t)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 21, 2019

Hi @scranthony,

Have you already followed the instructions here?

https://confluence.atlassian.com/conf64/troubleshooting-external-database-connections-936511519.html

Maybe this helps identifying the root cause.

Best, Tobias

0 votes
scranthony
January 21, 2019

hi Tobias,

not yet, thank you for the link.

i solved that a bit different: rename mounted folder and reinstalled confluence. After that restored the db backup. 

I know that its not perfect solution but it works for me.

best regards, Anton

TAGS
AUG Leaders

Atlassian Community Events