Troubleshooting
This page is organized by symptom, not by component. Each section lists the log signature or observable behavior, the commands to narrow it down, the fix, and where to read more. Start with the symptom you can see; follow the links when you need the full mechanism.
Run the deep validator first — it catches most configuration failures without starting any connector:
arkflow --config pipeline.yaml --validate
For a control-plane process, validate the startup file the same way you deploy
it and check the exit code (usage/configuration errors exit 2).
Startup and configuration
Configuration parse or unknown-key failure
Symptoms. The process exits before any stream starts; stderr contains
YAML parsing error, TOML parsing error, Configuration parsing error,
Unknown configuration keys, or Unknown input type: ….
Diagnosis.
- Re-run
arkflow --config <file> --validateand read the first error; later errors are often cascades. - Check the file extension (
.yaml,.yml,.json,.toml). Secret references resolve before deserialization, so a missing variable surfaces asFailed to resolve secret references. - For
arkflow-server, remember that unknown top-level keys are rejected; a typo such asadress:fails startup naming the key.
Fix. Correct the key or value. If the error names a feature
(requires the 'connectors-kafka' feature), rebuild with that feature or use a
full binary — see feature-gated builds.
Related. Configuration reference, CLI reference.
Bind or permission failure
Symptoms. Address already in use, Permission denied, or the process
starts but health probes fail.
Diagnosis. Check the configured health_check.address and whether another
process holds the port (lsof -i :8080). Ports below 1024 need privileges or a
container capability.
Fix. Change the address or stop the conflicting process. On Kubernetes, confirm the container port matches the probe port.
Startup refused because of the deployment boundary
Symptoms. secure Hub startup requires durable storage,
requires both operator and node credentials, or
insecure_local is only allowed when the Hub binds a loopback address.
Fix. This is intentional fail-closed startup. Set ARKFLOW_HUB_STORAGE,
ARKFLOW_OPERATOR_TOKEN, and ARKFLOW_NODE_TOKEN, or explicitly opt into
insecure_local on a loopback address for development. See
control-plane deployment.
WAL failures
Local WAL cannot open or replay
Symptoms. The stream fails to start with WAL store task failed,
WAL meta read failed, opening a corrupted WAL must surface an error, or a
replay failure. The engine is fail-fast: it does not continue with possibly
lost data.
Diagnosis.
- Confirm the
durability.pathdirectory exists, is writable by the process user, and is on a filesystem with free space (df -h). - Check for a partially written or older-format redb file. An unsupported format is rejected on open rather than migrated.
- If the failure happened after a disk-full event, free space and retry; if the file is corrupt, restore from a backup or reset the WAL after accepting the data-loss boundary for the unacked range.
Fix. Restore permissions/space, or remove the corrupt WAL only after confirming the source can re-deliver the affected range. Never delete a WAL while a stream that owns it is running.
Related. WAL durability and performance, Delivery and durability.
S3 WAL upload or seal failure
Symptoms. S3 WAL seal failed (retry on the next flush tick),
S3 WAL segment delete failed, AccessDenied, RequestTimeout, or a manifest
that lags behind the cursor.
Diagnosis.
- Verify credentials and bucket policy:
PutObject,GetObject,DeleteObject,ListBucket, and conditionalPutObject(If-Match/If-None-Match). A backend without conditional PUT is safe only with a single writer. - Check endpoint, region, path-style setting, and clock skew (S3 rejects requests whose signing time drifts).
- Confirm the manifest exists and is readable:
aws s3 cp s3://<bucket>/<prefix>/manifest.json -.
Fix. Correct the policy or endpoint. Transient seal errors retry on the next
flush tick; a failed segment delete stays queued in pending_deletes and is
retried. Do not delete segments manually — retention reclaims them.
Related. WAL object-store backend, Recovery runbook.
Checkpoint and recovery failures
Checkpoint task-set mismatch
Symptoms. checkpoint '<id>' task set does not match the planned assignment (missing: …, extra: …), or the Job fails to start after a parallelism change.
Diagnosis. The compiled plan no longer matches the tasks recorded in the
checkpoint — usually a changed parallelism, an added/removed stateful
operator, or a different placement target set.
Fix. Restore the original parallelism, or set rescale: true for a
parallelism-only change that keeps every stateful operator. Removing a stateful
operator is not rescalable; start from a fresh checkpoint/savepoint instead.
Related. Rescaling on recovery.
Partial or missing checkpoint
Symptoms. A checkpoint stays incomplete, never seals, or recovery restores
an older cut. A node is offline during the barrier.
Diagnosis. The Hub seals a manifest only when every planned task is in the cut. Check node health, the operation status, and whether one task is blocked on a full channel or a slow sink.
Fix. Restore the node or let the job re-place the failed slot; do not force a partial manifest. If the job is stuck under backpressure, address the sink first.
Related. Acknowledged cut, Backpressure and buffering.
Deleting a checkpoint or state directory bypasses the acknowledgement contract and can re-emit or skip data. Reset state only with a new checkpoint/savepoint and an explicit decision about the affected range.
Backpressure and latency
Symptoms. Source lag grows with low CPU; throughput plateaus; a window flush
causes a burst then a pause; max_buffered_keys or join capacity eviction warns.
Diagnosis.
- Compare sink latency/errors with source lag to find the bottleneck.
- Check
thread_numand whether a single processor thread is saturated. - Look for an oversized tumbling/session window or a session gap that never closes.
- For joins, a sustained capacity-eviction warning means
max_per_key(or the window/TTL) is too small for the key skew.
Fix. Increase processor parallelism, reduce window size, add sink capacity, or raise the join bound. On a replayable source, backpressure is safe — it pauses the fetch rather than dropping data.
Related. Backpressure and buffering, Backpressure and ordered delivery.
Connector authentication and TLS
Kafka SASL or TLS failure
Symptoms. sasl_ssl handshake errors, authentication failed,
broker transport failure, or a metadata timeout.
Diagnosis.
- Confirm
brokersis reachable from the process (nc -vz host 9092). - Check
security_protocol, SASL mechanism, username/password (or secret reference), and the CA/truststore paths. - Verify the broker certificate SAN matches the advertised hostname.
- Rotate credentials by updating the secret reference; do not commit secrets.
Fix. Correct the protocol/mechanism or certificate path. A common mistake is
mixing sasl_plaintext with a TLS-only listener (or the reverse).
Related. Kafka input, Secret references.
MQTT TLS failure
Symptoms. tls handshake error, certificate verify failed, or connection
resets before CONNACK.
Diagnosis. Check the broker port (8883 for TLS), CA path, client certificate and key pairing, and whether the broker requires a specific TLS version. A client certificate without a key (or vice versa) is ignored with a warning — pair them.
Fix. Provide both certificate and key, point the CA at the broker's issuer, and confirm the broker's certificate hostname.
Related. MQTT input.
SQL ssl_mode failure
Symptoms. unknown ssl mode, mysql ssl_mode '…' must parse, or a server
rejecting the connection with a TLS requirement.
Diagnosis. The SSL mode must be one the driver recognizes (disabled,
preferred, required, verify_ca, verify_identity — exact set depends on
the database type). Check ssl.root_cert, client_cert, and client_key if
mutual TLS is required.
Fix. Use a supported mode and provide the CA when verifying. For a quick
local check, preferred negotiates TLS when available; production should use
verify_identity/verify_ca.
Related. SQL output, SQL input.
Control plane connectivity
Hub unreachable or standby
Symptoms. 503 hub_standby with a leader_url hint, connection refused,
TLS errors, or Agents cycling between Hub addresses.
Diagnosis.
GET /health,/readiness,/livenesson each Hub. A standby answers health probes but returns503 hub_standbyfor operator and agent routes.- Check
hub_urlson the Agent; a single-entry list behaves like the old single address. - Verify TLS: the Hub certificate, the Agent CA (
ARKFLOW_AGENT_TLS_CA), and the node SAN (URI:urn:arkflow:node:<id>) if strict binding is enabled. - Check the Hub logs for lease renewal failures and
/api/v1/systemforha.role/ha.epoch.
Fix. Point Agents at the leader (or rely on the leader_url hint), correct
the CA/SAN, and let the reconnect loop re-register. A stale_leader response
means the write raced a takeover — retry against the elected leader.
Related. Hub high availability, HA and failover runbook.
401/403 on the control API
Symptoms. 401 unauthorized, 403 forbidden, or a token prompt in the
console.
Diagnosis. Confirm the Authorization: Bearer <token> header, the token's
role, and scopes. Managed credentials look like ark_<credential_id>_<secret>;
a revoked/expired/unknown managed token is a hard 401 and is never retried as
a JWT. 403 means the role lacks the action (for example ReadAudit on
/audit).
Fix. Issue a new credential, grant the role/scope, or use the static break-glass operator token for recovery. Audit the change.
Related. Users and credentials, Secrets and approvals.
Python SDK
Import failure
Symptoms. ModuleNotFoundError: No module named 'arkflow', a wheel tag
mismatch, or an import error naming a missing shared library.
Diagnosis.
- Confirm the interpreter and platform match the wheel:
python -c "import sys; print(sys.platform, sys.version)"andpip debug --verbose. - Install with
pip install arkflow==<version>and pin the version; the SDK is experimental and may break between releases. - In a venv, confirm
pipandpythonrefer to the same environment.
Fix. Install a compatible wheel or build from source with maturin develop
in crates/arkflow-py. A wheel built without a connector feature cannot run
YAML that uses that connector unless the callable is injected.
Related. Python SDK installation.
Runtime error or panic
Symptoms. ExecutionError with a Rust panic message or a Python traceback,
or a pipeline hanging on run().
Diagnosis. ExecutionError includes the captured panic or UDF traceback —
the interpreter survives. Check the callable's return type: map_batches must
return a batch, None (drop), dicts, or an Arrow PyCapsule. A hang usually means
run() is waiting for a source that never reaches EOS; use collect(duration=…)
or start_background() to bound it.
Fix. Correct the UDF, or switch to a bounded execution primitive. Only
run() provides end-to-end delivery semantics; take/collect/iter_batches
are sampling and do not rewind offsets.
Related. Python SDK errors, Execution lifecycle.
Still stuck?
- FAQ
- Recovery runbook
- Observability
- Error codes reference
- Search the docs site; if the symptom is not covered, open an issue with the
log signature and
arkflow --version.