I have a connection with a source of Mongdb v2. I ...
# ask-ai
i
I have a connection with a source of Mongdb v2. I have 2 databases in the source, that both have obviiously differnte names, but exact same collection name. When I try to create a connection with Terraform, I can see the streams in the terrafomr plan, having the same name, but different namespaces, begin the name of the db, however whne applying the terraform script I'm getting. "Duplicate stream found │ in configuration for"
k
Airbyte currently requires that stream identifiers (the combination of stream name and namespace) be unique within a connection. However, when using the Airbyte public API (and thus Terraform), there is a known limitation: you cannot define multiple streams with the same name but different namespaces within a single connection. This is a regression from the older server API, which did support this use case. As a result, when you try to create a connection with two MongoDB databases that have collections with the same name, you encounter the "Duplicate stream found in configuration" error—even though the namespaces (database names) are different. This limitation is documented in a GitHub issue, where users have reported that the public API (and by extension, Terraform) does not allow multiple streams with the same name, even if their namespaces differ. The UI supports this, but the API does not, and there is currently no workaround available in Terraform or the public API. The only way to achieve this is through the UI or the deprecated server API, not via Terraform at this time. The Airbyte team is aware of this gap, but as of now, it remains unresolved [Reinstate "namespace" support within "stream" object in public API](https://github.com/airbytehq/airbyte/issues/47140). Summary: You cannot currently create a single Airbyte connection via Terraform (or the public API) that syncs multiple MongoDB collections with the same name but different source databases (namespaces). This is a known limitation, and the only supported way is through the UI, not Terraform or the public API.
i
@kapa.ai well developers added namespace in the stream configuration, so when calling the streams api it should see the difference know? am I missing something maybe ?
k
A message from kapa.ai
You are correct that the Airbyte UI and the older server API support specifying a namespace for each stream, which allows you to distinguish between streams with the same name but different namespaces (e.g., two collections with the same name in different MongoDB databases). However, the current public API—which is what Terraform uses—does not fully support this feature. From the GitHub issue, users have confirmed that even if you specify the namespace in the stream configuration when using the public API (and thus Terraform), Airbyte still returns a "Duplicate stream found in configuration" error. This is because the public API does not treat the combination of stream name and namespace as a unique identifier for streams, unlike the UI or the server API. As a result, it does not allow multiple streams with the same name, even if their namespaces are different. This is a known limitation and is not something you are missing in your configuration—it's a gap in the current public API's functionality [Reinstate "namespace" support within "stream" object in public API](https://github.com/airbytehq/airbyte/issues/47140). So, even though developers have added the namespace field to the stream configuration, the public API (and Terraform) does not yet support using it to differentiate streams with the same name. This is why you are still seeing the duplicate stream error. The only workaround at this time is to use the Airbyte UI, which does support this use case.
i
@kapa.ai I have monogdb databases with colelction that sometimes have hundres of thousand of documents, whic sync mode is best for me
k
A message from kapa.ai
For MongoDB databases with collections containing hundreds of thousands of documents, the recommended sync mode is incremental sync using Change Data Capture (CDC). This approach is much more efficient than full refresh, as it only replicates new or updated records since the last sync, significantly reducing the amount of data transferred and improving performance. CDC also ensures that deletes are propagated to the destination, which is not the case with standard incremental syncs without CDC. Full refresh syncs (either overwrite or append) are generally not recommended for large datasets or frequently synchronized data, as they require copying the entire dataset every time, which can be inefficient and resource-intensive for large collections [Explore Airbyte's full refresh data synchronization](https://airbyte.com/tutorials/full-data-synchronization#step-9). The MongoDB V2 connector supports both CDC and full refresh modes, but for large or frequently updated collections, CDC is the preferred method [MongoDB V2 Replication Methods](https://docs.airbyte.com/integrations/sources/mongodb-v2#replication-methods). Summary: - Use incremental sync with CDC for large MongoDB collections. - Avoid full refresh for large or frequently updated datasets due to inefficiency. If you need to propagate deletes, CDC is especially important, as standard incremental syncs do not handle deletions [Explore Airbyte’s incremental data synchronization](https://airbyte.com/tutorials/incremental-data-synchronization#step-8).
i
@kapa.ai how to enable stream via the API
k
A message from kapa.ai
To enable a stream via the Airbyte API, you need to update the connection's schema configuration to set the desired stream as enabled. This is typically done by modifying the connection's configuration and specifying which streams should be active. The process, as described in the documentation, involves toggling the stream on or off in the schema configuration. In the Airbyte UI, this is done by checking the box next to the stream in the "Schema" tab of a connection. When using the API, you would update the connection configuration to include the stream in the list of enabled streams. However, the knowledge sources do not provide a direct API example or endpoint for enabling a stream; they only describe the process conceptually and through the UI [Configuring schemas](https://docs.airbyte.com/platform/using-airbyte/configuring-schema). If you are using the API, you would typically update the connection's configuration payload to include the stream you want to enable. The exact API call and payload structure are not detailed in the provided knowledge sources, so I cannot provide a code example or endpoint with confidence. Summary: - Enabling a stream via the API involves updating the connection's schema configuration to include the stream as enabled. - The knowledge sources do not provide a specific API endpoint or payload example for this action. If you need a concrete API example, please refer to the official Airbyte API documentation or the UI for guidance, as the knowledge sources here do not contain enough detail to provide a step-by-step API request.
i
@kapa.ai What am I to do in the event that the connectot allows mulitple databases with same collection names, and I can configure them manually in UI< ut the API does not allow a request to patch it
k
A message from kapa.ai
If the connector (such as MongoDB) allows you to configure multiple databases with the same collection names via the Airbyte UI, but the API does not allow you to patch or create such a configuration (due to the "Duplicate stream found" error), you are currently limited by a known gap in the Airbyte public API. This limitation is documented: the public API (and tools like Terraform that use it) do not support configuring multiple streams with the same name but different namespaces, even though the UI does. As a result, you cannot automate this setup via the API or Terraform at this time. The only available workaround is to configure these connections manually through the Airbyte UI [Reinstate "namespace" support within "stream" object in public API](https://github.com/airbytehq/airbyte/issues/47140). Summary: - You can configure multiple databases with the same collection names in the UI. - The public API does not support this due to a limitation with stream uniqueness handling. - There is no API or Terraform workaround; manual configuration in the UI is required until this limitation is addressed. If this is a critical need, you may want to follow or comment on the related GitHub issue to track progress or signal its importance to the Airbyte team.
i
@kapa.ai no airbyte web app in chart 1.8.0 ?
k
A message from kapa.ai
Starting with Airbyte Helm chart version 1.8.0, the
airbyte-webapp
component has been removed. Its functionality has been merged into the
airbyte-server
, and there is no longer a separate
webapp
image or deployment. You should update your ingress rules to point to the
server
service instead of
webapp
when upgrading to or deploying version 1.8.0 or later [Release notes: Airbyte 1.8](https://docs.airbyte.com/release_notes/v-1.8#breaking-changes) [Update ingress for version 1.7 and later](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress-1-7). If you try to deploy the webapp in 1.8.0, you will encounter errors because the image is no longer published or available [Airbyte Helm 1.8.0 is missing webapp:1.8.0](https://github.com/airbytehq/airbyte/issues/65096).
i
@kapa.ai and the API? where is it now ?
k
A message from kapa.ai
With the removal of the
airbyte-webapp
in Helm chart 1.8.0 and later, all API endpoints (both UI and programmatic) are now served by the
airbyte-server
service. You should direct your API requests to the
airbyte-server
instead of the
webapp
. This change is part of the breaking changes introduced in version 1.7 and finalized in 1.8, where the webapp’s functionality was merged into the server [Release notes: Airbyte 1.8](https://docs.airbyte.com/release_notes/v-1.8#breaking-changes) [Update ingress for version 1.7 and later](https://docs.airbyte.com/platform/deploying-airbyte/integrations/ingress-1-7). So, after upgrading, your API endpoint should point to the
airbyte-server
service. If you are configuring ingress, ensure it routes API traffic to this service.
i
@kapa.ai workload launcher fails ebcause of Error: couldn't find key dataplane-client-id in Secret airbyte/airbyte-config-secrets what can i do, and why do I need this secre ? do i even need it ?
k
A message from kapa.ai
The error
Error: couldn't find key dataplane-client-id in Secret airbyte/airbyte-config-secrets
means that Airbyte is expecting a Kubernetes secret named
airbyte-config-secrets
(or a custom name you may have set) to contain a key called
dataplane-client-id
, but it is missing. Why do you need this secret? The
dataplane-client-id
(and its companion,
dataplane-client-secret
) are required for Airbyte's workload launcher and data plane components to authenticate and communicate securely with the control plane. This is especially important in multi-region or enterprise deployments, but is also required in standard Helm-based installations starting from Airbyte 1.6.x and later. Without these credentials, the workload launcher cannot start, resulting in the error you are seeing [Multiple region deployments – Configure Kubernetes Secrets](https://docs.airbyte.com/platform/1.7/enterprise-setup/multi-region#step-4). What can you do? You must create or update the
airbyte-config-secrets
Kubernetes secret to include the required keys. Here is an example manifest:
Copy code
yaml apiVersion: v1 kind: Secret metadata:   name: airbyte-config-secrets type: Opaque stringData:   DATA_PLANE_CLIENT_ID: your-data-plane-client-id   DATA_PLANE_CLIENT_SECRET: your-data-plane-client-secret
Apply it with:
Copy code
sh kubectl apply -f secrets.yaml -n airbyte
Or create it directly:
Copy code
sh kubectl create secret generic airbyte-config-secrets \   --from-literal=DATA_PLANE_CLIENT_ID='your-data-plane-client-id' \   --from-literal=DATA_PLANE_CLIENT_SECRET='your-data-plane-client-secret' \   --namespace airbyte
Do you need it? Yes, for Airbyte versions 1.6.x and later, this secret is required for the platform to function correctly, even in single-region/community deployments. If you are missing these values, the workload launcher and other components will fail to start [Multiple region deployments – Configure Kubernetes Secrets](https://docs.airbyte.com/platform/1.7/enterprise-setup/multi-region#step-4). If you are unsure where to get the values for
DATA_PLANE_CLIENT_ID
and
DATA_PLANE_CLIENT_SECRET
, they are typically generated during the initial setup or provided by your Airbyte control plane administrator. Summary: - The secret is required for Airbyte to function. - You must provide
DATA_PLANE_CLIENT_ID
and
DATA_PLANE_CLIENT_SECRET
in your Kubernetes secret. - Without it, the workload launcher will fail to start. If you need more details on how to generate or retrieve these credentials, please refer to your Airbyte deployment documentation or administrator, as the knowledge sources do not specify the generation process.
i
I mean cna I leave them empty ?
@kapa.ai I mawn can I leave them empty ?
k
A message from kapa.ai
No, you cannot leave the
DATA_PLANE_CLIENT_ID
and
DATA_PLANE_CLIENT_SECRET
empty. The Airbyte workload launcher and related components require these values to authenticate and function properly. If these keys are missing or empty in the
airbyte-config-secrets
secret, you will encounter errors and the workload launcher will fail to start [Multiple region deployments – Configure Kubernetes Secrets](https://docs.airbyte.com/platform/1.7/enterprise-setup/multi-region#step-4). The documentation and user reports confirm that these credentials are required for the platform to operate, even in standard (non-multi-region) deployments. There is no indication in the knowledge sources that leaving them empty is supported or will allow Airbyte to function correctly.
i
@kapa.ai Im using the OSS version and I do not need this
k
A message from kapa.ai
If you are using the OSS (open-source) version of Airbyte, the requirement for
DATA_PLANE_CLIENT_ID
and
DATA_PLANE_CLIENT_SECRET
in the
airbyte-config-secrets
secret still applies for recent versions (1.6.x and later) when deploying with Helm or in Kubernetes environments. The knowledge sources indicate that these secrets are necessary for the workload launcher and other components to start, even in non-enterprise, single-region, or community deployments. If these values are missing or empty, the workload launcher will fail to start [Multiple region deployments – Configure Kubernetes Secrets](https://docs.airbyte.com/platform/1.7/enterprise-setup/multi-region#step-4). There is no indication in the provided documentation that OSS users can omit or leave these values empty. The error you are seeing is a direct result of these required keys being absent from your secret. Summary: Even for OSS deployments, you must provide non-empty values for
DATA_PLANE_CLIENT_ID
and
DATA_PLANE_CLIENT_SECRET
in your Kubernetes secret for Airbyte to function properly.
i
@kapa.ai well what values can I provide?
k
A message from kapa.ai
For OSS (open-source) Airbyte deployments, the knowledge sources indicate that you must provide values for
DATA_PLANE_CLIENT_ID
and
DATA_PLANE_CLIENT_SECRET
in your
airbyte-config-secrets
Kubernetes secret, but they do not specify what those values should be for OSS/community setups. The documentation shows example manifests with placeholders like
your-data-plane-client-id
and
your-data-plane-client-secret
, but does not clarify how to generate or obtain them for OSS users [Multiple region deployments – Configure Kubernetes Secrets](https://docs.airbyte.com/platform/1.7/enterprise-setup/multi-region#step-4). If you are not running a multi-region or enterprise setup, and you do not have these values from an Airbyte control plane or administrator, the knowledge sources do not provide guidance on what to use. There is no mention of default values or a documented way to generate them for OSS-only deployments. Summary: The knowledge sources do not specify what values to use for
DATA_PLANE_CLIENT_ID
and
DATA_PLANE_CLIENT_SECRET
in OSS deployments. If you do not have these values, you may need to consult the Airbyte community or official support channels for further guidance, as the documentation does not provide a solution for this scenario.
i
@kapa.ai I managed ot get this rolling, but server is now complainig about io.airbyte.data.services.ServiceAccountNotFound: Service account not found: 6ad0cedf-052d-4259-a3b7-5a6955703492
k
A message from kapa.ai
The error
io.airbyte.data.services.ServiceAccountNotFound: Service account not found: 6ad0cedf-052d-4259-a3b7-5a6955703492
indicates that Airbyte is trying to use a service account with the specified ID, but it cannot find it in your Kubernetes cluster. Based on the knowledge sources, here are the most relevant steps and considerations: 1. Custom Service Account Configuration: If you are using a custom service account (not the default
airbyte-sa
), you need to ensure that the service account is correctly created and referenced in your
values.yaml
file. For example:
Copy code
yaml    serviceAccount:      name: <your-service-account-name>
This should match the name of the service account present in your Kubernetes namespace [Customizing your Service Account](https://docs.airbyte.com/platform/1.7/enterprise-setup/implementation-guide#customizing-your-service-account). 2. Service Account Existence: Make sure the service account with the expected name actually exists in the namespace where Airbyte is deployed. You can check this with:
Copy code
sh    kubectl get serviceaccount -n <namespace>
3. Helm Chart and Service Account Management: If you are managing the service account externally (not letting the Helm chart create it), ensure you have set:
Copy code
yaml    serviceAccount:      create: false      name: <your-service-account-name>
and that the service account is created before deploying or upgrading Airbyte [helm upgrade deletes and recreates serviceaccount](https://github.com/airbytehq/airbyte/issues/18731). 4. Correct Reference in Workload Launcher: There have been issues in the past where the workload launcher or other components defaulted to a hardcoded service account name (like
airbyte-admin
). Make sure your configuration (especially
global.jobs.kube.serviceAccountName
if using Helm) matches the actual service account name you want to use [[helm] Cannot start replication pods when using a service account not named
airbyte-admin
](https://github.com/airbytehq/airbyte/issues/49938). If you have verified all of the above and the error persists, it may be due to a mismatch between the service account name expected by Airbyte and what is actually present in your cluster. Double-check your
values.yaml
and Kubernetes resources for consistency. If you need to create the service account manually, here is an example:
Copy code
yaml apiVersion: v1 kind: ServiceAccount metadata:   name: <your-service-account-name>   namespace: <your-namespace>
Summary: - Ensure the service account exists in your namespace. - The name in your
values.yaml
must match the actual service account. - If managing the service account externally, set
create: false
in your Helm values. - Double-check for any hardcoded service account references in your configuration. If you continue to see this error after these checks, the knowledge sources do not provide further troubleshooting steps specific to this error.
i
@kapa.ai Im contantly getting Could not find attempt stats for job_id from irbyte server when trying to run a sync, what is happenig what must I do ?
k
A message from kapa.ai
The error message "Could not find attempt stats for job_id" or repeated warnings like "Missing stats for job X attempt Y" from the Airbyte server typically means that Airbyte is unable to locate or generate statistics for a specific job attempt. This issue is seen in both logs and API responses and has been reported by multiple users in the community and GitHub issues. What is happening? - Airbyte is trying to retrieve statistics (such as records synced, bytes transferred, etc.) for a job attempt, but the data is missing or not found in the underlying storage or database. - This can happen if the job attempt did not complete properly, if there was a storage misconfiguration, or if there is a mismatch between the expected and actual state of job/attempt metadata. - In some cases, this is related to changes in storage backends (e.g., migrating from MinIO to GCS) or environment variables affecting how state and logs are stored [JobHistoryHandler - "Missing stats for job" warning](https://discuss.airbyte.io/t/4016), [Error: JobHistoryHandler in docker logs](https://discuss.airbyte.io/t/3804). What should you do? 1. Check Storage Configuration: If you recently changed your storage backend (e.g., from MinIO to GCS), ensure all related environment variables are set correctly and that Airbyte has access to the storage where job stats are kept. 2. Review Job and Attempt Tables: The Airbyte jobs database has tables for jobs and attempts, which store metadata and stats. If these records are missing or corrupted, stats cannot be retrieved [Jobs Database Schema](https://docs.airbyte.com/platform/understanding-airbyte/database-data-catalog#jobs-database). 3. Check for Incomplete or Failed Jobs: If a job attempt failed or was interrupted, stats may not have been written. Review the logs for the specific job and attempt to see if there were errors during execution. 4. Log Noise vs. Actual Failure: In some cases, these errors are logged as warnings and do not affect sync functionality, but they do pollute the logs. If your syncs are otherwise succeeding, this may be a cosmetic/logging issue [Error: JobHistoryHandler in docker logs](https://discuss.airbyte.io/t/3804). 5. API Limitation: If you are using the public API or Terraform, be aware that some features (like handling streams with the same name in different namespaces) have limitations that can cause metadata issues [Reinstate "namespace" support within "stream" object in public API](https://github.com/airbytehq/airbyte/issues/47140). If the problem persists: - Double-check your storage and environment configuration. - Try running a new sync after ensuring all settings are correct. - If you migrated storage or changed configuration, consider whether old job metadata is still accessible. - If you are on a recent version and this is blocking, you may want to open a GitHub issue or follow up on existing ones, as this is a known but sometimes environment-specific problem. Summary: This error usually points to missing or inaccessible job attempt statistics, often due to storage misconfiguration, incomplete jobs, or environment changes. Double-check your storage setup and job metadata, and review logs for more context. If syncs are working but logs are noisy, it may be a known cosmetic issue. If syncs are failing, further investigation into your storage and job state is needed [JobHistoryHandler - "Missing stats for job" warning](https://discuss.airbyte.io/t/4016), [Error: JobHistoryHandler in docker logs](https://discuss.airbyte.io/t/3804).
i
@kapa.ai they affect me becaue I run a sync and absolutely nothing happenis and no new replicatiojn pods are atrting
k
A message from kapa.ai
If you are seeing "Could not find attempt stats for job_id" and when you run a sync, nothing happens—no new replication pods are starting—this indicates a deeper issue than just log noise. According to the knowledge sources, this situation can occur when Airbyte's internal state is broken or when there is a problem with job/attempt metadata or storage. Users have reported that after encountering failed or stuck syncs, all subsequent syncs remain in the "Queued" or "Starting" state, and no new pods are launched. Even after redeploying Airbyte, the issue can persist [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812), [All syncs hanging indefinitely (discussion)](https://github.com/airbytehq/airbyte/discussions/55833). Key points from the knowledge sources: - The error is often accompanied by repeated warnings about missing stats for various job attempts. - Syncs get stuck in "Queued" or "Starting" and do not progress. - No new replication pods are created. - Restarting or redeploying Airbyte does not always resolve the issue. - The root cause may be related to a corrupted or inconsistent internal state, or issues with storage configuration or connectivity. What can you do? - There is no definitive solution provided in the knowledge sources for this scenario. Users have tried canceling all syncs, disabling streams, and redeploying, but the problem can persist. - One user noted that the only way to "reset" Airbyte's state without a full wipe is unclear, and there is no official answer or workaround documented [All syncs hanging indefinitely (discussion)](https://github.com/airbytehq/airbyte/discussions/55833). - If you recently experienced storage disruptions (e.g., network issues with your storage backend), this can cause the workload launcher or other components to become "zombie" processes that do not process new jobs, even though they appear healthy [workload-launcher false positive liveness probes under lost storage connection](https://github.com/airbytehq/airbyte/issues/57011). Summary: Your issue is likely due to Airbyte's internal state being broken or a storage/configuration problem. The knowledge sources do not provide a clear fix other than possibly restarting the affected pods or redeploying Airbyte, but even that may not always work. There is no documented way to fully reset the state without wiping everything. If this persists, you may need to escalate the issue with the Airbyte team or follow updates on the related GitHub issues, as this is a known but unresolved problem in some environments [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812).
i
@kapa.ai when I try to ge tthe regions in my app on the endpoint /api/public/v1/regions/ im getting as a ressponse message": "Required QueryValue [organizationId] not specified", "path": "/organizationId",
k
A message from kapa.ai
The error message
"Required QueryValue [organizationId] not specified"
indicates that the
/api/public/v1/regions/
endpoint requires you to provide the
organizationId
as a query parameter in your request. This is necessary for the API to know which organization's regions you want to retrieve. To fix this, include the
organizationId
in your request URL, like this:
Copy code
GET /api/public/v1/regions?organizationId=<your-organization-id>
You can find your
organizationId
in the Airbyte UI under Settings > General [Create a region](https://docs.airbyte.com/platform/1.7/enterprise-setup/multi-region#step-1). If you do not include this parameter, the API will return the error you are seeing.
i
@kapa.ai so I redeployed airbyte from scratch version 1.8.0 How can I get credentials from my autoo created dataplane ?
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not contain explicit instructions or steps for retrieving the credentials (such as
DATA_PLANE_CLIENT_ID
and
DATA_PLANE_CLIENT_SECRET
) from an auto-created dataplane in Airbyte OSS version 1.8.0 after a fresh deployment. The documentation and issues discuss the need for these credentials and how to provide them via Kubernetes secrets, but they do not specify how to retrieve them if they were auto-generated during deployment. If you need these credentials, you may need to check the Kubernetes secret (commonly named
airbyte-config-secrets
) in your deployment namespace, as this is where such credentials are typically stored. However, the exact process for retrieving or viewing auto-generated dataplane credentials in version 1.8.0 is not detailed in the knowledge sources.