<@U04S8PLJWMT> getting following message when conn...
# ask-ai
f
@kapa.ai getting following message when connecting to a SQL Server source: Failed to save ATRIO_ROOT due to the following error: State code: 08S01; Message: The TCP/IP connection to the host 127.0.0.1, port 45899 has failed. Error: "The driver received an unexpected pre-login response. Verify the connection properties and check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. This driver can be used only with SQL Server 2005 or later.". ClientConnectionId:7acac017-e275-43c6-b634-007100e54025
k
The error message you are seeing: > State code: 08S01; Message: The TCP/IP connection to the host 127.0.0.1, port 45899 has failed. Error: "The driver received an unexpected pre-login response. Verify the connection properties and check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. This driver can be used only with SQL Server 2005 or later." suggests a few possible issues: 1. Incorrect Port or Instance Configuration: If you are connecting to a named SQL Server instance, the port may not be the default (1433). SQL Server uses a "browser" service to map instance names to dynamic ports. If you specify a port directly, ensure it matches the port your SQL Server instance is actually listening on. If you use the default port but the instance is on a different port, the connection will fail. This is a common issue when connecting to named instances—Airbyte and other clients need the correct port, not just the instance name. You may need to check with your IT or database administrator to confirm the correct port for your instance. See the discussion about named instances and ports for more details: [Forum Post: Source MSSQL - The connection tests failed](https://discuss.airbyte.io/t/2892) and [Github Issue: MSSQL connector fails to connect to a Named Instance](https://github.com/airbytehq/airbyte/issues/22359). 2. SQL Server Not Running or Not Accepting TCP/IP Connections: The error also suggests verifying that SQL Server is running and configured to accept TCP/IP connections on the specified port. Make sure the SQL Server service is up and that TCP/IP is enabled in the SQL Server Network Configuration. 3. Firewall or Network Issues: Ensure that there are no firewall rules blocking the port you are trying to connect to. 4. SQL Server Version: The driver requires SQL Server 2005 or later. If you are running an older version, it will not work. Next Steps: - Double-check the port number and ensure it matches the actual port your SQL Server instance is listening on. - If you are using a named instance, either specify the correct port or ensure the SQL Server Browser service is running. - Verify that SQL Server is running and TCP/IP is enabled. - Check for any firewall or network restrictions. - Ensure your SQL Server version is 2005 or later. If you continue to have issues, please provide more details about your SQL Server setup (version, instance name, port, etc.) and how you are configuring the connection in Airbyte.
f
@kapa.ai the port is correct and the sql server version is newer than 2005. Also tcp/ip is open. What other things can we try?
k
A message from kapa.ai
Given that the port is correct, your SQL Server version is newer than 2005, and TCP/IP is enabled, here are additional troubleshooting steps based on the knowledge sources: 1. Check Docker Networking If you are running Airbyte via Docker, connecting to 127.0.0.1 or localhost from within a container may not work as expected. The container’s localhost is not the host machine’s localhost. Instead, use the host’s IP address or configure Docker networking appropriately. See this advice: > Sometimes using local dockers you need to configure your network or use different IP to connect to your container. [Forum Post: Could not connect with provided configuration. Error: Cannot create PoolableConnectionFactory](https://discuss.airbyte.io/t/190) 2. Named Instance Handling If you are connecting to a named instance, ensure you are specifying the correct port, as SQL Server named instances often use dynamic ports. Airbyte does not support instance name resolution; you must provide the exact port number for the instance. > The PORT number is not the default port number 1433 but a different port number for the named instance. [Forum Post: Source MSSQL - The connection tests failed](https://discuss.airbyte.io/t/2892) > In the 'Host' field, insert the address and specify an instance name (eg. 127.0.0.1\sql2019) [Github Issue: MSSQL connector fails to connect to a Named Instance](https://github.com/airbytehq/airbyte/issues/22359) 3. JDBC URL Parameters Try adding or adjusting JDBC URL parameters in the Airbyte connection configuration. Sometimes, additional parameters are needed for authentication or encryption. [MSSQL Destination Getting Started](https://docs.airbyte.com/integrations/destinations/mssql#getting-started) 4. SQL Server Configuration Double-check that SQL Server is listening on the expected IP and port. You can use SQL Server Configuration Manager to verify this. 5. Firewall and Security Software Even if TCP/IP is enabled, ensure that no firewall or security software is blocking the connection between Airbyte and SQL Server. If you have confirmed all of the above and the issue persists, please provide more details about your deployment (e.g., Docker vs. direct install, network setup, and any relevant logs). If you are using Docker, the networking setup is a common source of this type of error.