<@U04S8PLJWMT> I'm trying to create my first conne...
# ask-ai
n
@kapa.ai I'm trying to create my first connection in Airbyte v1.8.0, and I'm getting this error: Airbyte is temporarily unavailable. Please try again. (HTTP 502). And when I export the cluster logs, in the airbyte-abctl-worker pod, it shows me this log: 2025-08-22T062711.114863426Z stdout F 2025-08-22 062711,110 [Activity Executor taskQueue="ui_commands", namespace="default": 9] [31mWARN[0;39m i.t.i.a.ActivityTaskExecutors$BaseActivityTaskExecutor(execute):126 - Activity failure. ActivityId=a754b3bd-4cb9-30dd-b862-ce5195820239, activityType=StartCommand, attempt=4 2025-08-22T062711.115034126Z stdout F java.lang.RuntimeException: io.airbyte.api.client.ApiException: Unauthorized
k
The error message you are seeing—"Airbyte is temporarily unavailable. Please try again. (HTTP 502)"—combined with the log entry from the airbyte-abctl-worker pod indicating an ApiException: Unauthorized, suggests that there is an authentication or authorization issue between Airbyte components, likely when the worker tries to communicate with the Airbyte API or another internal service. This type of error has been reported in several contexts in the knowledge sources: - A 401 Unauthorized error in the worker or related pods often points to a misconfiguration in service accounts, tokens, or internal API credentials. For example, in Kubernetes deployments, issues with service account tokens or permissions can cause similar failures, especially after upgrades or changes to the cluster or Helm chart. One user resolved a similar issue only by uninstalling and reinstalling Airbyte, which reset the service account and permissions, but this is a drastic step and only recommended if your persistence (database and storage) is external and decoupled from the Airbyte deployment. Otherwise, you risk data loss. See the discussion here: [platform WorkerException Unauthorized](https://github.com/airbytehq/airbyte/issues/39512). - Another common cause is that the Airbyte worker or other pods lose the ability to authenticate with the Kubernetes API or other internal services, often after a Helm upgrade or cluster change. This can result in 401 Unauthorized errors and 502 Bad Gateway errors in the UI. See: [helm upgrade deletes and recreates serviceaccount](https://github.com/airbytehq/airbyte/issues/18731). - In some cases, the root cause is a misconfigured or expired token, or a missing/incorrect service account, especially if the error appears after a deployment or upgrade. Ensuring that all Airbyte pods have the correct permissions and that any required secrets or tokens are present and valid is essential. What you can try: 1. Check that your Airbyte deployment's service accounts and secrets are correctly configured and have not been deleted or recreated without updating the pods. 2. If you recently upgraded or changed your cluster, ensure that all Airbyte pods are using the correct service account and that any required tokens are mounted and valid. 3. If you are using Helm, a full uninstall and reinstall (with externalized persistence) has resolved similar issues for others, but only do this if you are sure your data will not be lost. 4. Review the logs of all Airbyte pods, especially the worker, server, and temporal pods, for additional clues about authentication failures. If the problem persists after checking these areas, you may need to reset your deployment or consult the Airbyte documentation for your specific deployment method to ensure all authentication and permissions are set up correctly. If you can provide more details about your deployment method (Kubernetes, Docker, etc.), I may be able to point you to more specific troubleshooting steps. Summary: The "Unauthorized" error in your worker pod is likely causing the 502 error in the UI. This is most often due to a misconfiguration of service accounts, tokens, or internal API credentials between Airbyte components, especially after upgrades or changes to the cluster. Double-check your authentication setup and service account permissions as a first step. [platform WorkerException Unauthorized](https://github.com/airbytehq/airbyte/issues/39512) [helm upgrade deletes and recreates serviceaccount](https://github.com/airbytehq/airbyte/issues/18731)
n
I see some people trying to downgrade the helm chart version to 1.7.1 and it worked. Let me know what's the difference between the latest 1.8.0 and 1.7.1 can cause the problem @kapa.ai
k
A message from kapa.ai
The main difference between Airbyte Helm chart versions 1.8.0 and 1.7.1 that could cause issues is the removal of the
airbyte-webapp
component in 1.8.0. In version 1.8.0, Airbyte merged the webapp functionality into the
airbyte-server
and stopped publishing a separate
webapp
image. This change requires users to update their ingress rules to point to the
server
service instead of the now-removed
webapp
service. If you do not update your ingress configuration accordingly, you may encounter HTTP 502 errors or find the UI inaccessible or partially broken [Breaking changes in 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). In 1.7.1, the webapp still existed as a separate component, so existing ingress rules pointing to the webapp would continue to work. Downgrading to 1.7.1 can "fix" the problem if your ingress is still configured for the old architecture. Summary: - 1.8.0:
airbyte-webapp
is removed; ingress must point to
airbyte-server
. - 1.7.1:
airbyte-webapp
still exists; old ingress rules work. If you upgrade to 1.8.0 without updating your ingress, you will likely see 502 errors or UI issues. Updating your ingress configuration is required to resolve this in 1.8.0 [Breaking change list](https://docs.airbyte.com/release_notes/breaking-changes).
n
@kapa.ai I got this error when running the first sync: destination ERROR main i.a.c.AirbyteConnectorRunnable(run):36 Failed class io.airbyte.cdk.load.write.WriteOperation operation execution. com.microsoft.sqlserver.jdbc.SQLServerException: Column '_ab_cdc_deleted_at' in table 'dbo.DB01_STORETEMP' is of a type that is invalid for use as a key column in an index.
k
A message from kapa.ai
The error you are seeing:
Copy code
com.microsoft.sqlserver.jdbc.SQLServerException: Column '_ab_cdc_deleted_at' in table 'dbo.DB01_STORETEMP' is of a type that is invalid for use as a key column in an index.
is a known issue with the Airbyte destination-mssql connector. By default, Airbyte creates the
_ab_cdc_deleted_at
(and
_ab_cdc_updated_at
) columns as
varchar(max)
. However, in MS SQL Server, columns of type
varchar(max)
cannot be used as key columns in an index, which leads to this error during sync when Airbyte tries to create an index on these columns. Workaround: A temporary solution is to manually change the column type from
varchar(max)
to a smaller, index-compatible type such as
varchar(250)
. This allows the index creation to succeed and the sync to proceed. However, this is a manual step and may need to be repeated if Airbyte recreates the table or resets the schema ([source](https://github.com/airbytehq/airbyte/issues/60814)). Underlying issue: This is a limitation in the current implementation of the destination-mssql connector, and there are requests to make the column types for CDC metadata fields more index-friendly by default ([source](https://github.com/airbytehq/airbyte/issues/60814)). Summary: - The error is caused by Airbyte creating
_ab_cdc_deleted_at
as
varchar(max)
, which cannot be indexed in SQL Server. - Manually changing the column type to
varchar(250)
(or similar) allows the sync to proceed. - This is a known issue and may require a connector update for a permanent fix. For more details and ongoing discussion, see the [related GitHub issue](https://github.com/airbytehq/airbyte/issues/60814).
n
@kapa.ai how can I check the historical change? I want to check the deleted rows
k
A message from kapa.ai
To check historical changes—including deleted rows—when using Airbyte with Change Data Capture (CDC), you should query the history (SCD) table that Airbyte creates in your destination. This table (often named with an
_scd
suffix, e.g.,
cdc_tut_scd
) contains all historical versions of your records, including those that have been deleted. How to check deleted rows: 1. Query the SCD (history) table in your destination database:
Copy code
sql     SELECT * FROM cdc_tut_scd;
2. Look for rows where
_ab_cdc_deleted_at
is NOT NULL. This column contains a timestamp for when the row was deleted. If it has a value, that record was deleted in the source. Example output:
Copy code
_airbyte_unique_key        | ... | _ab_cdc_deleted_at         | ... ----------------------------------+-----+---------------------------+-----  a87ff679a2f3e71d9181a67b7542122c | ... | 2022-09-26T18:26:08.629Z  | ...
In this example, the row with
_ab_cdc_deleted_at
set to a timestamp indicates it was deleted at that time [Explore Airbyte's CDC synchronization > Delete](https://airbyte.com/tutorials/incremental-change-data-capture-cdc-replication). Summary: - Query the SCD/history table (e.g.,
cdc_tut_scd
). - Filter for rows where
_ab_cdc_deleted_at
is not null to see deleted records and when they were deleted. This approach allows you to audit all historical changes, including deletions, in your data pipeline [Explore Airbyte's CDC synchronization > Delete](https://airbyte.com/tutorials/incremental-change-data-capture-cdc-replication).
n
@kapa.ai I don't see the Faker source in my airbyte UI
k
A message from kapa.ai
If you don't see the Faker source (also called "Sample Data (Faker)") in your Airbyte UI, here are some possible reasons and steps to resolve it: 1. Connector Availability: The Faker source is a standard demo connector and should be available in the Airbyte UI under the Sources tab. You can use the search bar to look for "Faker" or "Sample Data (Faker)" in the list of available sources. If you don't see it, make sure your Airbyte deployment is up-to-date and supports the full connector catalog [Add a Source](https://docs.airbyte.com/platform/1.8/using-airbyte/getting-started/add-a-source). 2. Marketplace Tab: In some Airbyte versions, you may need to click the Marketplace tab within the Sources section to see all available connectors, including Faker [Add and manage sources](https://docs.airbyte.com/platform/using-airbyte/getting-started/add-a-source). 3. Deployment Issues: If your Airbyte instance is missing connectors, it could be due to a misconfiguration or an incomplete deployment. Ensure that your Airbyte instance is running properly and that there are no errors during startup. 4. Custom or Restricted Deployments: If you are using a custom or restricted Airbyte deployment (for example, with a limited set of connectors), the Faker source might not be included. In this case, you may need to add it manually or adjust your deployment configuration. 5. Try Connector Builder: If you still cannot find the connector, you can use the [Connector Builder](https://docs.airbyte.com/platform/1.8/connector-development/connector-builder-ui/overview) to create a similar test source. If none of these steps resolve the issue, your Airbyte deployment may be missing the connector catalog or there may be a version-specific problem. The knowledge sources do not provide a troubleshooting guide for this specific scenario, so if the problem persists, consider redeploying Airbyte or checking the official documentation for your version.
r
Copy code
com.microsoft.sqlserver.jdbc.SQLServerException: Column '_ab_cdc_deleted_at' in table 'dbo.DB01_STORETEMP' is of a type that is invalid for use as a key column in an index.
Is this still a known issue?