Your Filament Run Failed: How to Read the Error and Fix It
Filament by Galaxy is an open-source (Apache 2.0, Go) data movement engine that launched on Product Hunt on November 13, 2026 at #2 Product of the Day. My first four posts in this series covered picking a read mode, your
Filament by Galaxy is an open-source (Apache 2.0, Go) data movement engine that launched on Product Hunt on November 13, 2026 at #2 Product of the Day. My first four posts in this series covered picking a read mode, your first Postgres to ClickHouse pipeline, driving Filament from an AI coding agent, and deploying it. This one is the post I wish I had read first: what to do when a run fails.
The short version: start from the run, not from vibes. filament run ls <pipeline> shows each run's status, record count, and duration, and the official troubleshooting page is searchable by exact error text. Most Filament failures are one of the eleven below — and most of them are a config mistake the error message is already telling you about.
The three failures everyone hits first
1. The stdout sink rejects your inline run. You run filament run --source-connector sample --sink-connector stdout and get an error saying the stdout sink does not support the upsert write policy. That is not a bug: the stdout sink supports only replace and append, and an inline run defaults to upsert. Add --write-mode replace and it works. This is the engine's validation doing its job — it checks the read/write pairing before any data moves, and rejects an invalid pairing up front instead of corrupting data halfway through.
2. CDC fails on the local CLI. The error says something about being unable to durably admit replication streams. CDC pipelines need Filament's PostgreSQL-backed datastore to track replication streams; the local CLI keeps its state in SQLite. Full and incremental pipelines are the local ones. CDC means deploying Filament as a server first — I covered the deployment options in my fourth post.
3. Pipeline create rejects your read mode on a CDC connection. The create command fills in its default read mode, and a CDC connection accepts no standard read mode. Pass --sync-mode cdc explicitly.
The incremental and CDC traps
Incremental mode rejects a table. The table has no primary key, or no NOT NULL cursor column that advances on every write. Add a real cursor (like updated_at) or use a full read. Random UUIDs and static IDs are not cursors, and if your app does not maintain updated_at honestly, fix that first or stay on full.
CDC rejects a table. Same root cause, stricter rule: every tracked table needs a primary key. Copy a keyless table with a separate full-replace pipeline instead.
PostgreSQL CDC: permission denied creating the publication. Your replication user cannot create publications. Create the publication yourself as the table owner and set the source not to manage it.
PostgreSQL CDC: "slot is active". Another consumer holds the route's replication slot. Stop the other consumer or wait for the previous run to end — a slot can only be read by one consumer at a time.
Source WAL keeps growing. A replication slot is not being read — often a deleted pipeline's orphaned slot. Inspect the replication slots and drop the ones you no longer use. The same applies after a TRUNCATE on a tracked table, or when a checkpoint falls behind the slot's position: the recovery is to re-snapshot the affected tables.
MySQL CDC: binlog position no longer available. Binlog retention expired before the run read it. Lengthen retention beyond your longest gap between runs, then re-snapshot. And if MySQL CDC rejects your connection outright, check the DSN: CDC requires TCP, so a Unix-socket DSN is rejected — use a tcp(host:3306) style DSN.
The warehouse-side surprises
ClickHouse: duplicate keys after an upsert. The ClickHouse sink writes incremental upserts into a ReplacingMergeTree table, which removes older versions of a row during background merges — not at insert time. A plain count() can briefly over-count. Verify with FINAL:
SELECT count() AS current_rows FROM shop_live.orders FINAL;
ClickHouse: deleted rows still present. Expected with incremental reads — incremental cannot see hard deletes, and the ClickHouse sink has no CDC mode. Schedule a periodic full replace, or soft-delete in PostgreSQL with a deleted_at column the incremental read picks up as a change.
Snowflake login returns a 404-style auth error. Your account identifier is not in the organization-account form. Set the sink account to the organization-account identifier. Key-pair auth failing is usually the same family of problem: the public key on the user does not match, or the private key is encrypted — re-set the public key from the .pub file and use an unencrypted PKCS#8/PKCS#1 key.
BigQuery: credentials not found or permission denied. The worker lacks Application Default Credentials, or the service account lacks the data-editor and job-user roles. Provide ADC to the worker and grant both roles. These are environment problems, not Filament bugs — check them before the first run, not after.
The habit that prevents most of these
Check filament run ls after every run. Keep a pre-production checklist: a read-only database user, a primary key and an honest cursor on every incremental table, a written decision on how deletes are handled for each route, preview connectors validated against your own data, and verification by comparing row counts and grouped sums between source and sink — not by eyeballing one run. A pipeline nobody inspects is a pipeline that is already drifting.
The free starter kit
I put the full walkthrough into a free starter kit: the complete Chapter 1, three copy-paste pipeline templates, and a 55-second video of a real Filament run — free here: https://payhip.com/b/YG6a3
The full pack (14 sections, 12 agent prompts, 3 workflow templates, the deployment guide, and the full troubleshooting table) is $7.99: https://payhip.com/b/KFJ4e
Not affiliated with or endorsed by Galaxy. Troubleshooting details checked against Filament's official docs on November 15, 2026 — the project is pre-1.0 and moving fast, so re-check before you deploy.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.