Troubleshoot
When your agent can’t use its mount, check the daemon first, then the mount, then
the harness. Most problems show in stash status, the _sources/ page of a
source, or the daemon log.
stash daemon status # is the daemon running, and which mounts it hasstash status ops # the state of the mount and each sourcecat /tmp/ops-context/_sources/incidents.mdtail -n 50 "${STASH_DATA_ROOT:-$HOME/.stash}"/logs/daemon/*.logOutside AgentCore Runtime, the data root is $STASH_DATA_ROOT when set, or
$HOME/.stash by default. Runtime uses the data root of its session. See
Deploy on AgentCore Runtime.
The /stash-diagnose agent skill runs these checks for you in Claude Code, Codex,
or Kiro, and offers each fix. It’s in
skills/.
The mount
Section titled “The mount”A search fails with mount "ops" is starting
Section titled “A search fails with mount "ops" is starting”create returns before the mount is ready. Run stash status ops until it shows
state: ready, then search again.
The state is pending_config_resolution
Section titled “The state is pending_config_resolution”The config has ${...} variables with no value. stash status ops lists them as
unbound. Give each one a value:
stash bind ops --set actorId=ops-agentThe state is failed
Section titled “The state is failed”stash status ops shows the error. A mount fails when no source of its config
starts, or when it can’t start at all. Fix the cause, then delete the mount and
create it again:
stash delete ops --yesstash create ops --config stash.tomlThe health is degraded
Section titled “The health is degraded”At least one source didn’t start, and the mount serves the others. The Sources
section of stash status ops gives the reason, and so does the source’s page in
_sources/.
create refuses a different config
Section titled “create refuses a different config”create keeps a copy of the config from the first create, and refuses a different one
for the same name. Apply the new config with update:
stash update ops --config stash.tomlupdate can’t change mount_point, cache_max_bytes, or [telemetry]. For those,
delete the mount with --remove-data, then create it again. --remove-data removes each
file in the mount point and the notes, and refuses while turns are unsent.
create refuses the mount point
Section titled “create refuses the mount point”The mount point must be empty, or belong to this mount. It can’t be inside the data root or another mount point. Choose an empty folder, or remove what is in it.
A tool call exits 0, but the tool failed
Section titled “A tool call exits 0, but the tool failed”stash tool call exits 0 when it called the tool, also when the tool reported an
error. It exits 1 only when nothing was called. Read the first lines of the answer:
[the tool reported an error] or possible error: … names the failure.
Stash never calls a tool again by itself, because a tool can change data. Before you retry a call that writes, check whether the first call changed anything.
Two processes can’t find the same daemon
Section titled “Two processes can’t find the same daemon”Each stash command, hook, and Strands process must use the same data root as the
daemon: the same HOME, or the same STASH_DATA_ROOT. A command that uses another
data root refuses the running daemon. By default, one daemon runs on each machine.
A Gateway source has no tools, or a tool is missing
Section titled “A Gateway source has no tools, or a tool is missing”The target of the source must be the name of the Gateway target. Stash keeps only the
tools whose names start with that target. Copy the name from the Gateway console, then
run stash update.
Credentials
Section titled “Credentials”A source fails with access denied
Section titled “A source fails with access denied”The daemon uses the environment of the command that started it. A later
AWS_PROFILE doesn’t reach it. Restart the daemon in the right environment:
stash daemon stopAWS_PROFILE=ops AWS_REGION=us-east-1 stash daemon startThe mounts and their data stay. The daemon restores each mount when it starts.
If the role lacks a permission, the daemon log names the action:
agentcore-memory/incidents: hydration listing /summaries/* failed: access denied (AccessDeniedException: User is not authorized to perform: bedrock-agentcore:ListMemoryRecords)A Gateway refuses each request
Section titled “A Gateway refuses each request”A source with no auth sends no credential. A Gateway with AWS_IAM or
CUSTOM_JWT inbound auth refuses it. Add auth = { sigv4 = {} } to the
source, as the error says.
To keep a mount and its unsent writes, stop the daemon, add the same auth to
mounts/ops/config.toml in the data root, and start the daemon again. Add it
to your own stash.toml too.
A Gateway URL is refused
Section titled “A Gateway URL is refused”gateway_url must have a path. An AgentCore Gateway serves MCP at /mcp. The
error gives the URL that ends with /mcp.
The harness
Section titled “The harness”attach refuses
Section titled “attach refuses”- No daemon runs.
attachnever starts one. Runstash daemon start. - The config has no
harnesses. Addharnesses = ["claude"], or the harnesses that you use, runstash update ops --config stash.toml, thenattachagain. - The folder is your home folder. Use
stash attach ops --global. - A server named
stashis already there, and Stash didn’t add it. Rename or remove that server, then runattachagain.
The agent has no stash tools
Section titled “The agent has no stash tools”- Claude Code asks once before it runs a server of
.mcp.json. Approve it. - Codex reads
.codex/config.tomlonly in a project that it trusts, and runs a new hook only after you trust it in/hooks. - In either harness, you can attach in CLI mode instead:
stash attach ops --no-mcp. See Attachment modes.
The agent sees each tool twice
Section titled “The agent sees each tool twice”The harness also runs its own copy of an MCP server that the mount has. Turn off
the copy: /mcp or disabledMcpjsonServers in Claude Code, enabled = false in
Codex, or "disabled": true in Kiro.
The agent doesn’t follow the new steering
Section titled “The agent doesn’t follow the new steering”attach updates the steering block, but a session that runs reads the old one.
Start a new session.
Write-back
Section titled “Write-back”Turns don’t reach AgentCore Memory
Section titled “Turns don’t reach AgentCore Memory”- Check that the source has
write.trajectory.actor. A source with nowritetable is read-only. - The mount gets only turns after the attach. Earlier turns of a session aren’t sent.
- A refused write waits in
mounts/ops/writers/<writer>/terminal/in the data root. Fix the cause, for example an expired credential, then send it again:
stash redrive opsredrive needs no running daemon.
Recover the daemon
Section titled “Recover the daemon”stash daemon stop # stop each mount; unsent turns stay queued on diskstash daemon start # restore each mount, also after a crashstash lsdaemon stop keeps each mount, its config, its files, and its unsent writes. When
the socket doesn’t answer, daemon stop ends the daemon by its process ID.
Next steps
Section titled “Next steps”- Observe and measure: the logs and metrics of a mount.
- Command reference: the exit code and output of each command.