<@U04S8PLJWMT> Hello, I am using the <OSS Quicksta...
# ask-ai
c
@kapa.ai Hello, I am using the OSS Quickstart in my MacBook Pro running macOS Sequoia 15.7.1. I've been trying to imitate a CDC setup using Postgres as a source like shown in this

video▾

. However when I run a manual sync the second time to see the changes after an INSERT and DELETE in the Postgres source I am getting this error:
Failure in source: Saved offset is before replication slot's confirmed lsn. Please reset the connection, and then increase WAL retention and/or increase sync frequency to prevent this from happening in the future. See https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs for more details.
I have my Postgres source as a Docker container that I created with this options:
docker run --name source \
>  -e POSTGRES_PASSWORD=postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_DB=postgres \
-p 5432:5432 \
-d postgres:latest \
-c wal_level=logical \
-c max_wal_size=2GB \
-c wal_keep_size=1GB
Also trying to replicate the connection in the video I am having a hard time using Local JSON as the destination. I also tried to install Airbyte Quickstart this way:
abctl local install --volume ~/Documents/airbyte/airbyte-data:/tmp/airbyte_local
But getting errors also when I use
output
in the Airbyte UI for the destination:
Configuration check failed
Destination file should be inside the /local directory
For the connection using Postgres as the source I am using Databricks as the destination and that's working, but would like to get Local JSON to work to test CDC from Postgres faster. Any ideas or suggestions? Thank you in advance!
k
Sorry @Carlos Morillo, it looks like your question contains files, which I cannot process. Please reformulate your question without including any files.
c
@kapa.ai Hello, I am using the OSS Quickstart in my MacBook Pro running macOS Sequoia 15.7.1. I've been trying to imitate a CDC setup using Postgres as a source like shown in this

video▾

. However when I run a manual sync the second time to see the changes after an INSERT and DELETE in the Postgres source I am getting this error:
Failure in source: Saved offset is before replication slot's confirmed lsn. Please reset the connection, and then increase WAL retention and/or increase sync frequency to prevent this from happening in the future. See https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs for more details.
I have my Postgres source as a Docker container that I created with this options:
docker run --name source \
>  -e POSTGRES_PASSWORD=postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_DB=postgres \
-p 5432:5432 \
-d postgres:latest \
-c wal_level=logical \
-c max_wal_size=2GB \
-c wal_keep_size=1GB
Also trying to replicate the connection in the video I am having a hard time using Local JSON as the destination. I also tried to install Airbyte Quickstart this way:
abctl local install --volume ~/Documents/airbyte/airbyte-data:/tmp/airbyte_local
But getting errors also when I use
output
in the Airbyte UI for the destination:
Configuration check failed
Destination file should be inside the /local directory
For the connection using Postgres as the source I am using Databricks as the destination and that's working, but would like to get Local JSON to work to test CDC from Postgres faster. Any ideas or suggestions? Thank you in advance!
k
Let's address your two main issues: the CDC sync error with Postgres and the Local JSON destination setup. --- ### 1. CDC Sync Error: "Saved offset is before replication slot's confirmed lsn" This error typically means that the WAL (Write-Ahead Log) segments required for incremental sync have been removed by Postgres before Airbyte could read them. This is a common issue, especially with low-transaction-volume databases or when WAL retention settings are too low for your sync frequency. Key points and solutions: - WAL Retention: Even though you set
wal_keep_size=1GB
, if your syncs are infrequent or your database is small, Postgres may still remove WAL segments before Airbyte reads them. Try increasing
wal_keep_size
further and/or running syncs more frequently. - Sync Frequency: Run your Airbyte syncs more often to ensure WAL segments are not purged before being read. - Initial Full Refresh: The first sync is always a full refresh; subsequent syncs use CDC. If the WAL segments needed for CDC are missing, Airbyte will fall back to a full refresh or fail, depending on your settings. - Relevant Docs: See the [Airbyte Postgres troubleshooting guide](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#under-cdc-incremental-mode-there-are-still-full-refresh-syncs) for more details and solutions. Advanced tip: If your database has very low transaction volume, you can add a "heartbeat" table and configure Airbyte to periodically write to it, which helps advance the WAL and keeps the replication slot active. See the [advanced WAL disk consumption section](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query) for details and setup steps. --- ### 2. Local JSON Destination: "Destination file should be inside the /local directory" The Local JSON destination in Airbyte requires that the output path be inside the
/local
directory within the Docker container, not an arbitrary path on your host machine. How to fix: - When configuring the Local JSON destination, set the
Destination_path
to something like
/local/cdc_tutorial
(not
/cdc_tutorial
or any other path). - Make sure you mount a host directory to
/local
in your Airbyte Docker Compose or abctl setup. For example:
Copy code
abctl local install --volume ~/Documents/airbyte/airbyte-data:/local
This way, anything written to
/local
inside the container will appear in
~/Documents/airbyte/airbyte-data
on your Mac. - In the Airbyte UI, set the destination path to
/local/cdc_tutorial
(or any subdirectory under
/local
). Reference: The error message and required setup are described in the [Local JSON destination tutorial](https://airbyte.com/tutorials/postgresql-change-data-capture-elt#step-4). --- ### Summary of Steps 1. Increase
wal_keep_size
and/or run syncs more frequently to avoid WAL purging. 2. (Optional) Set up a heartbeat table if your database is low-traffic. 3. For Local JSON destination: - Mount a host directory to
/local
in your Airbyte deployment. - Set the destination path in Airbyte to
/local/your-folder
. If you follow these steps, you should be able to resolve both the CDC sync error and the Local JSON destination configuration issue. If you continue to see the CDC error even after increasing WAL retention and sync frequency, there may be a version-specific issue or a bug—see [this issue](https://github.com/airbytehq/airbyte/issues/49802) for a known problem with certain connector versions and PgJDBC. Let me know if you need more detailed guidance on any of these steps!