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.

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

631 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot