Agent Health Checks Pass but No Tasks Are Picked Up: A Local Deployment Troubleshooting Walkthrough
This article explains why a locally deployed AI agent can pass every health check yet still show zero running and zero queued tasks. It covers four common root causes—mismatched task entry points and event sources, using the same identity for both the requester and the agent, overly broad or overly narrow permissions, and misreading the dashboard—along with a reusable checklist for verifying the full request pipeline from event source readiness to write-back logging.
1. The Symptom: Green Health Checks, Empty Task Queue
In local AI agent deployments, one of the most common misjudgments is assuming the system is ready because the process is running, the port is reachable, and every health check passes. But once a task is actually submitted, the running and waiting counts in the queue stay at zero indefinitely, with no response at all. The real issue here is not that “the service is down”—it is that the request never entered the processing pipeline in the first place.
The key distinction is that a health check only proves the runtime is alive. It does not prove that the business entry point, identity allowlist, permission configuration, and event subscriptions are correct. Treating “alive” as “able to do work” is where the troubleshooting direction starts to go wrong.
2. Root Cause 1: The Entry Point Does Not Match the Event Source
Many agent frameworks support multiple task entry points, such as a chat window, message subscriptions, or ticket events from a code hosting platform. If only the code hosting source is enabled during deployment, then messages sent in the assistant chat will never enter the processing flow, and the dashboard will naturally show zero running and zero queued.
Troubleshooting steps:
- First confirm which entry points are currently enabled, and list them one by one;
- Submit tasks using a method that matches the entry point, rather than whichever method is most convenient;
- Explicitly declare the allowed event types in the configuration to avoid ambiguity from default values.
An illustrative configuration structure (showing hierarchy only, not pointing to any specific product):
agent:runtime:port: 3082ingress:- type: chat # Chat entry pointenabled: false- type: issue_event # Ticket event entry pointenabled: trueallowed_actions: [opened, reopened]
Once the entry point is narrowed down to ticket events, the pattern of the first two tests getting no response and only the third succeeding usually means the first two requests did not meet the trigger conditions (for example, the event type, target repository, or initiator was not on the allowlist), rather than the service being unstable.
3. Root Cause 2: Configuring the Requester and the Agent as the Same Identity
This is the most insidious type of mistake. Using a personal account for both the requester and the executor to save effort mixes together three responsibilities that should be kept separate:
| Identity | Responsibility | Key Requirement |
|---|---|---|
| Requester | Submits requests in tickets | Must be on the allowlist |
| Execution account | Receives notifications, reads content, writes back comments | Read/write access to the target repository |
| Repository owner | Manages the repository and collaborators | Does not need to be tied to the other two |
A successful login only proves that some credential is valid; it does not prove the service is consuming events under the correct identity. If the first ticket is created by the execution account itself, most implementations will treat it as self-triggered and ignore it—which is exactly the high-frequency reason behind “no one picks up the task.”
The recommended approach is to prepare a separate configuration directory and credential store for the execution account, isolated from your personal account at the filesystem level to prevent tokens from overwriting each other. You can use a wrapper script to pin the configuration directory before invoking the underlying command:
#!/usr/bin/env bash# Separate config directory to isolate the two sets of credentialsexport GH_CONFIG_DIR="$HOME/.config/agent-exec"exec gh "$@"
Place it in a personal executable path and grant execute permission, then log in separately with your personal account and the execution account. The two will not interfere with each other.
4. Root Cause 3: Permission Boundaries and Least Privilege
The capabilities the execution account needs should be scoped precisely to “read tickets, write comments, read code, create branches.” Overly broad authorization introduces security risk, while overly narrow authorization shows up as silent failure: the event is received, but the write-back is rejected, so the dashboard still looks like “no one is picking anything up.”
Implementation recommendations:
- Grant only the necessary permissions on the ticket source repository, distinguishing between public and private repositories;
- Prepare a writable practice repository for the execution account to validate the full loop;
- Define branch and commit policies clearly to prevent the execution account from modifying protected branches directly;
- Keep logs for all write-back actions to help distinguish “not received” from “received but rejected.”
5. Root Cause 4: Dashboard Access and Status Interpretation
Accessing the local address directly often prompts for authentication, which is expected behavior. You should enter the dashboard using the tokenized address printed at startup, and focus on three areas: runtime status, event source connection status, and queue depth.
The recommended reading order is: first check whether the event source is ready, then check whether the queue has received events, and finally look at the failure reasons in the execution records. Skipping the first two steps and going straight to the logs usually just yields a lot of idle “no tasks” information.
6. A Reusable Troubleshooting Checklist
- Confirm the event entry point enabled for this session, and submit requests using a matching method;
- Verify whether the initiator is on the allowlist, ruling out self-triggering;
- Check whether the execution account credentials are independent and whether they have access to the target repository;
- Confirm the event source connection is in a ready state, not merely that the process is alive;
- Validate the end-to-end pipeline with a minimal loop (one writable practice repository plus one ticket);
- Keep structured logs for every write-back to form an auditable record.
7. Conclusion
The difficulty of deploying an agent locally usually lies not in installation but in the coordination of identity, entry points, and permissions. Installation often takes only a few commands, while the truly time-consuming parts are account isolation, authorization granularity, and validating the task pickup pipeline. Only by downgrading “health check passed” to a single signal of “runtime alive,” and then using layered verification to fill in evidence across the entry point, identity, and permission layers, can you reliably determine whether the system truly has processing capability. If you need to move to a hosted setup, you can combine general cloud capabilities such as container platforms, log services, and monitoring and alerting to smoothly migrate the locally validated configuration into an observable, alert-capable runtime environment.
