Troubleshoot ingestion
Start from the symptom, not from the logs. The platform shows the runtime’s report on the ingestion itself, so the console usually tells you which of the cases below you are in. Concepts are in Ingestion.
First: what does the ingestion say?
Section titled “First: what does the ingestion say?”Open Ingestions (/ui/ingestions), pick the ingestion, and look at the drawer and the Activity page
(/ui/ingestions/{id}/activity).
| You see | Meaning | Go to |
|---|---|---|
| “No runtime carries this kind” | No live ingestor runtime reports the source kind. Nothing is trying it; it has not failed | No runtime |
| “Not running: no runtime has held it since …” | A polled ingestion no runtime has held for a lease plus two minutes | No runtime |
Needs configuration (config.status MISSING or INVALID) |
The settings entry the source names is absent or fails validation. It takes no lease and no jobs | Settings |
Route FAILED |
The runtime could not build or start the route; the error says why | Route states |
Route FAILING |
Running, but the source keeps failing | Route states |
| “Polling, nothing new” | Polls are happening and finding nothing. The ingestion is healthy | Nothing arrives |
| Draft badge on a version | The saved version was never made live | Draft |
| A notice with a count | A rejected failure is open |
Failures and notices |
A change has no effect
Section titled “A change has no effect”A saved version does not run until it is live. A create or update without
platform:ingestion:ingestion:promote saves a draft. The Versions tab marks drafts and the answer’s
save field says DRAFT. Someone with promote makes it live (Versions tab, fcdev ingest live <ref> <version>).
An ingestion owned by a set cannot be edited by hand; change the
file and apply.
Settings and secrets
Section titled “Settings and secrets”MISSING/INVALID:fcdev ingest config get <ref>prints the status, the problems and whether the value is checked against a kind’s schema. Write the entry withfcdev ingest config set. The ingestion starts by itself once the entry is valid.- Resume refused with
409:INGESTION_CONFIG_NOT_SET(the entry is absent) orINGESTION_SECRET_MISSING(the response names the secrets). Set each secret for the ingestion’s client (application = the ingestion’s, sectionsecrets, property = the name). There is no fall-back to a global value, so a secret set for one client does not serve another. - Secret reference errors: a reference to AWS that cannot be resolved reaches the runtime as
409with aSECRET_REFERENCE_*code, or503 SECRET_REFERENCE_UNAVAILABLEwhen AWS cannot be reached. The runtime backs off as for any failed fetch. - A secret fetch refused (a name the live definition does not bind, no value at the client, no lease, an
inactive client, a paused ingestion) is audited as
SECRET_FETCH_REFUSEDin the ingestion’s history and logged at WARN with the reason. Successful fetches are not audited per read; they appear as the log linesecurity.ingestion_secret_fetch, the counterfc_ingestion_secret_fetch_total{outcome}and a “last fetched” record in the drawer. - A source saved with
bind-secrets-guarded changes (a new host, URL or secret name) needs that permission. If a save was refused, check who is saving.
Route states
Section titled “Route states”The runtime reports each route as STARTED, FAILING (running, but the source keeps failing) or FAILED
(could not start). Common FAILED causes:
| Message | Cause and fix |
|---|---|
the sftp source has no known host key |
Give knownHosts, or acceptAnyHostKey: true (needs bind-secrets) |
| An address refused (loopback, link-local, metadata) | A host the definition names resolves to a refused address. Private ranges are fine. Loopback is allowed only when the runtime’s APP_ENV is local or test (fcdev) |
definition not supported by this runtime version |
The platform is newer than the runtime. The other ingestions run. Upgrade the runtime |
the lease (...) is too short for the poll interval (...) |
INGEST_POLL_INTERVAL is too long for the platform’s lease; single-owner ingestions cannot run |
| Settings problems listed together | An extension’s or a built-in’s settings failed validation. The runtime lists every problem at once |
| A route’s YAML cannot be used | See Custom Camel routes |
FAILING clears at the first poll that gets a payload through.
It runs but nothing arrives
Section titled “It runs but nothing arrives”- Is the source empty? “Polling, nothing new” in Activity, and a
NO_RESULTStest, mean yes. - Does the split make records? Run Test connection and read how many records the split makes. A csv
split with
header: truemakes none from a header-only file. Ajsonsplit makes nothing ifarrayPathdoes not point at an array. - Is the ingestion paused or its client suspended? A suspended or deactivated client’s ingestions run nowhere and take no jobs. A paused ingestion keeps versions and state.
- Is the target held? Pausing the connection holds the ingestion’s jobs; a suspended pool or an inactive
client makes the platform refuse jobs (a
rejectednotice). The jobs appear in dispatch operations in their status, not missing. - Are records de-duplicated? Idempotency keys are kept 7 days. A file read again, or a row set back to pending within that time, answers the job made first instead of making a new one. Give a re-sent row a new key value, or use a watermark track.
- Switch on a trace (below) and watch one cycle.
For an HTTP push, the caller gets the reason: see the answer table in Accept data over HTTP.
401/403 are login and reach, 415/400 are accept, 429 a rate limit or failed-login hold, 503
means the platform did not take the jobs and the sender must retry.
Failures and notices
Section titled “Failures and notices”A runtime reports each failure with a kind and a category.
| Kind | Meaning |
|---|---|
SOURCE |
Reading or marking the source failed (a poll error, a commit that failed after a good read) |
AUTH |
A login was refused |
REJECTED |
A payload or record could not be taken |
NOT_DISPATCHED |
Jobs were not created |
| Category | Meaning |
|---|---|
payload |
A record or payload the runtime could not take (the usual case) |
rejected |
The platform refused the jobs for good: the target no longer resolves (pool suspended, connection gone) or the client is suspended. Nothing more is made until someone puts it right |
A rejected failure is a notice: the list row and drawer show the count and the newest message until it
is dismissed. Dismiss on the Failures tab, or
POST /api/ingestions/{id}/failures/{failureId}/dismiss (needs update and the ingestion’s reach; recorded in
history). A dismissed failure stays listed, marked, until retention removes it. List open notices with
GET /api/ingestions/{id}/failures?undismissed=true&category=rejected. Failures are kept for 30 days.
What the runtime does with a refusal
Section titled “What the runtime does with a refusal”- Permanent (a 4xx the platform would repeat, other than 401, 403, 408, 409, 425 and 429, or a refused
record): the payload is let go of exactly as an unreadable one, so the source keeps moving. An SFTP or S3
file moves to
.rejected, an SQS message is deleted, a RabbitMQ message is rejected without requeue (so it dead-letters), a database watermark or status and an API cursor move past it, and an HTTP caller gets422. Jobs already made from earlier records of the payload stay made. - Transient (5xx, no answer, 408, 409 such as a lease or paused target, 425, 429, 401/403 after the token was dropped): the batch is sent again after 0.5 s and 1.5 s, then the exchange fails and the source keeps the payload and offers it again (the file stays, the message comes back, the watermark stays).
Commit failures
Section titled “Commit failures”When a payload was read and sent but marking it done fails (moving a file, deleting an S3 object or SQS
message, updating a row), the runtime reports a SOURCE failure (“read and sent, but could not be
moved/deleted/marked … it will be read again”) and the route is FAILING. The idempotency key stops the
re-read from making new jobs. Fix the permission or the path that blocks the move.
SQS: give every source queue a dead-letter queue (redrive policy, maxReceiveCount 5 to 10). The
platform keeps a record’s identity 7 days and SQS keeps a message up to 14; a message that is never deleted
would otherwise come back after 7 days and make its jobs again. A message received more than 5 times is
reported (a WARN and a SOURCE failure, at most once a minute per ingestion).
Traces: see one cycle
Section titled “Traces: see one cycle”“The ingestion is running but nothing shows.” A trace shows, for a minute or so, what each runtime’s polls
and exchanges did, with the HTTP calls an extension or api-poll made and their requests and responses.
- Switch on from the Activity page’s trace switch, or
fcdev ingest trace on <ref> [--for 1m|5m|15m] [--every 5s], orPUT /api/ingestions/{id}/trace{windowSecs, sampleEverySecs}(windowSecs60, 300 or 900;sampleEverySecs1 to 60, default 5). - Tracing is never on by default and costs a runtime a map lookup per poll or exchange when off. It never blocks, slows or fails ingestion.
- A runtime learns of a window at its next sync (a minute in production, 15 s under fcdev) and captures for the
window from the moment it first sees it. The platform keeps a hard stop of switch-on time plus the window
plus a pickup grace (
FC_INGESTION_TRACE_PICKUP_GRACE, 2 minutes) and refuses later records. - A capture is one poll cycle (everything it called and dispatched) or one exchange (a push, file or
message), captured whole, at most one per
sampleEverySecsper runtime. - Empty polls show. Without tracing too, every runtime reports how many polls it finished and when the last ended.
Read it:
fcdev ingest trace on ingest/acme/orders-sftp --for 5mfcdev ingest trace log ingest/acme/orders-sftp -f --bodiesfcdev ingest trace status ingest/acme/orders-sftpfcdev ingest trace off ingest/acme/orders-sftptrace log filters by --kind poll|exchange|http|error, --runtime, --capture, --since and --limit.
Records are poll, exchange, http and error, grouped by capture; the Activity page nests each capture’s
calls and exchanges and expands each call to its request and response.
What is redacted. Credentials are removed in the runtime before a record leaves it: headers whose name
contains auth, key, token, secret, password, signature, cookie or session; those fields in
JSON and form bodies; every query value except paging and time-window ones (page, limit, offset,
cursor, since, until, from, to and the like); user info in URLs; and wherever they appear verbatim
(a URL path included) the secret values the runtime fetched and credentials the source obtained while running.
Bodies are cut at 32 KiB. Records are kept 7 days (FC_INGESTION_TRACE_RETENTION_DAYS) and deleted with the
ingestion.
Permissions.
| Permission | Allows |
|---|---|
platform:ingestion:trace:manage |
Switch tracing on and off |
platform:ingestion:trace:view |
Read a record’s metadata (an HTTP call’s method, URL path, status, duration, sizes; counts and outcome) |
platform:ingestion:trace:view-bodies |
Read headers, query strings, bodies, excerpts and error text; also needed to switch on |
platform:ingestion-admin holds all three; platform:ingestion-operator holds view. A reader without
view-bodies gets records marked redacted: true with those parts withheld. Switching on and off is audited
(platform:ingestion:trace:enabled, ...:disabled).
No runtime, or not running
Section titled “No runtime, or not running”- Is a runtime up? Check its
/health/readyon its port (8091by default). Readiness fails while the platform has not answered a poll for three intervals, and while the platform refuses its polls because the runtime id is in use. - Does it carry the kind? A runtime reports the built-in kinds it has and the kinds its extensions add. An
ingestion is given only to a runtime that carries its kind.
camel-routeneedsINGEST_CAMEL_ROUTES_ENABLED=true. An extension kind needs its jar loaded. - Same runtime id twice:
409 RUNTIME_ID_IN_USE. The second process renews no lease, logs an ERROR every round and fails readiness. Give each instance its ownINGEST_RUNTIME_ID. - A runtime id belongs to an account:
403 RUNTIME_ID_NOT_OWNED. A runtime id belongs to the service account whose runtime first polled with it, and every runtime call that names it from another account is refused (and audited). It happens when a fleet is moved to a new service account while keeping itsINGEST_RUNTIME_IDs. Give the new fleet new runtime ids; a runtime id is freed when its runtime has not polled for 7 days. A new secret for the same account changes nothing. - Runtime account refused: the account must be an anchor-tier service account linked to no client and no
application, with
platform:ingestion-runtime. Otherwise every call is refused:INGESTION_RUNTIME_SERVICE_ACCOUNT_REQUIRED(a person),INGESTION_RUNTIME_ANCHOR_REQUIRED(client tier),INGESTION_RUNTIME_APPLICATION_BOUND(an application’s account). A403from the function control plane means the account also needsplatform:function-runnerwhen the runtime hosts JVM functions. - Polled sources move. A runtime that keeps failing a polled ingestion hands it to another runtime that
carries the kind, for ten minutes (
FC_INGESTION_UNHEALTHY_COOLDOWN). One that fails everywhere stays put so its errors stay visible. - The
fc_ingestion_unheldmetric counts polled ingestions no runtime has held for a lease and two minutes. A rising value means something is wrong with the runtimes: read their logs.
Failures are paced, and logged once
Section titled “Failures are paced, and logged once”A failing source does not retry in a tight loop and does not flood the log. This is by design (decision):
- After
nfailures in a row a polled source waits5 sdoubling to5 min(with jitter), never less than its normal interval. A refused login waits5 mindoubling to1 h. The first success polls at the normal interval again. Saving the ingestion starts from zero. - When the platform is not taking jobs (connect or timeout errors, 5xx, 429, 401/403 after a token refresh),
a runtime-wide breaker holds every ingestion for the same backoff (or the platform’s
Retry-After, up to 15 minutes) and probes with one submit. A refusal that belongs to one ingestion (a paused target, say) does not open it. One WARN when it opens, one line a minute while open, one INFO when it closes. - The first failure of a streak is logged with a stack trace; then at most one line a minute per thing that fails, with a count (“N more like it not logged; M in a row”), and a line when it recovers.
- Nothing gives up silently. The failure stays visible on the platform the whole time.
- A function’s log lines are capped by a per-function budget (
INGEST_FUNCTIONS_LOG_RATE, default 100 lines a second, burst 1000); over it, lines are dropped and one WARN a minute says how many.
If you see a tight loop or a log flood, that is a bug: report it with the log excerpt.
Retention
Section titled “Retention”Failures and exchange counts are kept 30 days, job idempotency keys a week, trace records 7 days. A time from a runtime more than five minutes in the future is recorded as now.