-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error creating database object: error verifying connection: failed to send SQL Batch: write tcp wsasend: An existing connection was forcibly closed by the remote host. #5679
Comments
I got this exact problem as well, Works sometimes, I do see that the Vault > MSSQL connection jumps between addresses, IPv4 <> IPv6, maybe this is related. Running Wireshark on the traffic, i'm also seeing some Environment:
Server trace log;
|
I just tested with Vault Version 1.3.2 on Windows 10 Home with SQLServer running on a different host with mcr.microsoft.com/mssql/server:2017-CU17-ubuntu container. Closing this issue, feel free to comment if the problem persists. |
I am seeing this error repeatedly with no intermittent success
vault write database/config/my-mssql-database plugin_name=mssql-database-plugin connection_url='sqlserver://{{username}}:{{password}}@localhost\SQLEXPRESS:1433' allowed_roles="*" username="..." password="..." vault write database/config/my-mssql-database plugin_name=mssql-database-plugin connection_url='sqlserver://{{username}}:{{password}}@Local\SQLEXPRESS:1433' allowed_roles="*" username="..." password="..." vault write database/config/my-mssql-database plugin_name=mssql-database-plugin connection_url='sqlserver://{{username}}:{{password}}@127.0.0.1\SQLEXPRESS:1433' allowed_roles="*" username="..." password="..." Any idea on what am I doing wrong ? |
I suspect this issue is no longer relevant in the most recent versions (1.11.3). Hey @svisamsetty @ikatson @kasperbrandenburg - is this issue still applicable for you folks or have you retested since? |
I believe this issue is no longer relevant and may be closed. |
I'm going to go ahead and close this issue now. Please feel free to open a new one if needed - note, we accept bug reports and enhancement requests for "n-2" versions of Vault, which as of this writing would be 1.10+. Thanks! |
I am getting the following error when trying to write a configuration for a local MSSQL database.
error creating database object: error verifying connection: failed to send SQL Batch: write tcp 127.0.0.1:58416->127.0.0.1:1433: wsasend: An existing connection was forcibly closed by the remote host.
If I continuously try for about 50 times, the connection get written without an error randomly. 1 in about 50 times.
Steps to reproduce the behavior:
vault write database/config/productdb plugin_name=mssql-database-plugin connection_url='sqlserver://{{username}}:{{password}}@127.0.0.1:1433' allowed_roles="processadmin" username="sa" password="admin@123"
Expected behavior
Write the database configuration without throwing the error
Environment:
Operating System: Windows 10 Professional
Vault version: 0.11.4
Microsoft SQL Server Express (64-bit) Version 12.0.2000.8
Vault server configuration file(s):
Using dev mode; vault server --dev
Additional context
Seems to happen when using Windows Binary.
The text was updated successfully, but these errors were encountered: