#Self hosted migration error from 1.3.x to latest 1.5.x : Attribute not found

30 messages · Page 1 of 1 (latest)

young violet
#

Hi,
Currently migrating an old 1.3.4 version into 1.4.x, then 1.5.x.
During the 1.3.4 into 1.4, I had to run the migration multiple times to make it work.
I tried the same going from 1.4.x into latest 1.5.x, but I'm stuck when migrating Collections : Failed to update project ("xxx") version with error: Attribute not found
Is it possible to have a more verbose option of this log please ?

open pulsar
young violet
#

Hi Steven 🙂 from 1.3.7 to 1.5.5 exactly

#

I'm not so sure if I should migrate patch by patch or minor by minor at this point 🤔

open pulsar
young violet
#

Indeed, I used the docker tag 1.4, which should point to the latest 1.4.x version, 1.4.14 if i remember correctly

#

I had to run the migration command 3 or 4 times to have a success
Then did the same with 1.5.x, without any luck

open pulsar
young violet
#

The last one 1.5.5

open pulsar
#

Hmmm I wonder if you have some orphaned/dead attributes...

young violet
#

That could be possible indeed

open pulsar
#

So you'd need to exec into the container and modify that file. Then you can run the migrate command again

young violet
#

Hum, let me try this DogLoupe

#
Could not update attribute in collection database_1_collection_, **customIds** of type **string**: Attribute not found
open pulsar
#

You can also dig into the database directly too

young violet
#

Apart from this, it looks like its ok I guess

young violet
#

I've protected the line you suggested though

try {
                   $this->projectDB->updateAttribute($collectionId, $attribute['key'], $attribute['type']);
                } catch (Throwable $th) {
                   Console::warning("Could not update attribute in collection {$collectionId}, {$attribute['key']} of type {$attribute['type']}: {$th->getMessage()}");
                }
#

Well, thank you ! It looks like it's ok, everything's back, with some warnings during migration Thinkeyes

#

Do you know by any chance a command which would check the database integrity, if any?

open pulsar
open pulsar
young violet
#

No I mean, something to know if the schema looks correct at this point

open pulsar
#

There's no 1 magic command