Troubleshooting
Source install fails to build
- Make sure you have an up-to-date version of wheel.
- Updated versions of
goandrustare required to build Karapace from source. - Create and activate a virtual environment (venv) to manage dependencies.
Service will not start
- At least one of
karapace_registryandkarapace_restmust be enabled, otherwise the service refuses to start. - Make sure Kafka is running and reachable at
bootstrap_uribefore starting Karapace. - The
runtimedirectory (seeprotobuf_runtime_directory) must exist — Karapace fails if it does not.
Empty or unexpected subject list
GET /subjects returns an empty array when no schemas are registered yet. If you expect
data, confirm that the reader is consuming the correct topic_name (_schemas by
default) and that the instance has access to that topic.
OAuth2 startup failures
sasl_oauthbearer_jwks_endpoint_urlmust usehttps://; startup fails on a plain-HTTP URL unlesssasl_oauthbearer_allow_insecure_jwksis set (dev/test only).- Enabling
sasl_oauthbearer_authorization_enabledrequiressasl_oauthbearer_roles_claim_pathto be set, or startup fails.
401 / 403 responses with OAuth2
- A
401with{"error": "Unauthorized", ...}means the token was missing or invalid (bad signature, issuer, audience, or expired). - A
403means the token is valid but lacks the role required for the request method. Checksasl_oauthbearer_method_rolesandsasl_oauthbearer_roles_claim_path.
Protobuf compiler version
Karapace requires a Protobuf compiler whose major version is not ahead of the pinned
protobuf runtime library. An older protoc is fine.