agentleFS
guaracloudguaracloud/agent-skills/guara-troubleshoot/SKILL.md

guara-troubleshoot

Skill2 starsChanged 7 months agoApache-2.0View on GitHub

Diagnoses and resolves issues on GuaraCloud — failed deployments, crash loops, health check failures, image pull errors, OOM kills, and CLI errors. Use when the user reports something broken, a deployment failed, a service is unhealthy, or they see an error.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When something is wrong, start here:

    line 14
  2. Very specific:

    Check deployment logs: guara logs --since 10m --level error

    line 47
  3. Very specific:

    If build error → fix code/Dockerfile and redeploy: guara deploy

    line 48
  4. Very specific:

    If image pull error → previous build may have failed silently.

    line 49
  5. Distinctive:

    If crash on startup → app fails to start.

    line 50
  6. Very specific:

    If you can't determine the cause from logs, exec into the container: guara exec -- env to check runtime environment

    line 60
  7. Distinctive:

    Wait — deployments can take up to 10 minutes

    line 64
  8. Very specific:

    If still stuck, check guara deployments list for the status

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Troubleshooting GuaraCloud

First Things to Check

When something is wrong, start here:

# 1. Is the service running?
guara services info

# 2. What do the logs say?
guara logs --level error --since 1h

# 3. What's the deployment history?
guara deployments list

# 4. Is the platform itself healthy?
guara status

Health Statuses

guara services info reports these health statuses:

StatusMeaningAction
healthyAll replicas running and passing health checksNo action needed
crash_loopContainer repeatedly crashing and restartingCheck logs: guara logs --level error
image_pull_errorCannot pull the container imageCheck deployment logs, verify build succeeded
oom_killedContainer exceeded memory limitReduce memory usage or upgrade tier — see guaracloud.com/docs
degradedSome but not all replicas healthyCheck logs, may resolve on its own during rolling updates
unknownStatus cannot be determinedWait a moment, then check again

Deployment Failure Decision Tree

Deployment status is failed:

  1. Check deployment logs: guara logs --since 10m --level error
  2. If build error → fix code/Dockerfile and redeploy: guara deploy
  3. If image pull error → previous build may have failed silently. Check guara deployments list for the last healthy deployment, then guara rollback
  4. If crash on startup → app fails to start. Check logs for stack traces, missing env vars, or port mismatches

Container keeps restarting (crash_loop):

  1. Check logs: guara logs --level error --since 30m
  2. Common causes:
    • Missing environment variables → guara env list to check, guara env set to fix
    • Wrong port → service listens on a different port than configured. Check with guara services info
    • Missing dependencies → Dockerfile or buildpack not installing all deps
    • OOM → app needs more memory than tier allows
  3. If you can't determine the cause from logs, exec into the container: guara exec -- env to check runtime environment

Service stuck in deploying:

  1. Wait — deployments can take up to 10 minutes
  2. If still stuck, check guara deployments list for the status
  3. The new deployment may be waiting for health checks to pass

Tier Limit Errors

The CLI surfaces these when a tier limit is reached:

  • "Resource exceeds your tier quota" → service needs more CPU/memory than tier allows
  • "Maximum number of projects reached" → delete an unused project or upgrade
  • "Maximum number of services reached" → delete an unused service or upgrade
  • "Build minutes quota exceeded" → wait for next billing cycle or upgrade
  • "Maximum number of custom domains reached" → remove an existing domain or upgrade
  • "Account resource pool exhausted" → scale down other services or upgrade

For all tier limits, direct the user to guaracloud.com/docs to see current tier details and upgrade options.

Authentication Errors

  • "Authentication failed. API key is invalid or revoked" → guara login to re-authenticate
  • "Authentication failed. API key has expired" → guara login to generate a new key
  • "Not authenticated" → guara login
  • "Account is suspended due to billing issues" → update payment at app.guaracloud.com
  • "Terms of Service must be accepted" → accept at app.guaracloud.com

Network and Session Errors

  • "Could not reach GuaraCloud API" → check internet connection and API URL: guara config get api-url
  • "No ready pods available" → service is not running. Start it: guara services start
  • "Session disconnected due to inactivity" → reconnect by running the command again
  • "Maximum concurrent sessions reached" → close existing exec/proxy sessions first

Common Pitfalls

  1. Forgot to deploy after creating a service — services create does NOT trigger a build. Run guara deploy after.
  2. Port mismatch — the --port in services create must match what the app listens on.
  3. Missing GitHub App — install at github.com/apps/guaracloud if you see "No GitHub App installation found."
  4. Env var change didn't take effect — guara env set triggers a rolling restart, but check logs to confirm the new process picked up the change.
  5. DNS not propagated for custom domain — guara domains list shows pending until CNAME propagates. This can take minutes to hours.

For the full error code reference, see references/error-codes.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.