Files lost

Somehow I have stuffed my setup. Everything was working fine, I upload some files to the wrong directory I think, using bulk upload, witha different api key. The files are still on my ubuntu system the directory structure is immich-app/data/library/admin/the dates etc, see image attached. How do I fix this. How fo I use the "Storage Migration Job? What should be in storage label in admin? Please help
No description
22 Replies
Worgerine
WorgerineOP2y ago
I think I had to reset login at some stage it asked for new password etc. am i better to re import? somehow
Worgerine
WorgerineOP2y ago
I see I have three directories under thumbs, is this supposed to be my user id?
No description
sogan
sogan2y ago
Yes, the three folders are for each account Is the issue that the gallery looks empty?
Worgerine
WorgerineOP2y ago
yes i only have one account, but I was asked to register twice in the last few days whicj i did with the sameemail address
sogan
sogan2y ago
Those would be different accounts so the images wouldn't be associated with them Do you see "Administration" in the top right?
Worgerine
WorgerineOP2y ago
yes
sogan
sogan2y ago
If you click that and look at the server stats, that will tell you which account the images are associated with You might also need to look at the Users tab to see the email addresses It shouldn't be possible to create multiple accounts with the same email
Worgerine
WorgerineOP2y ago
looks like it has, the ID is different from all the ones listed under thumbs.
sogan
sogan2y ago
the folder names under thumbs aren't important, they're just hashes you can try logging in as one of the other users in the users tab based on the email address
Worgerine
WorgerineOP2y ago
thanks, I only regisered the one email, so I dont know.
sogan
sogan2y ago
so in the users tab, all of the accounts have the same email address?
Worgerine
WorgerineOP2y ago
there is only one account
sogan
sogan2y ago
oh, then i guess your pgdata volume got deleted since there are three accounts in the thumbs folder but only one in the database. did you run any command that cleans docker, like docker prune etc.?
Worgerine
WorgerineOP2y ago
no i have not done that
sogan
sogan2y ago
can you run this command? it will show the dates when your docker volumes were created. the one you're looking for is docker_pgdata docker volume ls --format '{{ .Name }}' | xargs -n1 docker volume inspect | jq -r '.[0]|[.Name, .CreatedAt]|@tsv' | sort -k2
Worgerine
WorgerineOP2y ago
immich-app_pgdata 2023-08-25T13:19:52+10:00 acea91340cf6d24b91a67cd48d82771802f43a7774328966ec50a7445bc1d2ef 2023-08-25T13:19:52+10:00 immich-app_model-cache 2023-08-25T13:19:52+10:00 immich-app_pgdata 2023-08-25T13:19:52+10:00 immich-app_tsdata 2023-08-25T13:19:52+10:00 1ccc6163a6a07a621dcecb46e99d9af17565b9d9c05e7c5067328514fd693544 2023-08-26T09:27:23+10:00 8f9397918841c728ec93e8ccef95ccd1f90eb38bae1ec0ab6c2e964bebd19aa3 2023-08-26T10:42:43+10:00 391339fe17ab9df46154b15f9afe4c27f82042dc87d67265bd3aa0253b47fab6 2023-08-26T10:51:27+10:00 a03b16439490ad1f6dd44a07e3480e1274195d73cc6d418a3b2392ae2ff8a7d0 2023-08-26T12:11:52+10:00
sogan
sogan2y ago
that means the current database was created at Aug 25, 2023, 3:19:52 AM (UTC). does that sound right? or is it supposed to be earlier than that?
Worgerine
WorgerineOP2y ago
no was much earlier than that a few weeks ago. Maybe I just rebuild, is there a way to import the existing files. and rebuild the info
sogan
sogan2y ago
i think you can make a read-only gallery with those assets without uploading them https://immich.app/docs/features/read-only-gallery
Worgerine
WorgerineOP2y ago
i will try that thanks for your time
sogan
sogan2y ago
np! once you're set up again, i recommend backing up your database. it will save you from needing to re-import if anything happens to it again. https://immich.app/docs/administration/backup-and-restore
Worgerine
WorgerineOP2y ago
I will. I had not got round to it, when it went wrong

Did you find this page helpful?