Back

[SOLVED] Error when migrating from self-hosted to cloud

  • 1
  • Cloud
alix
21 Sep, 2023, 19:52

Well, the entering the last IP in the browser url input : 213.32.89.115 definetly redirects to the Appwrite login page, I maybe have some kind of screw up in my DNS config ?

TL;DR
The user was experiencing an error when migrating from self-hosted to the cloud. Another user suggested appending "v1" to the end of the URL, which solved the problem. The solution provided was to go to Cloud, open the empty project or create a new one, go to Settings, go to Migrations, click Import data, and complete the wizard. The original user then provided the exact steps they took and the error they encountered. The problem seems to persist despite the attempted solution. The user shared some logs and asked for further clarification. The thread ends with a suggestion to check the DNS configuration.
D5
21 Sep, 2023, 19:58

I think it should be fine. Have you upgraded to another Appwrite version previously?

alix
21 Sep, 2023, 20:00

yes, just before trying to migrate actually. I was running 1.4.1, tried to deploy to cloud, faced the same problem. So I thougth I could upgrade my installation to see if it could be the root of the problem. Without success. I didn't reboot the server since the upgrade, should I try this ?

alix
21 Sep, 2023, 20:05

just rebooted, tried the migration again, here are the logs (much more concise)

alix
21 Sep, 2023, 20:06
TypeScript
appwrite  | Worker 5 started successfully
appwrite  | [Setup] - Server database init started...
appwrite  | [Setup] - Creating database: appwrite...
appwrite  | [Setup] - Server database init completed...
appwrite  | Server started successfully (max payload is 6,291,456 bytes)
appwrite  | Master pid 1, manager pid 1
appwrite  | Worker 1 started successfully
appwrite  | [Error] Timestamp: 2023-09-21T20:03:44+00:00
appwrite  | [Error] Method: GET
appwrite  | [Error] URL: /v1/migrations/firebase/projects
appwrite  | [Error] Type: Appwrite\Extend\Exception
appwrite  | [Error] Message: The identity could not be found. Please sign in with OAuth provider to create identity first.
appwrite  | [Error] File: /usr/src/code/app/controllers/api/migrations.php
appwrite  | [Error] Line: 763```
alix
21 Sep, 2023, 20:08

URL: /v1/migrations/firebase/projects line looks so weird to me, it is not a migration from firebase 🤔

D5
21 Sep, 2023, 20:18

Did you have run migration command?

alix
21 Sep, 2023, 20:20

yes

alix
21 Sep, 2023, 20:20

without any error

alix
21 Sep, 2023, 20:21

my data shows up nicely in my dashboard and my app conected to it runs without any flaw

alix
21 Sep, 2023, 20:22

this what I see when attempting to migrate, the numbers look sound

Christy Jacob
21 Sep, 2023, 20:29

@IOnic please take a look here 👀

alix
21 Sep, 2023, 20:31

Sincerely sorry to bring up such a crappy problem 😦 If you need anything, do not hesitate, the data here has nothing confidential at all if you need to reproduce or what

alix
25 Sep, 2023, 19:30

No news here I guess?

Drake
5 Oct, 2023, 16:52

so what happens when you click create?

alix
5 Oct, 2023, 17:46

Exact same behaviour as before ⬆️ I click create, the buttons gets grey, and after a few seconds it becomes red again. No logs related to this operation when I run docker compose logs appwrite. Only an error in the browser console (attached screenshot)

Drake
5 Oct, 2023, 18:03

Can you clarify the exact steps you're taking?

alix
5 Oct, 2023, 18:33
  • I go on my Appwrite instance https://appwrite.kronikle.eu
  • I select one my projects and go Settings > Migrations > Deploy to Cloud
  • I get redirected to Appwrite with form to choose an exisitng project or create a new one, I choose to create a new one
  • I then select to import everything (users, tables, files, etc...)
  • I click Create
  • and then nothing, Create becomes clickable again, I get a few errors in the console, an empty project is created in Appwrite Cloud
Drake
5 Oct, 2023, 18:49

I think you might be running into this bug: https://github.com/appwrite/appwrite/issues/6336

would you please try:

  1. go to Cloud
  2. open the empty project you want to migrate into or create a new project
  3. go to Settings
  4. go to Migrations
  5. clikc Import data
  6. go through the wizard.
alix
5 Oct, 2023, 19:55

It worked perfectly !

alix
5 Oct, 2023, 19:55

Thanks so much I didn't know I could do it this way

D5
5 Oct, 2023, 20:15

[SOLVED] Error when migrating from self-hosted to cloud

Wintermutation
8 Oct, 2023, 03:21

I'm still having this problem

D5
8 Oct, 2023, 12:06

Please create a new post and also make sure your selected all scopes in API key section

Wintermutation
9 Oct, 2023, 03:36

Actually I think I'm good. For posterity I think both my and the OP's problem can be solved by putting v1 at the end of the url, e.g. https://appwrite.kronikle.eu/v1

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more