<@U04S8PLJWMT> I have added a custom docker connec...
# ask-ai
s
@kapa.ai I have added a custom docker connector using the airbyte ui. But when I fetch for the sources using the get request, the response does not contain the new connector. Why is that happening ?
k
There are a few known reasons why a custom Docker connector added via the Airbyte UI might not appear when you fetch sources using the API: 1. UI Bug or Backend Issue: There have been reports of custom connectors not showing up in the UI or API response after being added, even though the import process appears successful. This has been observed in certain Airbyte versions (e.g., 0.39.5-alpha). In some cases, the connector count increases temporarily but reverts after a refresh, indicating a backend issue or a bug in the UI/API synchronization. This was acknowledged by the Airbyte team and escalated for investigation. A temporary workaround suggested was to manually update the Airbyte database to set the connector as public, but this is not an official fix and should be used with caution [Custom Connector not showing after successfull import](https://discuss.airbyte.io/t/1266) [Cannot add connector in admin UI](https://discuss.airbyte.io/t/1308). 2. Connector Not Properly Registered: If the connector image is not correctly loaded into the Airbyte environment (especially when using Kubernetes/kind), it may not be registered or available for listing. Ensure you have loaded the Docker image into the cluster using the appropriate command:
Copy code
kind load docker-image <image-name>:<image-tag> -n airbyte-abctl
[Loading connector docker containers into kind](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#loading-connector-docker-containers-into-kind) 3. Version Compatibility: Some issues are version-specific. If you are using an older version of Airbyte, consider upgrading, as newer versions may have resolved these bugs. 4. API Endpoint Limitation: If you are using Airbyte Cloud, note that you can only create or modify custom connectors using a YAML manifest, not Docker images, via the API [Create custom connectors from YAML or Docker images using the API and Terraform](https://docs.airbyte.com/release_notes/v-1.6#create-custom-connectors-from-yaml-or-docker-images-using-the-api-and-terraform). Recommendation: - Double-check that your connector image is loaded and accessible. - Ensure you are using a supported and up-to-date Airbyte version. - If the issue persists, it may be a known bug, and you should check for open issues or escalate to the Airbyte team. If you need a temporary workaround and are comfortable with database changes, you can try updating the
actor_definition
table as described in the forum post, but this is not officially recommended for production environments [Custom Connector not showing after successfull import](https://discuss.airbyte.io/t/1266). If you need more specific troubleshooting, please provide your Airbyte version and deployment method.
s
@kapa.ai when I do terraform apply. I am getting the following error.
Copy code
Error: failure to invoke API
│
│   with module.airbyte_connections.airbyte_connection.this["connection"],
│   on module/airbyte-connections/main.tf line 243, in resource "airbyte_connection" "this":
│  243: resource "airbyte_connection" "this" {
│
│ unknown status code returned: Status 502
│
│ <html><head>
│ <meta http-equiv="content-type" content="text/html;charset=utf-8">
│ <title>502 Server Error</title>
│ </head>
│ <body text=#000000 bgcolor=#ffffff>
│ <h1>Error: Server Error</h1>
│ <h2>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.</h2>
│ <h2></h2>
│ </body></html>
k
A message from kapa.ai
A 502 error ("Bad Gateway" or "Server Error") when running
terraform apply
with the Airbyte Terraform provider typically indicates a problem with the Airbyte server or its network/proxy configuration, rather than an issue with your Terraform code itself. Based on the knowledge sources, here are some possible causes and troubleshooting steps: 1. Airbyte Server/Proxy Routing Issues: A 502 error can occur if the Airbyte proxy (such as Nginx) cannot route your API request to the correct backend service. This might be due to a misconfiguration, a service being down, or a network issue. For example, if the Airbyte API is not reachable at the expected port or address, the proxy will return a 502 error. Review your Airbyte deployment logs for errors related to routing or connectivity between services ([/v1/connections endpoint returns 502 bad gateway](https://github.com/airbytehq/airbyte/issues/33742)). 2. Temporary Server Outage or Restart: The error message suggests the server encountered a temporary error. Sometimes, simply retrying after a short wait can resolve the issue if the server was restarting or under heavy load. 3. Check Airbyte Service Health: Ensure all Airbyte services (server, webapp, etc.) are running and healthy. If you are running Airbyte in Docker or Kubernetes, check the status of all containers/pods. 4. API Endpoint and Version Compatibility: Make sure you are using the correct API endpoint and that your Airbyte instance is compatible with the version of the Terraform provider you are using. Summary: A 502 error is most often a server-side or network/proxy issue. Check your Airbyte server and proxy logs for errors, ensure all services are running, and try again after a short wait. If the problem persists, review your deployment's network and proxy configuration for possible routing issues ([/v1/connections endpoint returns 502 bad gateway](https://github.com/airbytehq/airbyte/issues/33742)).