Back

[CLOSED] Migration issues on 1.4.1

  • 0
  • Self Hosted
ftp27
1 Sep, 2023, 14:05

Hi, I've updated my server to 1.4.1 and noticed that appwrite can't migrate database to the new version. It says:

TypeScript
version with error: Utopia\Pools\Group::get(): Argument #1 ($name) must be of type string, null given, called in /usr/src/code/app/cli.php on line 103

I'm not completely sure what table is it looking at, but can assume that is _console_projects where database column is exist but it is NULL for all my projects.

Prevoulsy my server was on 1.3.1, I updated it to the last minor version 1.3.8 made migration and updated to 1.4.1.

TL;DR
User upgraded their server from version 1.3.1 to 1.4.1 and encountered migration issues. They are unsure if they need to run the migrate command for each version in between or just update to the latest patch. Someone suggests upgrading version by version until they reach 1.4.1. The user mentions they have made a backup and are testing on their local machine. Another user suggests migrating from 1.3.8 to 1.4.1 directly. The user provides an error message indicating an issue with the Utopia\Pools\Group::get() method. No solution is mentioned in
ftp27
1 Sep, 2023, 14:07

If it helps, here is typical error on appwrite container

TypeScript
[Error] Timestamp: 2023-09-01T13:54:44+00:00
[Error] Method: GET
[Error] URL: /v1/databases
[Error] Type: TypeError
[Error] Message: Utopia\Pools\Group::get(): Argument #1 ($name) must be of type string, null given, called in /usr/src/code/app/init.php on line 1100
[Error] File: /usr/src/code/vendor/utopia-php/pools/src/Pools/Group.php
[Error] Line: 28

The same staff as in migration process

Guille
1 Sep, 2023, 14:24

Did you migrate to 1.4.1 from 1.4.0?

ftp27
1 Sep, 2023, 14:24

No. Strait from 1.3.8

Guille
1 Sep, 2023, 14:25

I think the steps to update are, to 1.4.0 -> migrations -> 1.4.1 -> migrations

Let me check this

ftp27
1 Sep, 2023, 14:28

May be I have to make migration on each version from my original 1.3.1 ... Not only 1.4.0

Guille
1 Sep, 2023, 14:28

Yes, is what you have to do, do you have any backup?

ftp27
1 Sep, 2023, 14:29

yep. I made backup and playing with it on my local machine πŸ™‚

Guille
1 Sep, 2023, 14:30

Great! so try upgrading version by version until you end up in 1.4.1

Guille
1 Sep, 2023, 14:59

[CLOSED] Migration issues on 1.4.1

Drake
1 Sep, 2023, 15:10

you can update to the latest patch

Drake
1 Sep, 2023, 15:11

you probably should have upgraded to 1.3.8 (and run the migrate command) before upgrading to 1.4.1 (though maybe wait for 1.4.2)

ftp27
1 Sep, 2023, 15:29

Do you confirm that I need to run the migrate command for each version:1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8 to update from 1.3.1 ?

Drake
1 Sep, 2023, 15:34

no just 1.3.8, run the migrate command. then, 1.4.2 (when it's out) and migrate command

ftp27
1 Sep, 2023, 15:39

I've done it already. So it nothing I can do. And I need to wait for 1.4.2

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