The cloud cannot be migrated to self-hosting.
The content of this post is exactly the same as issue 11068
I reproduced this error.
Steps to reproduce:
- Install self-hosted Appwrite 1.8.1 (or 1.8.0).
- Go to your cloud project.
- Click "Settings" > "Migration" > "Export to self-hosted instance".
- Set the "Endpoint Self-Hosted Instance URL".
- You will be redirected to a new page, and set a new name for the new project you want to create.
- Click "Next": An error occurs: "Invalid region parameter: Value must be one of the following (default value)".
The migration failed immediately with the following error: "Invalid region parameter: Value must be one of (default)".
When the error occurred, the Appwrite container logged the following: appwrite | [Error] Method: POST appwrite | [Error] URL: /v1/projects appwrite | [Error] Type: Utopia\Exception appwrite | [Error] Message: Invalid region param: Value must be one of (default) appwrite | [Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php appwrite | [Error] Line: 910
For the migration of existing projects, the following will be displayed:
Couldn’t load resources The API key required for the migration may no longer be valid or has expired, please verify and start migration again.
I think Appwrite Cloud submitted its own region information, but the self-hosted version only recognizes the default region.
what's the URL you end up on?
redact some values
what your mean?
the url had an api key in it
non-decode URL
so i tried to reproduce, but it worked okay for me
The migration wizard creates a project the same way as the create project modal.
Mine still doesn't work. Creating a new project shows "Invalid region param: Value must be one of (default)," and existing projects show "Couldn’t load resources. The API key required for the migration may no longer be valid or has expired, please verify and start migration again." (Even though I manually created an API key.)
what console version do you have?
what is the API call made?
For appwrite is 1.8.1
no in your docker-compose.yml, what is the version of the console service
Let me see really quick
7.5.7
oh weird..mine is 6.0.13
mine is outdated
nonetheless, can you share the details of the create project api call?
Yes
Okay…
body:
{"projectId":"69585af0000ad48849cf","name":"T","teamId":"695439a7001bd264f1d4","region":"fra"}
{
"message": "Invalid `region` param: Value must be one of (default)",
"code": 400,
"type": "general_argument_invalid",
"version": "1.8.1"
}
that is for create project
{
"message": "Source Error: Project is not accessible in this region. Please make sure you are using the correct endpoint",
"code": 400,
"type": "migration_provider_error",
"version": "1.8.1"
}
The UI says "Couldn't load resources. The API key required for the migration may no longer be valid or has expired. Please verify and start migration again." However, it's actually still a region error.
Recommended threads
- Domain issues
i have deleted my organization before switch domains, now i cant register it in my new org
- Session cookies stored on wrong (sub-)do...
Hi, I own a domain `example.com` which is registered with the Appwrite nameserver. My website runs on Sites, using `www.example.com` as domain, and my function...
- Function global variables
when i create a top-level global variable in go or bun how will it behave? is the heap getting renewed on every execution or could i do some kind of temp. cachi...