How do I connect gitbucket to Postgresql?

Anyone?

 

 

The configuration entered is not valid. A database connection could not be established. Please check your configuration and try again.
com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:230)
com.atlassian.stash.internal.migration.DefaultMigrationService.validateConfiguration(DefaultMigrationService.java:85)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    ...
Could not get JDBC Connection; nested exception is org.postgresql.util.PSQLException: Connection to folsom:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
 org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
 com.atlassian.stash.internal.db.DefaultDatabaseValidator.validate(DefaultDatabaseValidator.java:44)
 com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:227)
    ...
Connection to folsom:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
org.postgresql.Driver$ConnectThread.getResult(Driver.java:365)
org.postgresql.Driver.connect(Driver.java:288)
java.sql.DriverManager.getConnection(DriverManager.java:664)
    ...
Connection refused
 java.net.PlainSocketImpl.socketConnect(Native Method)
 java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
 java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

1 answer

0 vote

It's pretty much what the error message says - you've given Bitbucket connection settings which point it to a non-existant or firewalled database server.

Check the hostname can be resolved from the Bitbucket server, and that you can reach it ("telnet folsom:5432" might be worth a shot on the server, as you'll get an error which is likely to have more information about the cause )

Nessin I'm New Here May 10, 2018

me sale este error al intentar conectar con postgresql 

-----------------------------------------------------------------

The configuration entered is not valid. A database connection could not be established. Please check your configuration and try again.
 com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:217)
 com.atlassian.stash.internal.migration.DefaultMigrationService.validateConfiguration(DefaultMigrationService.java:85)
 sun.reflect.GeneratedMethodAccessor709.invoke(Unknown Source)
 ...
Could not get JDBC Connection; nested exception is org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "admin"
 org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
 com.atlassian.stash.internal.db.DefaultDatabaseValidator.validate(DefaultDatabaseValidator.java:44)
 com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:214)
 ...
FATAL: Ident authentication failed for user "admin"
 org.postgresql.Driver$ConnectThread.getResult(Driver.java:401)
 org.postgresql.Driver.connect(Driver.java:259)
 java.sql.DriverManager.getConnection(DriverManager.java:664)
 ...

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

31,130 views 26 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you