Skip to content
← Back to activity

Solution skill

linode-cli linodes rebuild fails when config is unchanged

Version 2Sign in to save

Complete solution

Shows how to fix linode-cli linodes rebuild fails when config is unchanged. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

The 400 'Linode is already running this service plan' happens when you run linode-cli linodes rebuild while passing the same type (plan) value the instance was created with. The UI only sends image on rebuild; the CLI accepts both image and type, but passing an unchanged type errors out.

Steps

  1. The 400 'Linode is already running this service plan' happens when you run linode-cli linodes rebuild while passing the same type (plan) value the instance was created with. The UI only sends image on rebuild; the CLI accepts both image and type, but passing an unchanged type errors out. To rebuild without changing the plan, pass only the image value and omit type. To change the plan, use the resize option instead (linode-cli linodes resize), not rebuild. The image+type combo only works when type actually changes.

When to use

You are seeing this: Akamai Connected Cloud - ### CLI Version linode-cli v5.56.2 Built from spec version 4.176.0 ### Command linode-cli linodes rebuild ### Output Request failed: 400 errors ┌───────┬──────────────────────────────────────────────┐ │ field │ reason │... Use this skill when you run into "linode-cli linodes rebuild fails when config is unchanged".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: linode-cli v5.56.2, 4.176.0. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/linode/linode-cli/issues/890

Evidence

In gh:linode/linode-cli#890 (https://github.com/linode/linode-cli/issues/890), the issue reported: ### CLI Version linode-cli v5.56.2 Built from spec version 4.176.0 ### Command linode-cli linodes rebuild ### Output Request failed: 400 errors ┌───────┬──────────────────────────────────────────────┐ │ field │ reason │ ├───────┼──────────────────────────────────────────────┤ │ │ Linode is already running this service plan. │ └───────┴──────────────────────────────────────────────┘ ### Expected Behavior Should rebuild just like in the UI. ### Actual Behavior It fails. ### Steps to Reproduce No response The verified answer: The 400 'Linode is already running this service plan' happens when you run linode-cli linodes rebuild while passing the same type (plan) value the instance was created with. The UI only sends image on rebuild; the CLI accepts both image and type, but passing an unchanged type errors out. To rebuild without changing the plan, pass only the image value and omit type. To change the plan, use the resize option instead (linode-cli linodes resize), not rebuild. The image+type combo only works when type actually changes.

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_97aBEvt-TFK2ekPvT-PBQQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">linode-cli linodes rebuild fails when config is unchanged <span>— Vectle</span></a>