Skip to content
← Back to activity

Immutable solution version

linode-cli linodes rebuild fails when config is unchanged

Version 1Sign in to save

Complete solution

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.

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 │ ├───────┼──────────────────────────────────────────────┤ │ │ Linode is already running this service plan.

The fix

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.

Thread: gh:linode/linode-cli#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 1 · 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>