#Error during upgrade - Field of type RELATION is a many to one relation but does not have a join col

1 messages · Page 1 of 1 (latest)

static wadi
restive fiber
#

Hey @static wadi, could you please share your workspace version in database located at core.workspace.version ?

static wadi
#

It's 0.53.0

restive fiber
#

Please make sure to have a backup of a functional db dump

#

Please try running

yarn command:prod upgrade:0-52:migrate-relations-to-field-metadata
#

an re-attempt 0.53.6 upgrade ( not 0.54 ) lets try fixing your instance on 0.53 first

static wadi
#

0.53.6 does not exist (as a Docker image), do you mean 0.53.8 ?

#

Running the command you suggested yields:

ERROR [MigrateRelationsToFieldMetadataCommand] Error in workspace edd7b1fd-3e21-49ea-aeaf-cb5d3be614ca: relation "metadata.objectMetadata" does not exist
restive fiber
#

are you re-using an instance that you attempted to upgrade to an higher non incremental version ?

static wadi
#

It's the same instance that I previously (yesterday) move from 0.53.0 to 0.54.6.

restive fiber
#

What version are you currently running commands on ?

static wadi
#

0.53.0

restive fiber
#

Has your 0.53 instance been healthy/working before ?

static wadi
#

Yes

restive fiber
#

I assume you've: ( on same pg instance )
0.53.0 -> 0.54.6
0.54.6 -> 0.53.6
0.53.6 -> 0.53.0

#

Please try going back to 0.54.6 and running

yarn command:prod upgrade:0-52:migrate-relations-to-field-metadata
static wadi
#

Same error. What I now did though is:

  • Drop database and load clean backup corresponding to (non-upgraded) state at 0.53.0
  • Run the command you sent
  • Upgrade to 0.53.8 -> was successful

Now I tried to go to 0.54.6 and am getting a new error now:

QueryFailedError: column viewFilter.subFieldName does not exist
restive fiber
#

Ok cool checking

#

please try running

yarn command:prod workspace:sync-metadata
static wadi
static wadi
#

Does this error tell you anything?

#

Gotta bounce now, will get back here later today. Thanks a lot for your support already!

restive fiber
#

Unfortunately on mobile atm ! Will investigate tomorrow in what db migrations is introduced this column
Latest attempt could be running an

yarn database:migrate:prod
#

No worries !

static wadi
#

Didn't help, unfortunately.

restive fiber
#

Ok I will reach back with further information

restive fiber
#

Hey @static wadi, nothing new on your side ? I can take some time tomorrow to dig if still an issue

static wadi
#

Hi @restive fiber, yes, unfortunately I did not manage to resolve the issue in the mean while. Neither of the command you sent seem to have helped. Would be super thankful if you could have another look into it!

restive fiber
static wadi
static wadi
#

Does it? 🙂

restive fiber
#

Unfortunately there's still not the logger name in the shared log

#

Can't if it comes from the upgrade command or classic api usage

#

Though manual sync metadata and migrations run should be enough here

static wadi
restive fiber
#

Hey @static wadi I think the easiest would be to setup a call so we can sync our schedule and handle the migration together
I'm free tomorrow CEST 4pm for 45 mins

static wadi
#

Sorry, didn't check Discord recently. I'd be available tomorrow between 9 am and 2 pm CEST

restive fiber
#

Hey, would you be available on next monday 2pm CEST ?

static wadi
#

Unfortunately no. Are you available on Friday somewhere between 9 am and 2.30 pm?

restive fiber
#

yep lets book friday 11am CEST
Is that ok for you ?

static wadi
static wadi
#

Hey man, are you there?

restive fiber
#

Hey so sorry

#

@static wadi I was in a tunnel wasn't aware of time
I can definitly create a timebox for you during the afternoon please let me know