Thumbnails missing broken image

After migrating from windows 11 to ubuntu, I've been trying to regenerate all the thumbnails, but there's loads of pictures that have no thumbnails and all I can see is a broken thumbnail icon. Then there are also ones with no icon, but when I click on it, it shows a 'no image' icon with the hash next to it. When I try to click download on either one, I get an error asking to check console (not sure which console it is?) But I've checked the microservices logs and looks like there's a lot of errors saying Unable to run job handler: Error: ENOENT: no such file or directory, open 'upload/thumbs/XYZ.jpeg I moved all the original uploaded files to /mnt/sda-samsung/immich/uploads/ and I've set UPLOAD_LOCATION=/mnt/sda-samsung/immich/uploads/ Do I need to rebuild the database from scratch or something else that I'm mssing?
No description
No description
No description
No description
18 Replies
rypudding
rypuddingOP2y ago
hmm, maybe this is my fault, but yesterday I mounted the harddrive into the /mnt/ directory but now there's nothing there.
immich@immich:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 3.6T 0 disk
├─sda1 8:1 0 16M 0 part
└─sda2 8:2 0 3.6T 0 part
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
└─nvme0n1p2 259:2 0 476.4G 0 part /var/snap/firefox/common/host-hunspell
immich@immich:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 3.6T 0 disk
├─sda1 8:1 0 16M 0 part
└─sda2 8:2 0 3.6T 0 part
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
└─nvme0n1p2 259:2 0 476.4G 0 part /var/snap/firefox/common/host-hunspell
I used sudo mount /dev/sda2 /mnt/sda-samsung/ Why would it have unmounted itself?
Alex Tran
Alex Tran2y ago
to keep it automount, you have to edit the content of /ect/fstab
rypudding
rypuddingOP2y ago
ohh okay. and do I need to give docker permissions to the location too?
immich@immich:~/immich-app$ docker-compose up -d
Creating network "immich-app_default" with the default driver
Creating immich_postgres ... done
Creating immich_typesense ... done
Creating immich_web ... done
Creating immich_redis ... done
Creating immich_machine_learning ... done
Creating immich_server ...
Creating immich_microservices ... error

Creating immich_server ... error
ied

ERROR: for immich_server Cannot start service immich-server: error while creating mount source path '/host_mnt/mnt/sda-samsung/immich/uploads': mkdir /host_mnt/mnt/sda-samsung/immich: permission denied

ERROR: for immich-microservices Cannot start service immich-microservices: error while creating mount source path '/host_mnt/mnt/sda-samsung/immich/uploads': mkdir /host_mnt/mnt/sda-samsung/immich: permission denied

ERROR: for immich-server Cannot start service immich-server: error while creating mount source path '/host_mnt/mnt/sda-samsung/immich/uploads': mkdir /host_mnt/mnt/sda-samsung/immich: permission denied
ERROR: Encountered errors while bringing up the project.
immich@immich:~/immich-app$ docker-compose up -d
Creating network "immich-app_default" with the default driver
Creating immich_postgres ... done
Creating immich_typesense ... done
Creating immich_web ... done
Creating immich_redis ... done
Creating immich_machine_learning ... done
Creating immich_server ...
Creating immich_microservices ... error

Creating immich_server ... error
ied

ERROR: for immich_server Cannot start service immich-server: error while creating mount source path '/host_mnt/mnt/sda-samsung/immich/uploads': mkdir /host_mnt/mnt/sda-samsung/immich: permission denied

ERROR: for immich-microservices Cannot start service immich-microservices: error while creating mount source path '/host_mnt/mnt/sda-samsung/immich/uploads': mkdir /host_mnt/mnt/sda-samsung/immich: permission denied

ERROR: for immich-server Cannot start service immich-server: error while creating mount source path '/host_mnt/mnt/sda-samsung/immich/uploads': mkdir /host_mnt/mnt/sda-samsung/immich: permission denied
ERROR: Encountered errors while bringing up the project.
Alex Tran
Alex Tran2y ago
yes it should be owned by the user
rypudding
rypuddingOP2y ago
okay, got all that working. I've restarted the ubuntu server and it's automounted. Thanks, I'll try rerunning the thumbnail job to see if it creates them all properly 🤞
rypudding
rypuddingOP2y ago
I definitely did something wrong because it now thinks I've never logged in before uhoh
No description
Alex Tran
Alex Tran2y ago
did you happen to remove the volume?
rypudding
rypuddingOP2y ago
nope I don't think so?? https://developerinsider.co/auto-mount-drive-in-ubuntu-server-22-04-at-startup/ I followed this guide to setup the automount
Alex Tran
Alex Tran2y ago
this is unrelated to docker volume, I don't have the full picture of which action did you do, maybe providing them would help.
rypudding
rypuddingOP2y ago
So I followed the steps in that guide. I ran sudo reboot then once it was back up I went into the immich-app directory and I ran docker compose up -d I didn't touch any files or any other commands sorry if I'm not quite understanding what you mean by removing the volume
Alex Tran
Alex Tran2y ago
docker has persistent volume, so that when you restart docker's containers the data is still present we use persistent volume for things like database storage unless the database volume is removed, or you are pointing to a different database, your instance should have your previous admin user and assets
rypudding
rypuddingOP2y ago
Hmmm is it potentially because I ran docker desktop previously but now after I rebooted I didn't and just ran docker compose straight away so it's using different docker VM? I do seem to have lost all the 200gb of photo's from the SSD I mounted so I definitely have done something wrong. Not sure why its all gone or how that even happened
Alex Tran
Alex Tran2y ago
try mount the ssd to your local computer to see if the files are still there I guess those are the most important
rypudding
rypuddingOP2y ago
This is probably a dumb question but when you say mount it to local computer do you mean mount it to somewhere like /media/ or do you mean a different pc completely
Alex Tran
Alex Tran2y ago
I mean hook it into your windows computer to make sure the file is still there
rypudding
rypuddingOP2y ago
gotcha, thanks I'll do that. I do have a recent backup so it's no biggie if I have indeed lost it. I think I'm just really confused how and what I did that would've caused all my files to have gone missing
Alex Tran
Alex Tran2y ago
how did you ssd get unmounted, did you accidently unplugged it before unmounting it?
rypudding
rypuddingOP2y ago
that's a really good question, it's inside the minipc so there's no way I unplugged it, unless when I lifted it it became unmounted, but that seems unlikely as I put screws into the ssd mount. I've had the minipc on all night so it's been running fine, and I could hop onto immich web app alll day with no issues I've ran through all my command history and there's nothing that I've done related to unmounting it hmmm this is a bit of a headache I think what I'm going to do is just wipe everything and install ubuntu server instead of desktop. I'll also wipe the ssd and convert it from NTFS to Ext4, (not sure if this will make a difference though). I'll set up filesharing, so i can just send all the photos and database dump from windows pc to the ubuntu, and I'll install docker engine + docker compose just through the cli, setup immicha nd restore the databse.

Did you find this page helpful?