Installation & Operations Troubleshooting FAQ
Practical fixes for the most common issues hit during first-time installation, Kubernetes rollout, object storage setup, scanner activation, and large-artifact uploads.
1. Startup Fails: ARKA_CREDENTIAL_KEY is required
Symptom: arka serve or arka migrate exits immediately with: ARKA_CREDENTIAL_KEY is required (set ARKA_ENV=development only for a local installation)
Root Cause: Arka encrypts recoverable secrets stored in PostgreSQL (upstream passwords, S3/Azure pool credentials, LDAP/OIDC secrets, migration source credentials) with AES-256-GCM. Unless ARKA_ENV=development is explicitly set, Arka fails closed when no master key is provided.
Fix:
- Generate a 32-byte key (
openssl rand -hex 32produces 64 hex characters;openssl rand -base64 32produces standard Base64). - Pass the exact same
ARKA_CREDENTIAL_KEY(andARKA_CREDENTIAL_KEY_ID, defaultprimary) to botharka migrateand everyarka servereplica. - On Kubernetes (Helm/Kustomize), remember that the default templates do not yet declare
ARKA_CREDENTIAL_KEY—you must inject it into bothmigrateandarkacontainers using the post-renderer or Kustomize patch in Production Deployment. - Never lose this key: Back it up in your secrets manager separately from PostgreSQL dumps.
2. PostgreSQL 16 Errors (Version, Advisory Locks, LISTEN/NOTIFY, Password Encoding)
Symptoms:
arka migratefails on extension/index syntax or permissions.- Multi-replica cache invalidation lags or
LISTENdisconnects continuously. - DSN parse errors on startup.
Checks & Fixes:
- PostgreSQL version: Use PostgreSQL 16 (tested on 16.x). Grant the
arkaDB user ownership of thearkadatabase so embedded migrations (0001–0021) can create tables and indexes. - No transaction-mode PgBouncer: Arka relies on session-level
pg_advisory_lock(migrations & maintenance leases) andLISTEN/NOTIFY(arka_invalidation,arka_jobs). Connect directly to PostgreSQL or a session-mode pooler. - URL-encode special characters in passwords: Characters such as
@,:,/,?,#,%insideARKA_DATABASE_URLmust be percent-encoded. - Connection budget under HPA: Append
?sslmode=verify-full&pool_max_conns=25toARKA_DATABASE_URLand ensuremaxReplicas * pool_max_conns + migration + headroom < max_connections.
3. Web Console Shows 404 or Blank Page (Binary / VM Install)
Symptom: GET /api/v1/health returns 200, but opening / or /login in a browser returns 404.
Root Cause: When running the arka binary directly from a release tarball (outside Docker), ARKA_CONSOLE_DIST_DIR defaults to empty, which runs Arka in API-only mode.
Fix: Point ARKA_CONSOLE_DIST_DIR to the extracted console/dist directory:
export ARKA_CONSOLE_DIST_DIR="/opt/arka/console/dist"4. S3 / RustFS / MinIO Errors (NoSuchBucket, DNS Lookup Failure, Broken 302 Presign)
Symptoms:
lookup arka-blobs.s3.internal.example.com: no such host/api/v1/readyreports blob store unhealthy (NoSuchBucketor403 AccessDenied).- Clients get a
302 Foundredirect pointing to an unreachable internal S3 hostname or signature mismatch (SignatureDoesNotMatch).
Fixes:
- Path-style vs. virtual-hosted: For RustFS, MinIO, or Ceph RGW without wildcard bucket DNS, keep
ARKA_S3_PATH_STYLE=true(storage.s3.pathStyle: true). For AWS S3, setARKA_S3_PATH_STYLE=false. - Pre-create bucket in production: Helm defaults
storage.s3.autoCreateBucket: false. Create the bucket beforehand and grantListBucket,GetObject,PutObject,DeleteObject, and multipart upload permissions. - 302 Presign behind private S3: When
ARKA_STORAGE_PRESIGN_REDIRECT=true, setARKA_S3_PUBLIC_ENDPOINT(storage.s3.publicEndpoint) to a client-reachable HTTPS S3 URL while keepingARKA_S3_ENDPOINTinternal. Ensure reverse proxies forward the signedHost, path, and query string verbatim. - AWS IAM (
aws_default): When usingARKA_S3_AUTH_MODE=aws_default, unsetARKA_S3_ACCESS_KEYandARKA_S3_SECRET_KEY—Arka rejects combining static keys withaws_default.
5. arka-scanner /readyz Returns HTTP 503
Symptom: Scanner Pod stays NotReady, GET :8091/readyz returns HTTP 503, or scan jobs fail with scanner toolchain or vulnerability database is unavailable.
Diagnosis: Inspect the JSON body of GET http://<scanner-pod>:8091/healthz and GET http://<scanner-pod>:8091/metrics (note: /metrics still returns HTTP 200 even when /readyz is 503!):
reason in /healthz or arka_scanner_db_status | Cause | Fix |
|---|---|---|
vulnerability database missing (state="missing") | Empty PVC or missing current symlink when scanner.dbUpdater.enabled=true | Run the initial rotation Job once: kubectl -n arka create job --from=cronjob/<updater> scanner-db-initial |
vulnerability database expired (state="expired") | DB build age exceeded GRYPE_DB_MAX_ALLOWED_BUILT_AGE (default 120h) | Check scanner.dbUpdater CronJob logs / egress NetworkPolicy / mirror reachability; verify arka_scanner_db_age_seconds |
offline database archive import failed (state="error") | ARKA_SCANNER_GRYPE_DB_ARCHIVE_SHA256 mismatch or read-only ARKA_SCANNER_GRYPE_DB_DIR | Fix the lowercase SHA-256 or mount a writable dir for startup archive import |
scanner filesystem unavailable or full | /tmp tmpfs full or ARKA_SCANNER_MIN_FREE_BYTES breached | Increase scanner.workspaceSize and container memory limit (tmpfs counts toward Pod memory) |
HTTP 401 from Arka worker | ARKA_SCANNER_TOKEN mismatch or shorter than 16 chars | Ensure both Arka and Scanner reference the identical Secret token (>= 16 non-whitespace chars) |
Remember: Arka server probes are
/api/v1/healthand/api/v1/ready(on:8080). Scanner probes are/healthzand/readyz(on:8091).
6. Large Artifact Uploads Fail with HTTP 413, 504, or Truncated Stream
Symptom: Small files upload fine, but large OCI layers, .whl, .jar, or AI model uploads fail with 413 Request Entity Too Large, 504 Gateway Timeout, or client EOF.
Fixes:
- Arka default upload limit: Arka allows up to 512 MiB per single HTTP request by default (OCI chunked uploads and multipart S3 storage stream cleanly).
- Ingress NGINX: Ensure these annotations are present (pre-set in Arka's Helm chart):yaml
nginx.ingress.kubernetes.io/proxy-body-size: "0" nginx.ingress.kubernetes.io/proxy-request-buffering: "off" nginx.ingress.kubernetes.io/proxy-read-timeout: "600" nginx.ingress.kubernetes.io/proxy-send-timeout: "600" - Standalone Nginx: Add
client_max_body_size 0;,proxy_request_buffering off;,proxy_read_timeout 600s;,proxy_send_timeout 600s;. - Traefik / Gateway API / Cloud LB / CDN: Detach any Buffering middleware, raise entrypoint read/write timeouts, and check outer WAF/CDN request body size limits.
- Check
ARKA_BASE_URL: If OCIPOST /v2/.../uploads/returns anhttp://orlocalhostLocationheader, setARKA_BASE_URLto your exact externalhttps://...origin.
7. License Policy Gate Blocks or Misses Expected Violations
Symptom: A repository set to enforce returns HTTP 403 unexpectedly, or an artifact shows unknown license evidence.
Checks:
- Run
auditbeforeenforce: Always enable--mode auditfirst and inspectarkactl security licenses summary "$REPO_ID" --json(or Console → Repository → Security → Licenses). - Scanner evidence required: License evaluation reads digest-bound SBOM evidence produced by
arka-scanner. EnsurescanOnPublish: trueandscannerExecution: sidecar(orscannerDriver: sidecar) are enabled on the repository and the scan completed. - Dual-licensed expressions (
OR):MIT OR GPL-3.0-onlypasses whenMITis allowed (or when onlyGPL-3.0-onlyis denied) because a consumer can legally choose theMITbranch.MIT AND GPL-3.0-onlyis blocked whenGPL-3.0-onlyis denied. - Unknown licenses (
NONE,NOASSERTION, unparseable): Controlled strictly byblockUnknownLicense(--block-unknown). Leave itfalseduring initial rollout until unknown rates drop.
8. arkactl Connection, Auth, or Profile Confusion
Symptom: arkactl hits http://localhost:8080 or uses the wrong token.
Fix: Understand arkactl's exact precedence order:
- CLI flags
--url/--token(highest priority) - Environment variables
ARKA_URL/ARKA_TOKEN - Selected profile in
~/.config/arka/config.json(--profile <name>, elsedefaultProfile, elsedefault) - Fallback
http://localhost:8080
Verify your active target and identity anytime with:
arkactl auth whoami --json