Back

migration pending

  • 0
  • General
Drake
3 Sep, 2023, 00:36

your compose is missing it because we missed adding it 😅

Here's what you would need to add: https://github.com/appwrite/appwrite/pull/6116/files

TL;DR
Issue: Unknown attribute type 'datetime' causing error in migrations Solution: Update to version 1.4.2 of the Appwrite platform, as this version includes a fix for the migration error. Additional notes: There is an existing issue on GitHub related to this problem. Secret keys and other sensitive information were accidentally included in a pastebin link, so it is recommended to delete the comment and repost it with the sensitive information redacted. The issue has been created and documented on GitHub for further investigation and resolution.
Zeke(Jafesu)
3 Sep, 2023, 00:37

what would the image need to be? image: <?php echo $organization; ?>/<?php echo $image; ?>:<?php echo $version."\n"; ?>

Zeke(Jafesu)
3 Sep, 2023, 00:37

or is that the appwrite/appwrite:1.4.1

Zeke(Jafesu)
3 Sep, 2023, 00:38

adding it in now

Zeke(Jafesu)
3 Sep, 2023, 00:39

do i need to run migrate after adding it?

Drake
3 Sep, 2023, 00:39

nope. just docker compose up -d to start the container

Zeke(Jafesu)
3 Sep, 2023, 00:43

that fixed it, it's running now. though its still having issues,

Zeke(Jafesu)
3 Sep, 2023, 00:44

memberships failed to migrate:

TypeScript
[Error] URL: /v1/teams/:teamId/memberships
[Error] Type: Utopia\Exception
[Error] Message: Invalid `url` param: URL host must be one of: localhost, appwrite
[Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
[Error] Line: 742```
Zeke(Jafesu)
3 Sep, 2023, 00:44

and looks like it is trying to do a firebase migration to migrate my appwrite dbs?

TypeScript
[Error] Timestamp: 2023-09-03T00:42:52+00:00
[Error] Method: GET
[Error] URL: /v1/migrations/firebase/projects
[Error] Type: Appwrite\Extend\Exception
[Error] Message: The identity could not be found. Please sign in with OAuth provider to create identity first.
[Error] File: /usr/src/code/app/controllers/api/migrations.php
[Error] Line: 763
Zeke(Jafesu)
3 Sep, 2023, 00:45

though, so far, looks like the dbs are migrating, only the memberships has failes so far

Drake
3 Sep, 2023, 01:32

is this maybe an api call made just because you navigated to some page on the console?

Drake
3 Sep, 2023, 01:33

did you have different domains in your different instances?

Zeke(Jafesu)
3 Sep, 2023, 14:17

Nope, they are same endpoint, different projects.

Drake
3 Sep, 2023, 16:24

Can you create an issue for this?

Zeke(Jafesu)
3 Sep, 2023, 17:13

Sure. I'm going to retry first make sure I didn't do something dumb

Zeke(Jafesu)
3 Sep, 2023, 18:30
Drake
3 Sep, 2023, 18:33

I fixed some of the formatting. Would you please also grab the logs from the migration container?

Zeke(Jafesu)
3 Sep, 2023, 18:38

added

Drake
3 Sep, 2023, 18:59

Is this a local server? Or production?

Zeke(Jafesu)
3 Sep, 2023, 19:03

Prod

Drake
3 Sep, 2023, 19:04

There are some secrets and keys in the logs you might want to delete the comment and repost it with the secrets and keys redacted

Zeke(Jafesu)
3 Sep, 2023, 19:15

Ah, didn't see that. Okay, I'll redact and repost a bit later

Zeke(Jafesu)
12 Sep, 2023, 16:39

Upgraded to 1.4.2 Getting the same error when trying to migrate

https://pastebin.com/ixMj5RKD

Zeke(Jafesu)
12 Sep, 2023, 16:39

Error in migrations:

TypeScript
Unknown attribute type: datetime
#0 /usr/src/code/vendor/utopia-php/migration/src/Migration/Sources/Appwrite.php(783): Utopia\Migration\Sources\Appwrite->convertAttribute(Array, Object(Utopia\Migration\Resources\Database\Collection))
#1 /usr/src/code/vendor/utopia-php/migration/src/Migration/Sources/Appwrite.php(431): Utopia\Migration\Sources\Appwrite->exportAttributes(100)
#2 /usr/src/code/vendor/utopia-php/migration/src/Migration/Source.php(76): Utopia\Migration\Sources\Appwrite->exportGroupDatabases(100, Array)
#3 /usr/src/code/vendor/utopia-php/migration/src/Migration/Source.php(39): Utopia\Migration\Source->exportResources(Array, 100)
#4 /usr/src/code/vendor/utopia-php/migration/src/Migration/Destination.php(37): Utopia\Migration\Source->run(Array, Object(Closure))
#5 /usr/src/code/vendor/utopia-php/migration/src/Migration/Transfer.php(147): Utopia\Migration\Destination->run(Array, Object(Closure), Object(Utopia\Migration\Sources\Appwrite))
#6 /usr/src/code/app/workers/migrations.php(243): Utopia\Migration\Transfer->run(Array, Object(Closure))
#7 /usr/src/code/app/workers/migrations.php(65): MigrationsV1->processMigration()
#8 /usr/src/code/src/Appwrite/Resque/Worker.php(125): MigrationsV1->run()
#9 /usr/src/code/vendor/resque/php-resque/lib/Resque/Job.php(201): Appwrite\Resque\Worker->perform()
#10 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(303): Resque_Job->perform()
#11 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(242): Resque_Worker->perform(Object(Resque_Job))
#12 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('0.1', false)
#13 {main}```
Drake
12 Sep, 2023, 17:25
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