Unable to Connect to SQL Server Due to Error: 18456, Severity: 14, State: 12 - Bitbucket Data Center
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
要約
The following error appears in the SQL Server log:
Login failed for user '<BITBUCKET_USER>'. Reason: Login-based server access validation failed with an infrastructure error. Check for previous errors. [Client: 127.0.0.1] Error: 18456, Severity: 14, State: 12atlassian-bitbucket.logに次のエラーが返される。2015-04-09 13:53:16,046 WARN [http-nio-80-exec-7] user @1BFSM6Dx833x1035x0 35ndgf 192.168.30.100 "POST /admin/db/edit HTTP/1.1" c.a.s.i.db.DefaultDatabaseManager A connection could not be opened with the DataSource org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user '<BITBUCKET_USER>'. ClientConnectionId:
診断
N/A
原因
Error: 18456, Severity: 14, State: 12 means that the authentication is successful, but the server access fails due to permission.
ソリューション
Ensure that the SQL Server Authentication mode is enabled.
Assuming that the SQL Server username is
bitbucketuser, run the following SQL query in a master database, to give the permission to connect via TCP/IP:GRANT CONNECT SQL TO "bitbucketuser" GRANT CONNECT ON ENDPOINT::"TSQL Default TCP" TO "bitbucketuser";
この内容はお役に立ちましたか?