agentleFS
marshal-orgmarshal-org/runlease/skills/troubleshoot/SKILL.md

troubleshoot

Skill1 starsChanged 17 days agoApache-2.0View on GitHub

Diagnose a failing Runlease command or an unreachable machine. Use when `runlease up`, `exec`, `connect` or `down` errors, a machine never connects, or the person suspects machines were left running.

34 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • roronoazoroshao369Skill

    memory-compression

    Also in 5 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 4 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 4 projects that use this

  • sublimotionSkill

    agent-runtime

    Launch and manage detached agent runs on EKS via the agent-runner CLI. Use when the user says "launch an agent run", "agent runtime", "agent-runner", "run this spec on the cluster", "check run status", "agent run logs", or "stop a run". Do NOT use for writing the agent-runner code itself (edit the sibling ../agent-runner repo), Terraform of the foundation (use terraform-automation), or GPU serving deployments (use infra-deployer).

    Also in 5 projects that use this

  • +5 more from naman10parikh

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start with the two commands that explain most failures:

    line 8
  2. Distinctive:

    Wait. The first connection takes 30-60 seconds, longer on a cold image.

    line 36
  3. Very specific:

    If up reported a boot failure, it names the stage that failed (RUNLEASE_BOOT_FAILED stage=...).

    line 38

“Common” is measured: kept by at least 6 in 10 of the 28 edited versions of this file we could read. “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

When Runlease does not work

Start with the two commands that explain most failures:

runlease doctor      # sign-ins, project/account, network, relay: one line each, with the fix
runlease list        # what this computer tracks, and machines in the cloud it does not

Runlease errors end with a line saying what to do. Read the whole error before acting.

The error saysCauseWhat to do
Google Cloud sign-in has expired or is missingApplication default sign-inAsk the person to run gcloud auth application-default login
GCP project not configuredNo project setgcloud config set project PROJECT, or export GOOGLE_CLOUD_PROJECT=PROJECT
AWS sign-in has expired or is missingAWS sessionAsk the person to run aws sso login
may not use REGION. It may use: ... / organization blocks this actionRegion not allowed by the AWS organization, or not enabledPass one of the regions the error lists: --region REGION
has no region / has no zone ... Its zones areA region or zone that does not existUse one the error lists. A Google Cloud region with no zone letter is fine: the first zone is used
does not fit aws / does not fit gcpA region written for the other cloudAWS regions look like us-east-1, GCP zones like us-central1-a
has no NAT gatewayA machine with no public IP could not reach the relayShow the person the choices it lists. Do not add --public-ip yourself
places a machine could join / VPCs a machine could joinMore than one network fits, and Runlease does not guessShow the person the --subnet lines the error lists and ask which. Do not pick one yourself
has no subnetwork in / has no VPC / no network namedNothing to launch on in that regionThe error names the regions that have a network, or the one command that creates one. Show it to the person; do not create networks yourself
no relay set / run 'runlease login'Relay sign-inAsk the person to run runlease login
tier limit reachedToo many machines on the relayrunlease list, then runlease down one. Stopped machines hold a place for 15 minutes
is already trackedThe name is in userunlease down NAME first, or use another name
agent digest mismatchThe CLI and the relay are on different versionsUpdate the CLI: rerun the installer
stdin is not a terminalconnect needs a real terminalUse runlease exec NAME -- COMMAND

A machine launched but never connects

  1. Wait. The first connection takes 30-60 seconds, longer on a cold image.
  2. runlease exec NAME -- true for up to 3 minutes.
  3. If up reported a boot failure, it names the stage that failed (RUNLEASE_BOOT_FAILED stage=...). Report that line to the person.
  4. Still nothing: the machine cannot reach the relay. Check the network with runlease doctor. Take the machine down (runlease down NAME --yes) so it does not bill until its lease ends.

Suspected leftovers

runlease list                # shows untracked machines found in the cloud, marked
runlease sync                # refresh this computer's record from the cloud
runlease down --leaked       # deletes ONLY stopped machines whose lease has passed

down --leaked never deletes a running machine. For a running machine nobody recognises, show it to the person and let them decide. Never delete a machine you did not create in this session without asking.

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.