--- name: eve-troubleshooting description: Troubleshoot common Eve deploy and job failures using CLI-first diagnostics. --- # Eve Troubleshooting Use CLI-first diagnostics. Do not assume cluster access. ## Quick Triage Checklist ```bash eve system health eve auth status eve job list --phase active ``` ## Common Issues and Fixes ### Auth Fails or "Not authenticated" ```bash eve auth logout eve auth login eve auth status ``` If SSH key is missing, register it with the admin or follow the CLI prompt to fetch from GitHub. ### Secret Missing / Interpolation Error ```bash eve secrets list --project proj_xxx eve secrets set MISSING_KEY "value" --project proj_xxx ``` Verify `.eve/dev-secrets.yaml` exists for local interpolation. ### Deploy Job Failed ```bash eve job follow eve job diagnose eve job result ``` Check for registry auth errors, missing secrets, or healthcheck failures. ### Registry Push Fails with UNAUTHORIZED If build jobs fail with `UNAUTHORIZED: authentication required` when pushing: 1. Verify secrets are set: `eve secrets list --project proj_xxx` 2. If using a custom BYO registry, verify credentials map to `registry.host` 3. Confirm the imagePull metadata in your manifest is correct 4. Add OCI source label to Dockerfile: `LABEL org.opencontainers.image.source="https://github.com/ORG/REPO"` Some registries require repository-linked package metadata or workspace-level auth alignment. ### Build Failures #### Symptoms - Pipeline fails at build step - `eve build diagnose` shows run status = `failed` #### Triage ```bash eve build list --project # Find recent builds eve build diagnose # Full state dump eve build logs # Raw build output ``` #### Common Causes **Registry authentication:** - If using custom registry mode, verify `REGISTRY_USERNAME` and `REGISTRY_PASSWORD` secrets are set (or provider-equivalent registry credentials). With managed registry (`registry: "eve"`), this step is usually not required. - Ensure credentials can access the configured registry account and namespace - Check: `eve secrets list --project ` **Dockerfile issues:** - Service must have `build.context` in manifest pointing to directory with Dockerfile - Dockerfile path defaults to `/Dockerfile` - Multi-stage builds work with BuildKit; may fail with Kaniko **Workspace/clone errors:** - Build requires workspace at the correct git SHA - Check `eve build diagnose` for workspace preparation errors **Image push failures:** - OCI labels help link packages to repos: add `LABEL org.opencontainers.image.source="https://github.com/OWNER/REPO"` to Dockerfile - Ensure registry host and auth match manifest `registry.host` when using BYO/custom registry ### Job Stuck or Blocked ```bash eve job show eve job dep list ``` Resolve dependencies or update phase with `eve job update` if appropriate. ### App Not Reachable After Deploy - Confirm deploy job succeeded (`eve job result`). - Validate ingress host pattern: `{service}.{orgSlug}-{projectSlug}-{env}.{domain}`. - Ensure service port matches `x-eve.ingress.port`. ## Escalation If CLI output is insufficient, collect: - `eve system health` - `eve job diagnose ` - manifest diff (recent changes) Then hand off to the platform operator.