Troubleshooting
Start with diagnostics
bash
codewise version
codewise doctor
codewise doctor --cluster
docker --version
kubectl version --client
helm version
kubectl config current-contextUse --require in CI when missing tools must fail the job:
bash
codewise doctor --cluster --require docker,kubectl,helmDockerfile already exists
docker init refuses to overwrite an existing file. Review or rename the existing Dockerfile before generating another.
Docker daemon permission denied
Confirm Docker is running and that your user can access its daemon:
bash
docker infoFollow your operating system's Docker post-installation guidance instead of running Codewise permanently as root.
No Kubernetes manifests found
Run from the application root and generate manifests first:
bash
codewise k8s init --app myapp --image myapp:latest
codewise k8s apply --dry-runCluster unreachable or misconfigured
bash
kubectl config get-contexts
kubectl config current-context
kubectl cluster-infoPass a specific context with --context where supported, or update the environment's k8s.yaml.
Ask Codewise to explain the selected strategy and recovery path:
bash
codewise env show staging
codewise deploy explain --env stagingEnvironment not found
bash
codewise env list
codewise env create devIf CODEWISE_HOME is set, Codewise reads environments from that location instead of ~/.codewise.
Output file already exists
Use a different output path or opt in to replacement:
bash
codewise encode -i app.yaml -o app.json --forceValidate the project itself
From the Codewise repository:
bash
make build
go test ./... -v
go test ./... -race