Skip to main content
Version: v1.4.0-m.1 (pre-release)

Logs and Troubleshooting

Runtime Logs​

Via Backstage UI​

  1. Navigate to your Component
  2. Click the Logs tab to search and filter logs by environment, time range, and keywords

When the observability plane is configured, additional tabs are available:

  • Metrics: view metric graphs for your component
  • Alerts: view triggered alerts

Via CLI​

# Get recent logs
occ component logs my-service --namespace default --project default

# Follow logs in real-time
occ component logs my-service -f

# Logs from a specific environment
occ component logs my-service --env production

# Last 100 lines
occ component logs my-service --tail 100

# Logs since a specific time
occ component logs my-service --since 1h

Viewing Kubernetes Resources​

Via Backstage UI​

Click View K8s Artifacts on any environment card to see the resource tree:

  • Deployments and ReplicaSets
  • Pods (with status and events)
  • Services
  • HTTPRoutes
  • Kubernetes events

The tree also follows resources created beneath these, and platform engineers can extend it to custom kinds.

This view helps diagnose issues like pod crashes, image pull errors, or routing problems.

Via CLI​

# Stream the component's logs
occ component logs my-service --env development -f

# Check which release each environment runs and whether it is Ready
occ releasebinding list --component my-service

# Inspect the component's conditions
occ component get my-service

For Kubernetes-level inspection, use kubectl in the data plane:

# Check the underlying deployment
kubectl get deployment -A -l openchoreo.dev/component=my-service

# Check pod status
kubectl get pods -A -l openchoreo.dev/component=my-service

# Check events
kubectl get events -A --field-selector involvedObject.name=my-service

Undeploy and Redeploy​

Undeploy​

Undeploying removes the running workload from an environment without deleting the ReleaseBinding. This lets you redeploy later without reconfiguring.

In the Backstage UI, click Undeploy on the environment card.

Redeploy​

To restore an undeployed component, click Redeploy on the environment card. This reactivates the existing ReleaseBinding.

Rollback​

To roll back to a previous release, deploy an older ComponentRelease by name:

occ componentrelease list --namespace default --project default --component my-service
# NAME COMPONENT AGE
# my-service-a1b2c3d4e5 my-service 9d
# my-service-f6e5d4c3b2 my-service 2d

Release names are generated as <component>-<hash>, so take the one to roll back to from that list:

occ component deploy my-service --release my-service-a1b2c3d4e5

This creates a new ReleaseBinding pointing to the older release, effectively rolling back the deployment.

Common Issues​

SymptomPossible CauseWhat to Check
Component stuck in "NotReady"Data plane connectivityCheck ClusterAgent pod logs in the data plane
Pods in CrashLoopBackOffApplication errorCheck pod logs via Backstage or occ component logs
Image pull errorWrong image reference or missing credentialsVerify container image URL and registry access
No endpoints accessibleHTTPRoute not created or gateway misconfiguredCheck kubectl get httproute -A and gateway pod logs
Deployment not appearingReleaseBinding not createdCheck occ releasebinding list and Component conditions

What's Next​