Import External Library
Hi All,
I love immich and the potential it can offer to get away from Google Photos et al, but I'm encountering a challenge getting the majority of photos and videos pre-Immich into Immich. I have tried following the external library https://immich.app/docs/features/libraries#create-external-libraries, but with no success. I have moved onto the CLI based import process but I'm missing something along the way. Below are the steps taken... I'd appreciate any help to correct where I went wrong. 1. Logged into the immich-server docker container via docker exec -it 405fc6a7021c /bin/bash (405fc6a7021c = docker container id) 2. Updated the below command found here: https://immich.app/docs/features/bulk-upload (immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --recursive directory/) I want all the photos and videos included in the subfolder included in the upload `docker run -it --rm -v "/mnt/clegane/Pictures/Media:/import" ghcr.io/immich-app/immich-cli:latest upload --recursive --key Lf121lCAvArU9IztOGYe4UOjJwXWmZUkiWWhDYbNgs --server http://192.168.1.147:2283/api --recursive directory/ /mnt/clegane/Pictures/Media = mounted path to the folder that includes all the photos, videos, and subfolders. Lf121lCAvArU9IztOGYe4UOjJw**mZUkiWWhDYbNgs (Not the actual API key = the API key found via instructions here: https://immich.app/docs/features/bulk-upload http://192.168.8.1:2283/api = the address to the immich app (not the actual IP) The result from the above command is: bash: docker: command not found Setup: - OS - Ubuntu Server - Deployment via Docker Compose - External library mnt'd from another server - Pulled down all the photos from Google Takeout which includes the folder structure that is included in the Google zip files
I love immich and the potential it can offer to get away from Google Photos et al, but I'm encountering a challenge getting the majority of photos and videos pre-Immich into Immich. I have tried following the external library https://immich.app/docs/features/libraries#create-external-libraries, but with no success. I have moved onto the CLI based import process but I'm missing something along the way. Below are the steps taken... I'd appreciate any help to correct where I went wrong. 1. Logged into the immich-server docker container via docker exec -it 405fc6a7021c /bin/bash (405fc6a7021c = docker container id) 2. Updated the below command found here: https://immich.app/docs/features/bulk-upload (immich upload --key HFEJ38DNSDUEG --server http://192.168.1.216:2283/api --recursive directory/) I want all the photos and videos included in the subfolder included in the upload `docker run -it --rm -v "/mnt/clegane/Pictures/Media:/import" ghcr.io/immich-app/immich-cli:latest upload --recursive --key Lf121lCAvArU9IztOGYe4UOjJwXWmZUkiWWhDYbNgs --server http://192.168.1.147:2283/api --recursive directory/ /mnt/clegane/Pictures/Media = mounted path to the folder that includes all the photos, videos, and subfolders. Lf121lCAvArU9IztOGYe4UOjJw**mZUkiWWhDYbNgs (Not the actual API key = the API key found via instructions here: https://immich.app/docs/features/bulk-upload http://192.168.8.1:2283/api = the address to the immich app (not the actual IP) The result from the above command is: bash: docker: command not found Setup: - OS - Ubuntu Server - Deployment via Docker Compose - External library mnt'd from another server - Pulled down all the photos from Google Takeout which includes the folder structure that is included in the Google zip files
Bulk Upload (Using the CLI) | Immich
You can use the CLI to upload an existing gallery to the Immich server
Libraries | Immich
Overview
34 Replies
Using the new library feature, you don't have to use the CLI to import the assets
I tried that and didn't work.
What is the error you get? Did you check the troubleshooting section of the library docs?
You can post the screenshots of the settings and also your docker-compose file
From the CLI - The result from the above command is: bash: docker: command not found
From the External Libraries - I didn't receive an error message. Just expected the thumbnails to be presented as opposed to the below

CAn you post screenshot of these parts?



and your docker-compose file?


And what happen when you press scan library?
I see no change when looking at docker stats in terms of CPU / Memory usage for the different containers
Can you access/see /mnt/clegane/Pictures/Media from inside the server's container?
Did you restart the stack with
docker-compose down
and docker-compose up
after modifying the docker-compose file?Haven't tried that, but will
Yes, many times
Thank you, let me know if you can see the folder inside the container
This is the button you clicked on, correct?

Yes
I could see the folder but not read the files. I fixed that. I have seen alot of activity in the machine learning and microservices containers since fixing the issue back on 10/16, but there are alot of pictures that still don't have the thumbnail populated.
Is there a way to determine if there is still work being done by immich to complete the thumbnails? It has been running for two days but there are around 17K pictures.
You can look into the job page to see if there is any job still running
Thanks again for all your help!
No problem, so the library is scanned?
It completed, but I'm still having similar issues. Thumbnails that are not showing up or broken images. Timeline images missing / broken. Any recommendations on how to fix?
what does the logs say?
What should I be looking for?
In addition, something weird is going on... I have under 20K pictures, but it is saying there are over 400K thumbnails that need to be generated. This number continues to grow - I haven't seen it start to decrease indicating thumbnails have been processed/generated

Microservices containers and server container would be good
Same issue here. It loads external library, but thumbnails are blur and won't load the images too
I assume there is permission issue for the server to create thumbnails for your images. @etnoy can you confirm where the generated files are generated on the user's system for external library?
Same as any normal asset
Thumbnail not found in external library.
thumbnail should be generated at the
UPLOAD_LOCATION
can you access that location?
Can you try running the Thumbnail Generation
for all on the admin panel?
try monitor the microservices logs while it runshuh. i'm getting error codes

that is related to CLIP Encoding, can you check your machine-learning container?
that shouldn't interfere with the thumbnail generation though. Let us know if you see the thumbnail start showing up
turns out there was error downloading some file. could this be the cause?

No it shouldnt be the cause for thumbnail not generated
i'm getting these errors from server, microservices, and machine-learning containers


