This message was deleted.
# ask-ai
s
This message was deleted.
k
Based on the information in the knowledge sources, the most common reasons you do not see the "Incremental Append + Deduped" sync mode as an option for your Postgres to Snowflake CDC connection are: 1. Primary Key Requirement: Incremental sync modes, especially with deduplication, require that the source table has a primary key. However, you mentioned your tables have composite primary keys, which Airbyte does support for deduplication—so this alone should not be an issue as long as the composite key is properly detected and selected in the Airbyte UI [[Incremental Sync - Append + Deduped](https://docs.airbyte.com/platform/next/using-airbyte/core-concepts/sync-modes/incremental-append-deduped#user-defined-primary-key)]. 2. Cursor Field Requirement: For incremental sync, Airbyte also requires a valid cursor field (such as an
updated_at
timestamp or similar). If Airbyte cannot detect a suitable cursor field, the incremental sync options will not be available, even if a primary key is present. There have been cases where nullable columns were not allowed as cursors in older versions, but this has been addressed in recent releases [[Forum: Postgres source tables have no incremental option](https://discuss.airbyte.io/t/2694)]. 3. CDC Limitations: For CDC-based incremental sync, the table must have a primary key, and the data must be in tables (not views). Also, ensure that CDC is properly enabled on the source database and that the initial snapshot has completed successfully [[CDC Limitations](https://docs.airbyte.com/platform/next/understanding-airbyte/cdc#limitations)]. What to check: - Ensure your composite primary key is correctly detected and selected in the Airbyte UI. - Make sure there is at least one column that can be used as a cursor field and that it is selected. - Confirm you are using a recent version of the Postgres source connector, as older versions had issues with cursor field detection (especially with nullable columns). - Verify that CDC is enabled and configured correctly on your Postgres source. If all these conditions are met and you still do not see the incremental sync option, it may be a connector-specific issue or a bug. Upgrading to the latest connector version often resolves such problems [[Forum: Postgres source tables have no incremental option](https://discuss.airbyte.io/t/2694)]. Composite primary keys are supported and should not prevent incremental deduped sync as long as the above requirements are satisfied [[Incremental Sync - Append + Deduped](https://docs.airbyte.com/platform/next/using-airbyte/core-concepts/sync-modes/incremental-append-deduped#user-defined-primary-key)]. If you continue to experience issues, please double-check your table schema in the Airbyte UI and ensure all required fields are properly configured.
r
@kapa.ai Incremental is shown only for the first time sync.
k
A message from kapa.ai
If you are seeing the "Incremental" sync mode only for the first sync, this is expected behavior in Airbyte. The first time you run an incremental sync (including CDC), Airbyte performs a full snapshot of the data—this is equivalent to a full refresh. After this initial sync, subsequent syncs will use the incremental mode and only replicate new or changed data since the last sync. This is described in the documentation: > The first time the sync is run, a snapshot of the current state of the data will be taken. This snapshot is created with a
SELECT
statement and is effectively a Full Refresh (meaning changes won't be logged). Subsequent syncs will use the logs to determine which changes took place since the last sync and update those. Airbyte keeps track of the current log position between syncs [[Change Data Capture (CDC)](https://docs.airbyte.com/platform/1.6/understanding-airbyte/cdc)]. So, seeing "Incremental" only for the first sync is normal—Airbyte needs to establish a baseline before it can start syncing only the changes. After the initial sync, future runs will be truly incremental, using CDC if configured [[Sync Modes](https://docs.airbyte.com/platform/using-airbyte/core-concepts/sync-modes)]. If you are not seeing incremental options at all after the first sync, or if it always performs a full refresh, there may be a configuration issue (such as missing primary key or cursor field), or the WAL logs required for CDC may have been purged before Airbyte could read them [[Troubleshooting Postgres Sources](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#troubleshooting)].
r
@kapa.ai Why is the replication slot on postgres shown as inactive that is piling up wal logs ?
k
A message from kapa.ai
The replication slot on Postgres is shown as inactive when there is no active connection from a replication client (such as Airbyte) to that slot. When the slot is inactive, Postgres will retain all WAL (Write-Ahead Log) files needed for that slot, causing disk usage to grow as WAL logs pile up. This happens because Postgres cannot safely remove WAL segments that might still be needed by a replication client that has not yet caught up. From the knowledge sources: - If the replication slot becomes inactive (for example, if the consumer disconnects or is not running), WAL data will remain until it is no longer necessary for the slot. This can lead to excessive WAL retention and increased disk usage. AWS support specifically notes: > "if the replication slot become inactive (consumer disconnected for example) WAL data will remains till is not longer necessary by the slot." [[Github Issue: Transaction logs not being cleaned up](https://github.com/airbytehq/airbyte/issues/42917)] - The active status of the slot should be
true
when the sync is running. If it is
false
, it means Airbyte (or any other replication client) is not currently connected and streaming changes from that slot. [[Github Issue: Transaction logs not being cleaned up](https://github.com/airbytehq/airbyte/issues/42917)] - If the slot is inactive for extended periods, WAL files will accumulate, potentially filling up disk space and causing issues with the database. [[Forum: Postgres Source replication slot safe_wal_size only reset when a change occurs](https://discuss.airbyte.io/t/3263)] In summary: A replication slot is shown as inactive when Airbyte is not actively syncing. While inactive, Postgres cannot clean up WAL logs for that slot, leading to WAL accumulation and potential disk space issues. To avoid this, ensure that Airbyte syncs run regularly and that the connection to the replication slot is maintained during syncs.
r
@kapa.ai after the sync is complete, replication slot going to inactive state is this expected ?
k
A message from kapa.ai
Yes, it is expected behavior for the replication slot to go into an inactive state after the Airbyte sync is complete. The replication slot's
active
status is only
true
when a replication client (such as Airbyte) is actively connected and streaming changes. Once the sync finishes and Airbyte disconnects, the slot becomes inactive. This is confirmed in the knowledge sources: > "If the slot is inactive I would suggest to inspect on the consumer side as when become inactive WAL data will remains." > > "active status will be true when the sync is running" [[Github Issue: Transaction logs not being cleaned up](https://github.com/airbytehq/airbyte/issues/42917)] So, seeing the replication slot as inactive between syncs is normal. However, keep in mind that while the slot is inactive, Postgres will retain WAL logs needed for that slot, which can lead to disk usage growth if syncs are infrequent or if WALs are not being consumed regularly.
r
@kapa.ai How to keep the slot active all the time ?
k
A message from kapa.ai
Keeping the replication slot active all the time is generally not how Airbyte (or most CDC consumers) are designed to operate. Airbyte connects to the replication slot only during sync jobs; when the sync is not running, the slot will be inactive. This is expected and normal behavior [[Github Issue: Transaction logs not being cleaned up](https://github.com/airbytehq/airbyte/issues/42917)]. If your goal is to prevent WAL log buildup, the recommended approaches are: - Run syncs more frequently so the slot is active more often and WAL logs are consumed regularly. - Add a high-transaction table or a heartbeat mechanism to ensure there is always some activity, which helps advance the replication slot and allows WAL cleanup, even if your main tables have low or no changes. For example, you can create a heartbeat table and periodically insert rows into it, then add this table to your publication. This ensures the slot is advanced during each sync [[Advanced WAL Disk Consumption and Heartbeat Action Query](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query)]. There is no supported or documented way in Airbyte to keep the slot active 100% of the time outside of running a sync job continuously, which is not typical or recommended. If you need to avoid WAL buildup, focus on sync frequency and heartbeat strategies as described above.
r
@kapa.ai I am getting error installing airbyte .
Copy code
ERROR   Timed out waiting for ingress
  ERROR   Unable to install Airbyte locally
  ERROR   browser liveness check failed: context deadline exceeded
k
A message from kapa.ai
The error message you are seeing:
Copy code
ERROR   Timed out waiting for ingress ERROR   Unable to install Airbyte locally ERROR   browser liveness check failed: context deadline exceeded
indicates that the Airbyte installation is failing at the step where it waits for the ingress controller (such as nginx/ingress-nginx) to become available and route traffic to the Airbyte web application. Based on the knowledge sources, this is a common issue and can be caused by several factors: 1. Ingress Controller Not Ready or Stuck: The installation can get stuck while installing the ingress controller, especially nginx/ingress-nginx. This can happen due to network issues, proxy/firewall restrictions, or port conflicts (for example, if another ingress like Traefik is already running in your Kubernetes cluster) [[Github Issue: install stuck on nginx/ingress-nginx](https://github.com/airbytehq/airbyte/issues/56386)]. 2. Corporate Proxy or Network Restrictions: If you are behind a corporate proxy, the ingress controller or other components may not be able to pull required images or communicate properly. Several users have reported this issue and resolved it by configuring proxy settings inside the kind control-plane container or by ensuring all network requests go through the proxy [[Github Issue: install stuck on nginx/ingress-nginx](https://github.com/airbytehq/airbyte/issues/56386)]. 3. Resource Constraints: Insufficient CPU or memory can also cause the ingress controller or other pods to fail to start in time, leading to timeouts [[Github Issue: abctl install stuck at pulling images](https://github.com/airbytehq/airbyte/issues/48720)]. Troubleshooting Steps: - Check the logs of the ingress controller pod (e.g., nginx/ingress-nginx) to see if there are any errors. - If you are behind a proxy, exec into the kind control-plane container (
docker exec -it airbyte-abctl-control-plane bash
) and verify network connectivity (e.g., with
curl https://ifconfig.io
). Make sure the container can access the internet through your proxy. - Ensure there are no port conflicts with other ingress controllers (like Traefik) running in your cluster. - Try uninstalling and reinstalling Airbyte using:
Copy code
abctl local uninstall   abctl local install
Some users have reported this resolves the issue. - Make sure your system meets the recommended resource requirements (at least 4 CPUs and 8GB RAM). If the problem persists, check the Airbyte documentation for more troubleshooting tips on ingress and installation issues [[Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)]. If you need to skip the ingress installation (for example, if you already have an ingress controller), currently there is no documented flag in abctl to do so, but you may consider using the Helm installation method for more control [[Github Issue: install stuck on nginx/ingress-nginx](https://github.com/airbytehq/airbyte/issues/56386)].
r
@kapa.ai 503 Service Temporarily Unavailable running airbyte
k
A message from kapa.ai
A "503 Service Temporarily Unavailable" error when running Airbyte typically indicates that one or more Airbyte services (such as the webapp or API) are not yet ready or are failing to start. This is a common issue during installation or startup. Possible causes and troubleshooting steps from the knowledge sources: 1. Service Not Ready Yet: During installation, especially with
abctl
, you may see warnings like:
Copy code
Readiness probe failed: HTTP probe failed with statuscode: 503
This can occur if Airbyte services are still starting up. The documentation notes that you may see this warning, but installation can still complete successfully. If so, allow the installation to continue and check if the services become available after a few minutes [[OSS Quickstart](https://docs.airbyte.com/platform/using-airbyte/getting-started/oss-quickstart#part-3-run-airbyte)]. 2. Resource Constraints: Insufficient CPU or memory can delay service startup, causing 503 errors. Ensure your system meets the recommended resources (at least 4 CPUs and 8GB RAM) [[OSS Quickstart](https://docs.airbyte.com/platform/using-airbyte/getting-started/oss-quickstart#part-3-run-airbyte)]. 3. Ingress/Proxy Issues: If you are running Airbyte on Kubernetes, a misconfigured or not-yet-ready ingress controller can result in 503 errors. This is especially common if the ingress pod is not healthy or if there are network/proxy issues. Check the status of your ingress controller and related pods [[Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)]. 4. Helm/Kubernetes Installations: If you see repeated 503 errors and the installation fails with messages about readiness probes or timeouts, it may indicate a deeper issue with the deployment (e.g., pods not starting, image pull errors, or port conflicts). Review pod logs and events for more details [[Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)]. What to do: - Wait a few minutes after starting Airbyte to see if the services become available. - Check the logs of the affected pods or containers for more details. - Ensure your system has enough resources. - If using Kubernetes, verify the ingress controller is running and healthy. If the issue persists after these checks, consult the Airbyte troubleshooting documentation for further steps [[Troubleshooting abctl](https://docs.airbyte.com/platform/deploying-airbyte/troubleshoot-deploy)].