Start with the deployment attempt and time
Open Deploy → Recent deploys for a linked Git project and note the attempted commit and failure time. Open Activity for earlier shared build failures and unexpected stops. Use those timestamps when reading the latest console snapshot, especially if you already started a new run.
In a project folder linked to the deployment, run the following commands. A CLI credential with read access to that deployment can use all three. Download the current package from the CLI install guide if you need to set up the workspace.
bothosting status --json
bothosting logs
bothosting logs --followStart with runtime_state, build.state and failure_at in the JSON. When present, runtime_detail gives a retained error line and exit_code reports the process exit. The plain bothosting status command shows these details in the terminal.
Build failed before the application started
A failed shared build appears as build.state equal to failed. The logs snapshot can include its retained output. Look for the first specific error from the package installer or compiler. A final line that says the command failed tells you where to look above it.
For example, when npm ci reports a lockfile mismatch, check out the failed commit in a clean folder, use the deployed Node.js version and repeat the install. If your project lives in a subdirectory, run the command beside its package.json. Commit the corrected manifest and lockfile together. See the npm lockfile troubleshooting guide.
Inspect the snapshot again after a new build. The live logs --follow stream follows runtime console output. Some startup-time installs appear in that console and some shared builds publish retained output after they finish.
The process started and then exited
Open the console around the process exit and look for the last startup milestone. A traceback shortly after the worker attempts to connect may point to an invalid credential, a missing variable or a service that refused the connection. Check the configured variable name against the code. Put the value in Variables and keep it out of the console and any log excerpts you share.
For a bot, start logs --follow, start the deployment and send one test event from Discord, Slack or Telegram. For an HTTP app, request a known route and check its response and surrounding log lines. If the CLI reconnects, it can repeat recent lines. Match the activity by time and event before counting separate failures.
On the full MCP profile, diagnose_deployment can show the captured failure and recent output. Use get_status and get_logs to verify the next attempt. Add a Discord crash alert if you need notification of an unexpected process stop.