Error: organization ... does not exist
simonknittel opened this issue · 4 comments
Hey!
I'm having trouble with the CLI creating new databases. I'm trying to create a new database but I'm getting the error that the database's organization does not exist.
My steps:
- Create new org via PlanetScale's web interface
- Run
pscale org list
(lists successfully the new org) - Run
pscale org switch ...
(switches successfully to the new org) - Run
pscale database create ...
(complains about said org not exisiting)
I'm a bit lost since the commands org list
and org switch
successfully list the new org but then database create
complaining about it not existing.
CLI version: 0.130.0
Am I blind? Am I missing something obvious?
@simonknittel Hello, thanks for opening an issue! First off, can you try creating the database using the region of eu-central
and not eu-central-1
? That may be the reason why this command is failing. We will look into the command to make sure that the error message is accurate, it shouldn't be sending that 404 for the organization not existing in that case.
Hi @iheanyi
That actually did the trick. Running the command with eu-central
works as expected.
Thank you for the quick response!
The web interface also says eu-central-1
However, your documentation suggests eu-central
: https://planetscale.com/docs/concepts/regions#aws-regions
This is quite confusing.
@simonknittel For the future, you can use pscale regions list
to get the official slugs to use. The docs have the slugs to use to the right of the region name. Sorry for the confusion!