linode-cli icon indicating copy to clipboard operation
linode-cli copied to clipboard

"Image is not valid" when creating Linode from backup

Open emilv opened this issue 7 years ago • 2 comments

I try to create a Linode with the following command:

linode-cli linodes create --type g6-standard-4 --region eu-central --backup_id 103216265 --backups_enabled false --private_ip true --group SmoothcompNew

Result:

Request failed: 400
┌errors─┬────────────────────┐
│ field │ reason             │
├───────┼────────────────────┤
│ image │ image is not valid │
└───────┴────────────────────┘

I have verified that the backup is in the same region. It does not matter whether the backup is a manual or automatic snapshot.

emilv avatar Oct 16 '18 06:10 emilv

Can you try running the same command with --no-defaults? We've had a couple other issues reported that boiled down to unintuitive behavior with the selected default region/image/type from the configuration, I'm thinking this is likely a similar problem.

Dorthu avatar Oct 16 '18 10:10 Dorthu

--no-defaults works

emilv avatar Oct 16 '18 11:10 emilv

Closing as this issue seems to be resolved in my testing. Feel free to reply if this issue is still occurring.

LBGarber avatar Oct 04 '22 17:10 LBGarber