🚑 Common Issues & Fixes
Even the best-orchestrated fleets hit a snag. This guide provides human-friendly solutions for common hurdles you might encounter while using LaraKube CLI.
🔒 HTTPS / Trust Issues (Start Here)
Symptom: Your browser shows a security warning, a .kube domain won't load over HTTPS, or you see certificate errors in the console.
First diagnostic to run:
larakube trust:check
trust:check probes the entire local HTTPS trust chain — CA files in ~/.larakube/certificates/, keychain trust, live DNS resolution for .kube domains, system cert validity, and per-app cert validity — and tells you exactly which step is broken. It returns exit code 1 if any issues are found.
Common fixes based on trust:check output:
- CA not trusted in keychain: run
larakube trustto install it. - DNS not resolving: run
larakube hosts(and ensure dnsmasq is running as a root daemon on macOS — see macOS setup). - CA files missing or corrupted: run
larakube trust:resetto destroy and regenerate the local CA. Per-app certs regenerate automatically on the nextlarakube up.
📁 Unreachable Projects
Symptom: The LaraKube Console displays a "Source path unreachable" warning or fails to sync with a project.
The Cause: This usually happens when the LaraKube Console is running in a different environment or context than where the project was created, or if the project's workspace mount has moved on your host machine.
The Fix:
- Verify Mounts: Ensure your host machine's code directory is correctly mounted to the LaraKube CLI Docker daemon.
- Align Paths: The Console and CLI must agree on where your projects live. If you've moved your project folder, run
larakube doctorinside the project directory to re-align the metadata. - Console Refresh: Click the "Re-scan Projects" button in the Console settings to update its internal path registry.
🔌 Traefik Networking Issues
Symptom: You can't access https://traefik.kube or your project's .kube domain.
The Fix:
- Run trust:check:
larakube trust:checkidentifies whether the problem is the CA, DNS, or the cert itself. - Trust the CA: Ensure you have run
larakube trust. This installs the local SSL authority required for valid HTTPS. - Check Traefik Status: Check the console health or use
larakube aboutand verify thetraefikpod is in aRunningstate. - Restart Traefik: If networking feels "stuck," run
larakube traefik:restartto perform a graceful rollout.
💾 Volume & Persistence Issues
Symptom: A database pod is stuck in a Pending state with an error like FailedScheduling or volume errors.
The Fix:
- Recreate Strategy: LaraKube CLI uses a
Recreatestrategy for databases to prevent volume corruption. Ensure you aren't trying to run multiple instances of the same database on the same volume. - Purge & Heal: If a volume is truly corrupted, you can run
larakube purgefollowed bylarakube healto reset the manifests and attempt a fresh mount.
🚀 Vite / HMR Issues
Symptom: Your frontend changes aren't reflecting, or you see Vite connection errors in the browser console.
The Fix:
- Harden Config: Ensure your
vite.config.jshas been "hardened" by LaraKube CLI. You can manually trigger this by runninglarakube add vite(it will detect and fix existing configs). - Port Alignment: Verify that your
WATCH_PORTin.envmatches the port defined in yourlarakube-webservice manifests.