Troubleshooting
Common issues and their solutions.
Installation Issues
Pod Not Starting
Symptom: Pod stays in Pending or CrashLoopBackOff
Solutions:
-
Check pod status:
kubectl get pods -n flux-system -l app.kubernetes.io/name=gyre -
Check events:
kubectl describe pod -n flux-system -l app.kubernetes.io/name=gyre -
Common causes:
- Insufficient resources (increase limits)
- PersistentVolume not available (check storage class)
- Image pull errors (check image tag and registry access)
Cannot Access Web UI
Symptom: Connection refused or timeout
Solutions:
-
Check service:
kubectl get svc -n flux-system gyre -
Verify pod is running:
kubectl get pods -n flux-system -l app.kubernetes.io/name=gyre -
Test port-forward:
kubectl port-forward -n flux-system svc/gyre 3000:80
Authentication Issues
Cannot Login
Symptom: "Invalid credentials" error
Solutions:
-
Get admin password:
kubectl get secret gyre-initial-admin-secret \
-n flux-system \
-o jsonpath='{.data.password}' | base64 -d -
Check if password was changed:
kubectl logs -n flux-system -l app.kubernetes.io/name=gyre | grep password -
Reset admin password (requires database access):
kubectl exec -it -n flux-system \
deployment/gyre -- \
sh -c 'sqlite3 /data/gyre.db "UPDATE users SET password_hash = \"new_hash\" WHERE username = \"admin\";"'
OAuth Login Fails
Symptom: Redirect loop or "Authentication failed"
Solutions:
-
Verify OAuth credentials:
kubectl get secret -n flux-system | grep oauth -
Check callback URL is correct in OAuth provider
-
Verify Gyre URL matches OAuth configuration
-
Check logs:
kubectl logs -n flux-system -l app.kubernetes.io/name=gyre | grep oauth
Cluster Connection Issues
Cannot Connect to Cluster
Symptom: "Cluster unavailable" or timeout
Solutions:
-
Verify ServiceAccount permissions:
kubectl auth can-i --list --as=system:serviceaccount:flux-system:gyre -
Check ClusterRoleBinding:
kubectl get clusterrolebinding | grep gyre -
Test K8s API access from pod:
kubectl exec -it -n flux-system \
deployment/gyre -- \
curl -k https://kubernetes.default.svc/healthz
Multi-Cluster Issues
Symptom: Cannot see resources from other clusters
Solutions:
-
Verify kubeconfig is valid:
kubectl config view --raw -
Check cluster context exists:
kubectl config get-contexts -
Test cluster connection:
kubectl --context=other-cluster get nodes
Performance Issues
Slow Loading
Symptom: Pages take long to load
Solutions:
-
Increase resources:
resources:
limits:
cpu: 2000m
memory: 1Gi -
Check database size:
kubectl exec -it -n flux-system \
deployment/gyre -- \
ls -lh /data/gyre.db -
Clear cache:
kubectl rollout restart deployment -n flux-system gyre
High Memory Usage
Symptom: OOMKilled or high memory usage
Solutions:
-
Check for memory leaks:
kubectl top pod -n flux-system -l app.kubernetes.io/name=gyre -
Reduce cache TTL:
cache:
ttl: 10 # seconds -
Limit concurrent connections
Resource Display Issues
Resources Not Showing
Symptom: Empty list or "No resources found"
Solutions:
-
Verify FluxCD is installed:
kubectl get pods -n flux-system -
Check resource exists:
kubectl get kustomizations -A -
Verify RBAC permissions
-
Check logs:
kubectl logs -n flux-system -l app.kubernetes.io/name=gyre | grep error
Wrong Status Displayed
Symptom: Status doesn't match actual resource state
Solutions:
-
Refresh page (hard refresh: Ctrl+Shift+R)
-
Check WebSocket connection in browser DevTools
-
Restart Gyre pod:
kubectl rollout restart deployment -n flux-system gyre
Database Issues
Database Locked
Symptom: "database is locked" errors
Solutions:
-
Restart the pod:
kubectl rollout restart deployment -n flux-system gyre -
Check disk space:
kubectl exec -it -n flux-system \
deployment/gyre -- \
df -h
Data Loss
Symptom: Users, settings, or data missing
Solutions:
-
Check PersistentVolume:
kubectl get pvc -n flux-system -
Verify data exists:
kubectl exec -it -n flux-system \
deployment/gyre -- \
sqlite3 /data/gyre.db ".tables" -
Restore from backup if available
Getting Help
If you can't resolve the issue:
-
Check logs:
kubectl logs -n flux-system -l app.kubernetes.io/name=gyre --tail=100 -
Gather information:
- Gyre version
- Kubernetes version
- FluxCD version
- Browser console errors
-
Open an issue:
- GitHub Issues
- Include logs and reproduction steps