Skip to content
Back

[SOLVED] V1.4.13 Migration to Self-Hosted Pending

  • 0
  • Self Hosted
  • Cloud
Said H
11 Dec, 2023, 03:49

Hello, I am trying to migrate from cloud to self-hosted server, but it shows "Pending" status for a long time. Is it an expected behavior? My data is not very large, about <50 records only. I also made sure the version are the same as the one in the cloud.

This is what is shown in the migration log.

TypeScript
{
  "$id": "657684d9c9983d4cf990",
  "$createdAt": "2023-12-11T03:41:13.825+00:00",
  "$updatedAt": "2023-12-11T03:41:13.825+00:00",
  "status": "pending",
  "stage": "init",
  "source": "Appwrite",
  "resources": [
    "user",
    "team",
    "membership",
    "database",
    "collection",
    "attribute",
    "index",
    "document",
    "function",
    "envVar",
    "deployment",
    "bucket",
    "file"
  ],
  "statusCounters": [],
  "resourceData": [],
  "errors": []
}
TL;DR
The user is trying to migrate from a cloud server to a self-hosted server but the migration is stuck in a "Pending" status. The user checked the version and ensured it is the same as the one in the cloud. The user also checked the migration log which shows that the migration is still in the "pending" stage. Solution: It appears that the issue is related to the identity not being found. The user should sign in with an OAuth provider to create an identity first. Additionally, the user should check the docker logs for the appwrite-worker-migrations container to see if there are any relevant error messages.
Drake
11 Dec, 2023, 03:51

Anything in the docker logs for the appwrite-worker-migrations container?

Said H
11 Dec, 2023, 03:55

I realize there is no appwrite-worker-migrations container. but i saw this in appwrite log

Said H
11 Dec, 2023, 03:55
TypeScript
2023-12-11T03:45:21.337736622Z [Error] Method: GET
2023-12-11T03:45:21.337754942Z [Error] URL: /v1/migrations/firebase/projects
2023-12-11T03:45:21.337758022Z [Error] Type: Appwrite\Extend\Exception
2023-12-11T03:45:21.337760782Z [Error] Message: The identity could not be found. Please sign in with OAuth provider to create identity first.
2023-12-11T03:45:21.337764262Z [Error] File: /usr/src/code/app/controllers/api/migrations.php
2023-12-11T03:45:21.337766782Z [Error] Line: 805
Drake
11 Dec, 2023, 03:55

This is fine

Said H
11 Dec, 2023, 03:56

i see

Drake
11 Dec, 2023, 03:56

Maybe I got the name wrong. Maybe without the s at the end?

Said H
11 Dec, 2023, 03:58

hmm.. i checked all containers, but there is none with keyword like "migration"

Said H
11 Dec, 2023, 03:58

i will try to check the log one by one

Drake
11 Dec, 2023, 03:59

Oh...something is definitely wrong with your local instance then

Said H
11 Dec, 2023, 03:59

i installed it using CapRover

Said H
11 Dec, 2023, 03:59

and i selected the latest version

Said H
11 Dec, 2023, 03:59

i just installed it today

Drake
11 Dec, 2023, 03:59

Maybe that's why ๐Ÿ˜œ

Said H
11 Dec, 2023, 03:59

oh. so, i shoudn't use caprover, yes?

Drake
11 Dec, 2023, 04:01

I suggest installing via the command mentioned in our docs

Said H
11 Dec, 2023, 04:01

ok, no problem. i will redo

Said H
11 Dec, 2023, 04:01

thanks so much!

Said H
11 Dec, 2023, 04:11

[SOLVED] V1.4.13 Migration to Self-Hosted Pending

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