Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Migration error #32

Open
bschultz opened this issue Sep 8, 2020 · 2 comments
Open

Migration error #32

bschultz opened this issue Sep 8, 2020 · 2 comments

Comments

@bschultz
Copy link

bschultz commented Sep 8, 2020

Getting this for latest migration:

[DBController] Current: 3, Latest: 4
[DBController] MIGRATION IS ABOUT TO START IN 30 SECONDS, PLEASE MAKE SURE YOU HAVE A BACKUP!!!
[DBController] Migrating database to version 4
[DBController] Migration failed: Error: ER_CANT_CREATE_TABLE: Can't create table `rdm_dataparser`.`assignment` (errno: 150 "Foreign key constraint is incorrectly formed")
[DBController] Migration successful
[DBController] Migration done

And migration isn't running when doing pm2 restart DataParser. I have to stop and start manually but I don't know if this could be fixed somehow.

@bschultz
Copy link
Author

bschultz commented Sep 8, 2020

Ok this had to do something with mixed collations 🙄

But maybe we can check the migration on restart stuff....

@versx
Copy link
Collaborator

versx commented Sep 8, 2020

Getting this for latest migration:

[DBController] Current: 3, Latest: 4
[DBController] MIGRATION IS ABOUT TO START IN 30 SECONDS, PLEASE MAKE SURE YOU HAVE A BACKUP!!!
[DBController] Migrating database to version 4
[DBController] Migration failed: Error: ER_CANT_CREATE_TABLE: Can't create table `rdm_dataparser`.`assignment` (errno: 150 "Foreign key constraint is incorrectly formed")
[DBController] Migration successful
[DBController] Migration done

And migration isn't running when doing pm2 restart DataParser. I have to stop and start manually but I don't know if this could be fixed somehow.

Interesting I wonder why it doesn't do the migration on restart 🤔 I wonder if it has to do with the clustering, since there's a master (which does the migration), maybe only the child cluster nodes are actually restarted with pm2 restart

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants