# Troubleshooting

> Fixes for common flockvm problems: SSH errors, VMs stuck starting or failed, capacity errors, free trial limits, CI jobs and network restrictions.

- URL: https://flockvm.com/docs/resources/troubleshooting
- Section: Resources
- Last updated: 2026-11-10

Find your symptom below. Each section says why it happens and what to do. If nothing here helps, [contact support](https://flockvm.com/docs/resources/support) with your VM id.

## SSH

### Permission denied (publickey)

The VM refused your key. Logins are by key only, so the key your SSH client offers must match one in the login user's `authorized_keys`: `/home/user/.ssh/authorized_keys` on the Agent image, `/root/.ssh/authorized_keys` on Minimal.

Check, in order:

1. **The user matches the image.** It is `user` on the Agent image and `root` on Minimal. Use the command from the VM page as is: `ssh -p PORT user@HOST` or `ssh -p PORT root@HOST`.

2. **Your client offers the right key.** Point at it explicitly, and look at which keys are tried:

   ```bash
   ssh -i ~/.ssh/id_ed25519 -p PORT user@HOST
   ssh -v -p PORT user@HOST 2>&1 | grep -E 'Offering|Authentications'
   ```

3. **The key was there when the VM was created.** A VM gets the keys chosen when it was created. A key you add to **Settings → Account → SSH keys** later is offered to new VMs; it does not reach VMs that already exist. Removing a key from your account does not remove it from VMs either.

To add a key to a VM you can still reach, append it from a working session:

```bash
echo 'ssh-ed25519 AAAA... teammate@laptop' >> ~/.ssh/authorized_keys
```

If you lost the only key of a VM, nobody can log in to it, flockvm included. Push what you can from elsewhere, or delete the VM and create a new one with a key you have.

### Connection refused or timeout right after creating a VM

SSH answers once the VM is `running`. While it is `starting`, the port is not open yet. Wait for **running** on the VM page, then try again.

The same applies to a VM that is not running:

| State on the VM page | What to do                                                              |
| -------------------- | ----------------------------------------------------------------------- |
| `paused`             | Press **Resume**. The same command then works, with the same processes. |
| `stopped`            | Press **Start**. The disk is kept.                                      |
| `failed`             | See [VM in failed state](#vm-in-failed-state).                          |

If the VM is `running` and the connection still times out, your network may block outgoing connections to high ports. VM ports are between 22001 and 22990: try from another network, or ask your network admin to allow them.

### WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

Each VM generates its own SSH host keys on first boot. When you delete a VM and a later one gets the same port, your `known_hosts` still remembers the old key. Remove the stale entry and connect again:

```bash
ssh-keygen -R "[HOST]:PORT"
```

Only do this when you know the VM was recreated. If it was not, stop and contact support.

## VM states

### VM stuck in starting

A VM turns `running` when its SSH server answers. If it does not within 120 seconds, flockvm marks it `failed`. Look at the **Console** section of the VM page: it shows the serial console, kernel warnings and the first-boot lines.

You can **Delete** a VM at any time, including while it is starting. Starting time is billed, so do not leave a stuck VM around.

### VM in failed state

`failed` means the VM did not answer SSH in time after booting, or a resume could not load its snapshot. The VM page shows the error and the console shows how far it got.

- Press **Start** to cold-boot it again on the same disk. Your files are still there.
- If it fails again, copy what you need from the console output, delete the VM and create a new one, then [contact support](https://flockvm.com/docs/resources/support) with the VM id.

Failed VMs are not billed.

## Creating VMs

### Not enough capacity when creating a VM

All VMs share one host, in France. When the size you picked does not fit right now, the New VM form greys it out with the reason, or the creation returns an error such as:

```text
not enough memory on this host: 8192 MiB needed, 4096 MiB free for VMs
not enough vCPU on this host: 4 needed, 28 of 30 in use
```

What to do:

- Pick a smaller size. `small` needs half of `default`.
- **Pause** or **Stop** VMs you are not using: paused and stopped VMs free their RAM and vCPUs. **Resume** and **Start** check capacity again, so a VM can stay paused until there is room.
- **Delete** VMs you no longer need. A message like `this host holds at most … VMs` counts every VM that exists, paused and stopped ones included.
- Try again a little later.

A size whose reason says "This host has … for VMs" can never fit on the current host, whatever is freed.

### Can't create VMs: the free trial has not started

A new organization creates VMs once an owner or admin starts the free trial in **Settings → Billing**: there is no approval to wait for. Until then the New VM form and the CI page ask to start it. See [Start the trial](https://flockvm.com/docs/billing/trial#start-the-trial).

If the billing page says **No free trial for this card/organization**, the organization, its owner or the card already had one. Nothing is charged until you press **Start the plan for $18 now**. See [One trial only](https://flockvm.com/docs/billing/trial#one-trial-only).

### A free trial limit: trial_vm_limit, trial_size_not_allowed…

The trial gives 25 hours of VM time, 2 VMs at once, small and default sizes, and 5 starts a minute, 25 an hour, 75 a day. Beyond them:

| Code                          | What to do                                                                                   |
| ----------------------------- | -------------------------------------------------------------------------------------------- |
| `trial_size_not_allowed`      | Pick `small` or `default`, or start the paid plan.                                           |
| `trial_vm_limit`              | Pause or stop a VM, or start the paid plan.                                                  |
| `trial_rate_limited`          | Wait a minute, or start the paid plan.                                                       |
| `trial_compute_limit_reached` | The 25 hours are used and running VMs are paused. Start the paid plan, then **Resume** them. |

**Start paid plan now** in **Settings → Billing** ends the trial at once and lifts every limit. See [Free trial](https://flockvm.com/docs/billing/trial#when-a-limit-is-reached).

### Suspended organization

A **suspended** organization shows "This organization is suspended. Contact the flockvm team." Its members cannot use VMs until the team lifts it.

### Can't create or start VMs: a billing message

After the free trial, creating, starting and resuming VMs need a plan in good standing and credit left. The New VM form and the VM pages say which:

| Message                                                                                                                                                                               | What to do                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| "Start the 7-day free trial or the plan in Settings › Billing to create or start VMs. Card required, nothing charged for 7 days, then $18/month, which comes back as $18 of VM time." | An owner or admin presses **Start 7-day free trial** in **Settings › Billing**, or **Start the plan for $18 now** when there is no trial for the organization. |
| "The plan's last payment failed, so no VM can be created or started. Running VMs run on your wallet: pay the plan in Settings › Billing."                                             | **Pay the plan**, with another card if needed. A top-up does not lift it.                                                                                      |
| "This organization's plan is canceled. Restart it in Settings › Billing to create or start VMs."                                                                                      | **Restart plan**.                                                                                                                                              |
| "Top up your wallet: this period's allowance and your wallet are spent. Settings › Billing."                                                                                          | **Top up**, or turn on auto top-up.                                                                                                                            |
| "A payment of this organization is disputed with the card's bank, so no VM can be created or started. Write to <hello@flockvm.com> to sort it out."                                   | Write to <hello@flockvm.com>.                                                                                                                                  |

**Stop**, **Pause**, **Delete** and logs keep working whatever the message. Members see the message without a button: an owner or admin sorts it out. See [Plan and wallet](https://flockvm.com/docs/billing/plan#what-to-do).

### My VMs were paused: "Paused: out of credit"

When the allowance and the wallet are spent, running VMs keep running for 24 hours, or until the wallet owes $5, then flockvm pauses them. Their memory and processes are kept. **Settings → Billing** names them, and the VM list marks each one **Paused: out of credit**.

They do not resume by themselves. Add credit (the table above says how), then press **Resume** on each VM.

During the free trial, VMs are paused the same way once its 25 hours are used, and at the end of a trial that ends without payment, with no 24-hour grace. Start the paid plan (**Start paid plan now**, **Restart plan** or **Pay the plan**), then **Resume** them. See [Free trial](https://flockvm.com/docs/billing/trial#when-the-trial-ends-without-payment).

### Name or key refused by the form

| Message                                                                       | Fix                                                                    |
| ----------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| Name: 1 to 40 characters, lowercase letters, digits and dashes.               | Rename, e.g. `fix-flaky-tests`.                                        |
| That is a private key. Paste the .pub file instead, and keep this one secret. | Paste the content of `~/.ssh/id_ed25519.pub`, not `~/.ssh/id_ed25519`. |
| Paste a single key, on one line.                                              | Paste one key. Add the others later in `authorized_keys`.              |
| This key looks cut off. Copy the whole line.                                  | Copy again, from `ssh-ed25519` to the end of the line.                 |
| 20 SSH keys at most: remove one first.                                        | Remove an old key in **Settings → Account → SSH keys**.                |

## Inside the VM

### apt-get install: Unable to locate package

Both images ship without package lists, to stay small. Fetch them first (as `root` on Minimal, leave out `sudo`):

```bash
sudo apt-get update && sudo apt-get install -y PACKAGE
```

### Claude Code refuses to start as root

Claude Code refuses `--dangerously-skip-permissions` when it runs as root. On the Agent image, log in as `user` instead of `root` (`ssh -p PORT user@HOST`): Claude Code is installed for it. On the Minimal image, create a user and run it as that user:

```bash
useradd -m -s /bin/bash agent
su - agent
```

See [Claude Code](https://flockvm.com/docs/agents/claude-code#on-the-minimal-image).

### npm install -g fails with EACCES

On the Agent image, global npm packages live in `/usr/local`, which belongs to root. Use `sudo npm i -g PACKAGE`. To update Claude Code, whose auto-updater is off there: `sudo npm i -g @anthropic-ai/claude-code@latest`.

### A prebuilt binary stops with "Illegal instruction"

The binary needs a CPU instruction the VM's CPU does not have. The host's CPU (AMD Ryzen 9 9900X) has AVX2, which the Paris host, retired on 2026-11-10, lacked, so this should be rare now. If it happens, download the binary's "baseline" build, or build it from source. See [Images](https://flockvm.com/docs/vms/images#environment).

### The VM has no outbound network

If the VM page shows **Outbound network restricted since …** with a reason, the flockvm team has cut the VM's outgoing traffic. Nothing the VM sends goes out, on new or open connections. The VM keeps running, and inbound SSH still works, so you can log in, look and copy your work out over SSH.

![A VM page with the network restriction notice](https://flockvm.com/docs/screenshots/vm-restricted.webp "The notice gives the date and the reason.")

If you think it is a mistake, write to <hello@flockvm.com> with the VM id. See [Acceptable use](https://flockvm.com/docs/security/acceptable-use).

Without that notice, check what is blocked for every VM: outbound port 25 (SMTP), the host, other VMs, private ranges, and IPv6. Use port 443 or an email provider's submission port instead. See [Networking](https://flockvm.com/docs/vms/networking).

## GitHub Actions

### CI job stays queued

GitHub keeps a job queued until a runner with matching labels takes it. Check:

1. **GitHub is connected for this organization.** The **CI** page lists the installation. A job from an installation that is not connected to an organization is never run.

2. **The repository is one the App can see.** Repositories you did not grant to the flockvm App on GitHub send no jobs.

3. **The labels are exactly right.** `runs-on` must hold exactly one of `flockvm`, `flockvm-small`, `flockvm-large`, `flockvm-xlarge`, and nothing else but `self-hosted`, `linux` or `x64`. Any other label, such as `ubuntu-latest` or `gpu`, makes flockvm ignore the job:

   ```diff
   - runs-on: [self-hosted, flockvm, gpu]
   + runs-on: flockvm
   ```

4. **The organization's plan is in good standing with credit left.** CI starts with the paid plan: during the free trial, new jobs fail at once with "held by flockvm: CI starts with the paid plan: start it in Settings › Billing (Start paid plan now)." ([CI during the trial](https://flockvm.com/docs/billing/trial#ci-during-the-trial)). Without a plan, with the plan unpaid or canceled, or out of credit, new jobs fail at once on the **CI** page with "held by flockvm" and the reason, for example "no money left: top up the wallet (Settings › Billing)". Jobs already running finish. See [Plan and wallet](https://flockvm.com/docs/billing/plan#what-to-do).

5. **Other jobs are running.** A limited number of runner VMs run at once, and a job whose size does not fit the host right now waits. Smaller jobs may go first.

A job that stays in **starting** on the **CI** page for 10 minutes is checked on GitHub and cleaned up if GitHub gave it to another runner.

### xlarge job fails with "size xlarge is not available on this host"

The current host cannot hold a 16 vCPU runner. flockvm marks the job `failed` as soon as it is queued: no VM, nothing billed. GitHub may still show it queued until its own 24-hour limit; cancel the run on GitHub. Use `flockvm-large` instead:

```yaml
runs-on: flockvm-large
```

The **CI** page leaves out of its snippet and labels table the sizes that do not fit the host.

### Public repository job failed

A job from a public repository fails at once with an error starting with `public repository:`. It gets no VM and costs nothing. Anyone can open a pull request on a public repository, and its workflow would run untrusted code on your runners, so flockvm runs private repositories only. Keep `ubuntu-latest` for that repository's jobs. See [CI security](https://flockvm.com/docs/ci/security).

### Connect GitHub fails

| Message                                                                         | Fix                                                                                        |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| Only owners and admins can connect GitHub to this organization.                 | Ask an owner or admin of your flockvm organization.                                        |
| Your GitHub account does not administer the account this installation is on…    | Connect as an owner of that GitHub organization, or as the GitHub user it is installed on. |
| This GitHub installation is already connected to another flockvm organization.  | Disconnect it there first.                                                                 |
| The way back from GitHub took more than 15 minutes. Press Connect GitHub again. | Press **Connect GitHub** again.                                                            |
| GitHub asked the account's owners to approve the install…                       | Once a GitHub owner approves it, press **Connect GitHub** again.                           |

More in [CI troubleshooting](https://flockvm.com/docs/ci/troubleshooting).

## Next steps

- [Support](https://flockvm.com/docs/resources/support): How to reach the team and what to send.
- [FAQ](https://flockvm.com/docs/resources/faq): Short answers to common questions.
