database configuration error for stash with windows authentication

The configuration entered is not valid. A database connection could not be established. Please check your configuration and try again.

If you continue having issues, get in touch with our support team and we'll help get you up and running.

Hide details

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:195)

com.atlassian.stash.internal.migration.DefaultMigrationService.validateConfiguration(DefaultMigrationService.java:85)

sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

...

Could not get JDBC Connection; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'xyz. ClientConnectionId:1312a998-47bb-49c2-93b1-3f6d894a99d9

org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)

com.atlassian.stash.internal.db.DefaultDatabaseValidator.validate(DefaultDatabaseValidator.java:35)

com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:192)

...

Login failed for user 'xyz'. ClientConnectionId:1312a998-47bb-49c2-93b1-3f6d894a99d9

com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:216)

com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(tdsparser.java:254)

com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:84)

...

3 answers

we require solution this urgently. we are stuck, thanks in advance.

0 votes

Er, have you read the error you've posted here? It specifically states that you have not given it user details that can connect to your database.

The solution is to ensure you've set up the database correctly, and give stash the right credentials.

0 votes

General instructions on how to connect Stash to a SQL server database can be found here: https://confluence.atlassian.com/display/STASH/Connecting+Stash+to+SQL+Server

If this doesn't help, I'd suggest opening a support request on https://support.atlassian.comso our support engineers can have a look at your logs.

thanks michael

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

453 views 5 9
Read article

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