Issue after docker update on Unraid
I upgraded the docker twice now but I am getting a migration error?
If you need any other information let me know.
36 Replies
do you know whcih version you upgrade from?
not sure what happen there,hmmm
how many user do you have, do you use OAuth?
my guess is that before we enforce the unique constraint for the user email, the same email has been used twice that is why the table cannot add the constraint
Yes, I had two users the same but deleted one. It was still there. I have no idea on my previous version. None use OAuth
You will get this if there are two records in the DB with the same email. When you say deleted did you mean soft delete through the web admin page or db delete directly?
Soft delete through admin oage
I believe it holds it for a little time?
Yeah
Does that user have any other data?
Nothing uploaded on that user
You could try doing a db delete if you're comfortable or just wait for the 7 days to elapse. How long ago did you remove it?
A while back more that 7 days
I can delete from db if needed
There was a bug about users not being deleted, but I think that was recently fixed by Alex
But you probably can't start up the server for that to work.
The other option is to just update the email address so it's unique
Then the migration should work and then the user delete should hopefully finish as expected.
No worries, I'll give it a go
I'm in the databse I can see the tables but how do I see the users and remove the correct one?
can you go to the asset table and look at the userId column?
if most/all of the asset has that same userId
the other user ID would be the one that need to be deleted
if you can capture the screenshot of the asset table and the user table we can help

currently here
How do I list users?
select * from users;
and to drop by auth id?
can you show me the result if possible? if you worry abour privacy, you can do
so it will just show userId

I can see the one that says deleted at and is 2022-11-10
do you know which two ID has duplicated email address?
the ones ending in 6 and 5
can you copy and paste this one
exactly that?
yes, just to get the count of the asset of each user id to make sure we remove the correct one

so both of the email addresses that ending in 6 and 5 don't have any asset associate with them, is this correct?
Correct
I can remove both and add back if need be
So we remove both
ok
Lovely I'll do that now
I have shared and album with them though
ok we have to resolve that relationship in the user_shared_album table
can you do
Again happy to delete all
we can just delete the necessary one
Nice all working now|
OKay migration went through and update works?
Yeah, no more errors and can log in. Thank you for the help!
No problem, happy holiday!
Same goes for you!