Skip to content

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:

  1. Generate a 32-byte key (openssl rand -hex 32 produces 64 hex characters; openssl rand -base64 32 produces standard Base64).
  2. Pass the exact same ARKA_CREDENTIAL_KEY (and ARKA_CREDENTIAL_KEY_ID, default primary) to both arka migrate and every arka serve replica.
  3. On Kubernetes (Helm/Kustomize), remember that the default templates do not yet declare ARKA_CREDENTIAL_KEY—you must inject it into both migrate and arka containers using the post-renderer or Kustomize patch in Production Deployment.
  4. 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 migrate fails on extension/index syntax or permissions.
  • Multi-replica cache invalidation lags or LISTEN disconnects continuously.
  • DSN parse errors on startup.

Checks & Fixes:

  • PostgreSQL version: Use PostgreSQL 16 (tested on 16.x). Grant the arka DB user ownership of the arka database 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) and LISTEN/NOTIFY (arka_invalidation, arka_jobs). Connect directly to PostgreSQL or a session-mode pooler.
  • URL-encode special characters in passwords: Characters such as @, :, /, ?, #, % inside ARKA_DATABASE_URL must be percent-encoded.
  • Connection budget under HPA: Append ?sslmode=verify-full&pool_max_conns=25 to ARKA_DATABASE_URL and ensure maxReplicas * 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:

bash
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/ready reports blob store unhealthy (NoSuchBucket or 403 AccessDenied).
  • Clients get a 302 Found redirect 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, set ARKA_S3_PATH_STYLE=false.
  • Pre-create bucket in production: Helm defaults storage.s3.autoCreateBucket: false. Create the bucket beforehand and grant ListBucket, GetObject, PutObject, DeleteObject, and multipart upload permissions.
  • 302 Presign behind private S3: When ARKA_STORAGE_PRESIGN_REDIRECT=true, set ARKA_S3_PUBLIC_ENDPOINT (storage.s3.publicEndpoint) to a client-reachable HTTPS S3 URL while keeping ARKA_S3_ENDPOINT internal. Ensure reverse proxies forward the signed Host, path, and query string verbatim.
  • AWS IAM (aws_default): When using ARKA_S3_AUTH_MODE=aws_default, unset ARKA_S3_ACCESS_KEY and ARKA_S3_SECRET_KEY—Arka rejects combining static keys with aws_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_statusCauseFix
vulnerability database missing (state="missing")Empty PVC or missing current symlink when scanner.dbUpdater.enabled=trueRun 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_DIRFix 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 breachedIncrease scanner.workspaceSize and container memory limit (tmpfs counts toward Pod memory)
HTTP 401 from Arka workerARKA_SCANNER_TOKEN mismatch or shorter than 16 charsEnsure both Arka and Scanner reference the identical Secret token (>= 16 non-whitespace chars)

Remember: Arka server probes are /api/v1/health and /api/v1/ready (on :8080). Scanner probes are /healthz and /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 OCI POST /v2/.../uploads/ returns an http:// or localhost Location header, set ARKA_BASE_URL to your exact external https://... 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 audit before enforce: Always enable --mode audit first and inspect arkactl 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. Ensure scanOnPublish: true and scannerExecution: sidecar (or scannerDriver: sidecar) are enabled on the repository and the scan completed.
  • Dual-licensed expressions (OR): MIT OR GPL-3.0-only passes when MIT is allowed (or when only GPL-3.0-only is denied) because a consumer can legally choose the MIT branch. MIT AND GPL-3.0-only is blocked when GPL-3.0-only is denied.
  • Unknown licenses (NONE, NOASSERTION, unparseable): Controlled strictly by blockUnknownLicense (--block-unknown). Leave it false during 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:

  1. CLI flags --url / --token (highest priority)
  2. Environment variables ARKA_URL / ARKA_TOKEN
  3. Selected profile in ~/.config/arka/config.json (--profile <name>, else defaultProfile, else default)
  4. Fallback http://localhost:8080

Verify your active target and identity anytime with:

bash
arkactl auth whoami --json

Released under the Apache 2.0 License.