Skip to main content

Troubleshooting

Routing and sandboxes​

Why are my requests reaching the baseline version of the microservice and not the one in my Sandbox or RouteGroup?​

  1. In-cluster routing is not set up correctly: The most common cause of this issue is that your in-cluster routing setup is not set up correctly. When the request traverses your microservices-based application, it relies on in-cluster routing provided either by Signadot's DevMesh or by using a service mesh like Istio to target a sandboxed service. To understand what Preview URLs do under the hood, see Preview Endpoint Targets.

  2. Lack of context propagation via microservice: If you have verified that the Signadot sidecar (or the service mesh sidecar) already exists and is correctly configured, another potential cause of this issue may be the lack of context propagation through your application. This context propagation is commonly implemented using OpenTelemetry and involves passing headers received on the incoming end of the request to the outgoing request made to a subsequent microservice.

  3. The caller runs in Istio ambient mode: If requests from some services reach the sandbox and requests from others don't, see the next question.

Why is my Sandbox Ready while requests from some services still reach the baseline?​

If your cluster runs Istio ambient mode, check whether the requests that miss the sandbox come from ambient workloads. Workloads in ambient mode have no sidecar, so they only reach a sandbox fork when the destination Service has a waypoint. A sidecar on the destination's own pods doesn't help. The sandbox reports Ready either way, because Signadot adds the routes whether or not a waypoint applies them.

List the Services in the forked workload's namespace and check the WAYPOINT column:

istioctl ztunnel-config services --service-namespace <namespace>

If the forked Service shows None, add a waypoint and attach it to the Service:

istioctl waypoint apply -n <namespace>
kubectl label service <service> -n <namespace> istio.io/use-waypoint=waypoint

See Istio Ambient Mode, including clusters with sidecar and ambient namespaces.

Why is my Sandbox Not Ready with "DevMesh Sidecar absent on baseline"?​

The sandbox's status reason is RoutingNotReady, and its message names the baseline workload, as in DevMesh Sidecar absent on baseline <namespace>/<workload>. The baseline's pods don't run the DevMesh sidecar, so there is nothing to send requests with the sandbox's routing key to the fork.

The sidecar is added when a pod starts, so pods that were already running when the operator was installed, or when the workload was opted into DevMesh, don't have it. Check that the workload is opted in, with the sidecar.signadot.com/inject: "true" annotation on its pod template or the label on its namespace (see DevMesh), then restart it:

kubectl -n <namespace> rollout restart deployment/<workload>

The sandbox becomes Ready once the new pods are running. To find every workload whose pods lack the sidecar or run an outdated one, use signadot cluster devmesh analyze:

signadot cluster devmesh analyze --cluster <cluster> --namespace <namespace>

Why are my Sandboxes or RouteGroups not applying routing?​

If Sandboxes or RouteGroups stay NotReady because routing cannot be applied, check whether the operator's controller manager is resource-constrained. Reconciliation log messages such as couldn't reconcile children, object is being deleted ... already exists, or istioroutes ... not found can appear during normal operation, but a sustained increase together with a growing workqueue can indicate that the controller is falling behind.

Check controller resource usage and logs:

kubectl logs -n <operator-namespace> deploy/<controller-manager-deployment> -c manager --since=1h
kubectl top pods -n <operator-namespace>

Also review controller-runtime workqueue metrics from the controller manager metrics service; see Monitoring.

If CPU is near its limit, memory is high, or the workqueue keeps growing, increase controllerManager.resources in your Helm values. For larger installations, set a higher CPU limit so the controller can handle short bursts:

controllerManager:
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
cpu: "2"
memory: 1Gi

Then apply the values with Helm:

helm upgrade <release-name> <chart-name> --reuse-values -f values.yaml

Why is my Sandbox Not Ready with ResourceFailed?​

A step of the Resource Plugin providing that resource exited with an error. The sandbox status names the resource but not the step; the step's logs explain the failure. Read them with signadot logs --sandbox <sandbox> --resource <resource> (CLI v1.8.0+), or from the sandbox's Logs tab in the dashboard. See Testing and Debugging Resource Plugins.

Why does my Sandbox or RouteGroup briefly report Not Ready with StaleUpstream?​

Starting with Operator v1.5.0, a Sandbox or RouteGroup is Ready only once its routing reflects its current workloads. After a change, such as an edit to the Sandbox, a rebuilt fork or a redeployed baseline, it can report Not Ready with reason StaleUpstream while the routing catches up, which usually takes a few seconds. Requests with the routing key keep their previous routes during that time.

No action is needed. If you wait on or alert on Sandbox readiness, allow for this short window. If the status stays StaleUpstream, the controller manager may be falling behind; see Why are my Sandboxes or RouteGroups not applying routing?.

Why is my Sandbox Not Ready with VirtualWorkloadNotReady?​

Requests with the routing key that are sent to a virtual workload go to its baseline. Starting with Operator v1.5.0, a virtual workload is ready only while its baseline has at least one available Pod, so a Sandbox with a virtual workload stays Not Ready while that baseline is scaled to zero or none of its Pods is available. Earlier versions reported such a Sandbox as Ready.

Scale the baseline up, or wait for its Pods to become available, and the Sandbox becomes Ready on its own.

Why doesn't my sandboxed consumer process a message sent right after the sandbox became Ready?​

With message-level routing, each consumer decides per message whether to process it, from the routing rules it reads from the Routes API. A consumer that polls the Routes API learns about a new sandbox only on its next poll, and the sandbox reports Ready without waiting for that. Until the consumers catch up, the baseline consumer still treats the sandbox's routing key as its own and processes the message, and the sandboxed consumer skips it.

Wait for one poll interval, then send the message again. The interval is set by your consumer code; the Redis Streams reference implementation, for example, polls every 5 seconds.

Org limits​

Why does a command fail with "can't go over limit"?​

The org has reached one of its plan's quotas or limits. The message names it, as in can't go over limit (monthlySandboxes: 151/150). Limits cap how many resources exist at once, such as connected clusters, so removing one you no longer need frees room. Quotas count usage per month, such as sandboxes created, and reset on the 1st. See Quotas and Limits for what each one counts and how to raise it.

Jobs​

Why does signadot job submit --attach print "The job execution has been restarted"?​

The CLI streams a job's log while the job runs, and the warning marks where that log started again from the beginning. Usually the stream dropped and the CLI reconnected after the job had finished, so the stored log is printed in full and the lines before the warning appear twice; the job ran once. The warning also appears when Signadot runs a job again after an infrastructure failure, such as its runner pod restarting, and then the output after the warning is from the new run.

Either way, signadot job get <job-name> shows the job's final status and its artifacts.

Plans​

Why does signadot plan run fail with "no plan runner group on cluster"?​

Plans aren't enabled on the cluster the plan runs on. An org admin enables them on the Managed Runners page by setting Plan Runners for the cluster to 1; see Enabling Plan Runner Groups. Run the plan again once the page shows the runner as ready.

Why does creating a plan fail with "is not in this org's allowed-images list"?​

A step runs a container image the org doesn't allow. Actions that run an image you choose, such as run-container, only run images on their Allowed images list. An org admin adds the image, fully qualified (mcr.microsoft.com/playwright:v1.45.1-jammy) or as a glob (mcr.microsoft.com/playwright:*), on the Managed Runners page under Settings > Plan Runner Actions > Configure. Then create the plan again. When the image comes from a plan parameter, the check happens when the plan runs instead, and the run fails with the same message. See Set up Tests using Plans.

Why do plan steps fail at start with "operation not permitted"?​

The cluster's nodes don't allow the unprivileged user namespaces that plan steps run in. On a local cluster this usually means a Linux host running Ubuntu 23.10 or later, where AppArmor restricts them. See Enabling Plan Runner Groups for the fix for each environment, and for a probe pod that checks a node.

Why is my plan run failed when its exit_code output is 0?​

The step's command succeeded, but uploading one of its artifact outputs, such as a test report, failed afterwards. A plan output that points at an artifact that didn't upload fails the run, while inline outputs such as exit_code still show the step's result. The run's error names the output, as in plan output "report": artifact upload failed for step "e2e" output "report". Run the plan again to get the artifact.