4 hours ago
The exact error is: "spawn failed: No such file or directory."
This originates from the agent in the "scintillating-vitality" project, and the machine's terminal has been failing to open for several hours now.
You have already restarted the machine, but it made no difference.
7 Replies
4 hours ago
The agent machine in your scintillating-vitality project is still reporting as running, and it was recording activity up to about 01:41 UTC today, so the machine itself is up even though its terminal is failing to open.
That error doesn't match the known image issue on database services, so redeploying a source image isn't the fix here. To work out why the terminal fails, please share a screenshot of the error, the approximate time in UTC of your most recent attempt, and how you're opening the terminal (from the dashboard or from the CLI).
Status changed to Awaiting User Response Railway • about 4 hours ago
4 hours ago
What to tell them:
Method: The terminal is the agent's internal tool (the bash tool)—not the dashboard or the CLI.
Exact error: Tool execution failed: generation failed: "no such file or directory" (OS error 2). This occurs with any command, even echo ok.
Time: The last attempt was just now; I don't have the time in UTC because even the date command won't run. File-related tools are working, but these failures began several hours ago.
Screenshot: There is no screen to capture; I can provide the error text.
I just tried again, and the issue persists. The fact that the machine appears "active" is consistent with this: the server and WhatsApp are still running using the previous code, but the system fails when attempting to launch new processes.
Status changed to Awaiting Railway Response Railway • about 4 hours ago
4 hours ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • about 4 hours ago
4 hours ago
Hey! Can you connect to it manually (without your agent trying to use a tool)?
Can you check that /bin/sh and /bin/bash exists?
medim
Hey! Can you connect to it manually (without your agent trying to use a tool)? Can you check that `/bin/sh` and `/bin/bash` exists?
4 hours ago
Both /bin/sh and /bin/bash exist on the machine (also /bin/dash). The agent can list and read files fine; what fails is spawning any process from the agent's bash tool, with spawn failed: No such file or directory (os error 2), even for echo ok. So the shells are there; the agent's command runner is what cannot start them. I cannot open an SSH session manually to check.
3 hours ago
You can access the container by going to its Console tab in the dashboard. I'm not sure why you're not able to open a SSH session to check.
Both /bin/sh and /bin/bash exist on the machine (also /bin/dash). The agent can list and read files fine; what fails is spawning any process from the agent's bash tool, with spawn failed: No such file or directory (os error 2), even for echo ok. So the shells are there; the agent's command runner is what cannot start them. I cannot open an SSH session manually to check.
3 hours ago
And are you sure you've checked the working dir? Have you tried redeploying to a fresh container (just make sure you are using a volume and or have backups)?
2 hours ago
Hi, I can't use the Railway CLI. Could you please run railway ca sleep and then railway ca wake on my agent?
Agent: cloud_agent_id aebad387-1797-4545-807a-e90a278101e6
Project: scintillating-vitality
Client: Railway CA
Problem: the agent's bash tool has failed since about 01:40 UTC on 11 Nov 2026. Every command fails, even echo ok, with:
tool execution failed: spawn failed: No such file or directory (os error 2)
The agent's file tools still work, and /bin/bash, /bin/sh and /app/index.js exist.
Note: sleep stops all processes, so the app server on port 8080 will need to be started again after the wake. Files on disk are kept.
Please confirm once it is done and whether the bash tool works afterwards.