conduktor.io ↗

Kafka Exception ConnectException

org.apache.kafka.connect.errors.ConnectException
Non-retriable Connect

ConnectException is the top-level exception type generated by Kafka Connect and connector implementations.

Common Causes

Solutions

Example Stack Trace

ERROR WorkerSinkTask{id=influxdb-sink-0} Task threw an uncaught and unrecoverable exception. Task is being killed and will not recover until manually restarted (org.apache.kafka.connect.runtime.WorkerTask) org.apache.kafka.connect.errors.ConnectException: Exiting WorkerSinkTask due to unrecoverable exception. at org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages(WorkerSinkTask.java:586) at org.apache.kafka.connect.runtime.WorkerSinkTask.poll(WorkerSinkTask.java:323) at org.apache.kafka.connect.runtime.WorkerSinkTask.iteration(WorkerSinkTask.java:226) at org.apache.kafka.connect.runtime.WorkerSinkTask.execute(WorkerSinkTask.java:204) at org.apache.kafka.connect.runtime.WorkerTask.doRun(WorkerTask.java:188) Caused by: java.net.ConnectException: Failed to connect to /127.0.0.1:8086

Diagnostic Commands

curl -s http://localhost:8083/connectors/<name>/status | jq '.tasks[] | {id, state, trace}' # see the FAILED task's stack trace curl -X POST http://localhost:8083/connectors/<name>/tasks/0/restart # restart a single failed task curl -X POST http://localhost:8083/connectors/<name>/restart?includeTasks=true # restart connector + its tasks

Related

Related Connect exceptions: AlreadyExistsException · DataException · IllegalWorkerStateException · NotFoundException · SchemaBuilderException · SchemaProjectorException

Hitting ConnectException in production? Conduktor Console gives you real-time visibility into clients, consumer groups, and broker health. Browse every Kafka exception or protocol error code.