Hi <@U04S8PLJWMT> I have a google cloud SQL instan...
# ask-ai
s
Hi @kapa.ai I have a google cloud SQL instance with MySQL 8.0.26. Using that as a Mysql source I keep getting broken pipe error since upgrading to Airbyte OS 2.0.0 with the latest Mysql source connector version. Do you have any insights that might help me solve this?
k
The "broken pipe" error when connecting Airbyte to a Google Cloud SQL MySQL 8.0.26 instance is a known issue that can be related to network timeouts or connection handling between Airbyte and MySQL. Based on the knowledge sources, here are some steps and insights that may help: 1. Increase MySQL Timeout Settings For MySQL 8.0.26 and later, it's recommended to increase the following server timeout values to help prevent connection drops that can lead to "broken pipe" or
EOFException
errors:
Copy code
sql    SET GLOBAL replica_net_timeout = 120;    SET GLOBAL thread_pool_idle_timeout = 120;
These settings help keep the replication connection alive during long-running syncs, which is especially important for Change Data Capture (CDC) or large initial snapshots. The variable
replica_net_timeout
replaces
slave_net_timeout
in MySQL 8.0.26 and later. Make sure to use the correct variable for your version [see docs](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#eventdatadeserializationexception-errors-during-initial-snapshot). 2. Check GCP Load Balancer and Network Settings If you are running Airbyte on GCP or behind a load balancer, ensure that the backend service timeout is set high enough to accommodate long sync operations. A low timeout can cause the connection to drop, resulting in "broken pipe" errors. Users have reported similar issues with other connectors due to GCP load balancer timeouts [see example](https://discuss.airbyte.io/t/3519). 3. Connector and Airbyte Version Compatibility Ensure that your MySQL source connector and Airbyte versions are compatible. There have been breaking changes in connector configuration formats in the past, so double-check your configuration if you recently upgraded [see upgrade notes](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting#upgrading-from-068-and-older-versions-to-069-and-later-versions). 4. General MySQL Source Limitations The Airbyte MySQL connector is compatible with MySQL 8.0, and Google Cloud SQL is a supported deployment, but there may be vendor-specific limitations. If you continue to experience issues, consider reviewing the [general troubleshooting guide](https://docs.airbyte.com/integrations/sources/mysql/mysql-troubleshooting). If you have already tried these steps and the issue persists, please provide more detailed logs or configuration information for further troubleshooting. Let me know if you need more specific guidance!
s
@kapa.ai Can I downgrade the Mysql connector for the time being?
k
A message from kapa.ai
Yes, you can downgrade the MySQL connector in Airbyte if you are using a self-managed (open source) deployment. This is a common workaround for connector-related issues, as seen in several user reports. For example, users have successfully resolved blocking errors by downgrading to earlier connector versions, such as 3.11.21 or 3.5.1, when newer versions caused problems [see example](https://github.com/airbytehq/airbyte/issues/64139) [see another](https://github.com/airbytehq/airbyte/issues/52075). To downgrade: 1. Go to Workspace settings > Sources in the Airbyte UI. 2. Find the MySQL connector and click Change. 3. Enter the desired previous version (e.g., 3.11.21). 4. Save and apply the change. Note: - If you are using Airbyte Cloud, downgrading connectors is generally not possible; you would need to contact support. - After downgrading, you may need to clear data or refresh schemas if there were breaking changes between versions [see instructions](https://docs.airbyte.com/platform/managing-airbyte/connector-updates#actions-to-take-in-response-to-connector-updates). If you need to pin a specific version, you can set the Default Version for the connector in the settings as well [see documentation](https://docs.airbyte.com/platform/managing-airbyte/connector-updates#actions-to-take-in-response-to-connector-updates). Let me know if you need step-by-step instructions for your specific deployment!