I am trying to do a create connection api call for...
# replication-troubleshooting
r
I am trying to do a create connection api call for Mysql -> s3 on OSS, and it works when I use the api call for my other connections (snowflake, postgres) when I use the same flow. However, I am getting a { "status": 500, "type": "https://reference.airbyte.com/reference/errors", "title": "unexpected-problem", "detail": "An unexpected problem has occurred. If this is an error that needs to be addressed, please submit a pull request or github issue.", "documentationUrl": null, "data": { "message": "Something went wrong in the connector. logs:Workload failed, source: airbyte_platform" } } when I make the basic post request: { "name": "badump1", "sourceId": "sourceUUID", "destinationId": "destUUID", "schedule": { "scheduleType": "manual" } }. This is only happening with the mysql connection.
k
Based on the information in the knowledge sources, a 500 error with the message "Something went wrong in the connector. logs:Workload failed, source: airbyte_platform" during a create connection API call for MySQL (but not for other sources like Snowflake or Postgres) can be caused by several issues: 1. Connector-Specific Issues: There are known cases where MySQL connectors can fail due to configuration or compatibility issues. For example, problems with SSH tunneling, connector version mismatches, or specific MySQL settings can cause failures that do not affect other connectors. Reviewing the connector logs for more details is recommended, as the error message suggests the failure is within the connector itself, not the API layer. In some cases, downgrading or upgrading the MySQL connector version has resolved similar issues for other users [[MySQL to Postgres Sync have started failing](https://discuss.airbyte.io/t/3258)]. 2. API Payload Issues: There are reports that certain properties in the connection payload (such as
prefix
or
data_residency
) can cause 500 errors if they contain unexpected values or character combinations. However, your payload does not include these fields, so this is less likely unless defaults are being set elsewhere [[prefix property of connection causes 500 error](https://github.com/airbytehq/airbyte/issues/56452)]. 3. Workload API Authentication: In Kubernetes deployments, mismatched or missing authentication tokens between Airbyte components can cause connector failures. If you are running Airbyte on Kubernetes, ensure that the
WORKLOAD_API_AUTH_HEADER
and
WORKLOAD_API_BEARER_TOKEN
environment variables are set consistently across all relevant pods [[source-postgres] Connector setup fails with HTTP 502 error](https://github.com/airbytehq/airbyte/issues/65567). 4. General OSS Bugs: There are closed issues where users encountered 500 errors when adding new connectors, which were sometimes resolved by restarting the Airbyte server to clear cache or by ensuring all components are running compatible versions [[An unexpected error occurred. Please report this if the issue persists. (HTTP 500)](https://github.com/airbytehq/airbyte/issues/54058)]. Recommended next steps: - Check the Airbyte server and connector logs for more detailed error messages. - Ensure your MySQL connector version is compatible with your Airbyte OSS version. - If using Kubernetes, verify that all relevant environment variables for authentication are set correctly. - Try restarting the Airbyte server to clear any potential cache issues. - If the problem persists, consider downgrading or upgrading the MySQL connector version, as this has resolved similar issues for other users. If you can provide the connector logs, it may be possible to give more specific guidance. The knowledge sources do not contain a definitive root cause for your exact error, but the above steps are based on similar reported issues.
r
@kapa.ai how can i restart the airbyte server
k
A message from kapa.ai
To restart the Airbyte server, the method depends on how you deployed Airbyte: ### If you used abctl (local/Kubernetes): You can restart your local Kubernetes instance with:
Copy code
abctl local deployments --restart
This will restart the Airbyte server and related components [[Install and manage local Airbyte instances](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#install-and-manage-local-airbyte-instances)]. ### If you deployed on Kubernetes (manually or via Helm): You can restart the relevant deployments with:
Copy code
kubectl -n <namespace> rollout restart deployment/<deployment-name>
For example, if using the default namespace and deployment names:
Copy code
kubectl -n airbyte-abctl rollout restart deployment airbyte-abctl-worker kubectl -n airbyte-abctl rollout restart deployment airbyte-abctl-workload-api-server
Wait for the rollouts to complete:
Copy code
kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-worker kubectl -n airbyte-abctl rollout status deployment airbyte-abctl-workload-api-server
[[source-postgres] Connector setup fails with HTTP 502 error](https://github.com/airbytehq/airbyte/issues/65567) | [Problem with source and destination configuration on version 1.8.3](https://github.com/airbytehq/airbyte/issues/66692) ### If you used Docker Compose: You can restart Airbyte with:
Copy code
docker-compose restart
or bring it down and up again:
Copy code
docker-compose down docker-compose up -d
(While this is a common Docker practice, the knowledge sources do not explicitly mention this command for Airbyte.) If you need more specific instructions, please specify your deployment method.
r
@kapa.ai is there any way to get the api call connection logs from the airbyte ui since the connection was never actually created?
k
A message from kapa.ai
If the connection was never actually created, you will not find logs for that connection in the Airbyte UI under the usual connection/job history or timeline views. The UI allows you to view and download logs for sync jobs and existing connections, but it does not provide logs for failed API calls that occur before a connection is established. This is confirmed by the documentation, which states that logs are accessible from the connection's job history or timeline—both of which require the connection to exist first [[Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs)]. For errors that occur during the creation of a connection (i.e., before the connection is saved), you would need to check the Airbyte server or connector logs directly on your deployment (e.g., via Docker, Kubernetes, or your host machine), as these are not exposed in the UI for non-existent connections [[Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs)]. If you need to troubleshoot API call failures during connection creation, you can also use your browser's developer tools (Network tab) to inspect the API request and response, as suggested in community discussions [[Forum: Unable to access Airbyte server or connector logs from UI](https://discuss.airbyte.io/t/717)]. Summary: No, there is no way to get logs for failed connection creation API calls from the Airbyte UI if the connection was never created. You must check backend logs or use browser developer tools for troubleshooting in this scenario.
r
@kapa.ai when i try to make a manual connection in the airbyte ui i get: Internal message: Init container error encountered while hydrating secrets for id: 435bb9a5-7887-4809-aa58-28c27df0d7ad_fe9d9103-aee1-425e-9992-e34090e34942_0_discover. Encountered exception of type: class secrets.persistence.SecretCoordinateException. Exception message: That secret was not found in the store! Coordinate: airbyte_workspace_8eefd865-0bb5-4b8e-b2ef-a67585c786a6_secret_4194dc90-9fff-4558-968c-03626048f353_v1. Failure origin: airbyte_platform
k
A message from kapa.ai
The error message you are seeing: > Init container error encountered while hydrating secrets for id: ... Exception message: That secret was not found in the store! Coordinate: airbyte_workspace_...secret..._v1. indicates that Airbyte is attempting to retrieve a secret (such as a password or API key) from its configured secret persistence layer, but the secret at the specified coordinate does not exist. This typically happens when: - The secret was never created or persisted correctly. - The secret was deleted or lost from the secret store (e.g., AWS Secrets Manager, Google Secret Manager, Azure Key Vault, or Kubernetes secrets). - There was a misconfiguration in the secret manager setup, or the secret manager is not accessible. How Airbyte Handles Secrets: Airbyte obfuscates and stores secrets using a coordinate system. When a connection or operation (like Discover) is run, Airbyte tries to hydrate (retrieve) the secret using this coordinate. If the secret is missing, you get the error you described [[Understanding Secrets](https://docs.airbyte.com/platform/1.8/understanding-airbyte/secrets)]. What you can do: 1. Check Secret Store Configuration: Ensure your secret persistence layer (Kubernetes secrets, AWS Secrets Manager, etc.) is correctly configured and accessible by Airbyte. Double-check that the required secrets exist and are not missing or misnamed [[Secret Management](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/secrets)]. 2. Recreate the Connection: If the secret is missing, you may need to delete and recreate the source/destination or the connection in the Airbyte UI. This will prompt Airbyte to store the secrets again. 3. Review Secret Lifecycle: If you recently changed your secret manager configuration, note that modifying the secret storage backend will cause all existing connectors to fail, and you must recreate them to ensure they use the new secret store [[Secret Management](https://docs.airbyte.com/platform/1.8/deploying-airbyte/integrations/secrets)]. 4. Check for Expired or Deleted Secrets: Airbyte may expire or delete secrets under certain conditions (e.g., after a configuration update or deletion). If a secret was deleted, it will not be found when needed [[Understanding Secrets](https://docs.airbyte.com/platform/1.8/understanding-airbyte/secrets)]. Summary: This error means Airbyte cannot find a required secret in your configured secret store. Check your secret manager configuration, ensure the secret exists, and consider recreating the affected connection or connector. If you recently changed your secret storage backend, all existing connectors must be recreated to function properly. If you need more specific troubleshooting steps, please provide details about your secret manager setup and any recent changes to your Airbyte deployment.