I
Immich2y ago
wiinc1

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
Bulk Upload (Using the CLI) | Immich
You can use the CLI to upload an existing gallery to the Immich server
34 Replies
Alex Tran
Alex Tran2y ago
Using the new library feature, you don't have to use the CLI to import the assets
wiinc1
wiinc1OP2y ago
I tried that and didn't work.
etnoy
etnoy2y ago
What is the error you get? Did you check the troubleshooting section of the library docs?
Alex Tran
Alex Tran2y ago
You can post the screenshots of the settings and also your docker-compose file
wiinc1
wiinc1OP2y ago
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
No description
Alex Tran
Alex Tran2y ago
CAn you post screenshot of these parts?
No description
wiinc1
wiinc1OP2y ago
No description
No description
Alex Tran
Alex Tran2y ago
and your docker-compose file?
wiinc1
wiinc1OP2y ago
No description
No description
Alex Tran
Alex Tran2y ago
And what happen when you press scan library?
wiinc1
wiinc1OP2y ago
I see no change when looking at docker stats in terms of CPU / Memory usage for the different containers
Alex Tran
Alex Tran2y ago
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?
wiinc1
wiinc1OP2y ago
Haven't tried that, but will Yes, many times
Alex Tran
Alex Tran2y ago
Thank you, let me know if you can see the folder inside the container
Alex Tran
Alex Tran2y ago
This is the button you clicked on, correct?
No description
wiinc1
wiinc1OP2y ago
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.
Alex Tran
Alex Tran2y ago
You can look into the job page to see if there is any job still running
wiinc1
wiinc1OP2y ago
Thanks again for all your help!
Alex Tran
Alex Tran2y ago
No problem, so the library is scanned?
wiinc1
wiinc1OP2y ago
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?
Alex Tran
Alex Tran2y ago
what does the logs say?
wiinc1
wiinc1OP2y ago
What should I be looking for?
wiinc1
wiinc1OP2y ago
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
No description
Alex Tran
Alex Tran2y ago
Microservices containers and server container would be good
applelauncher
applelauncher2y ago
Same issue here. It loads external library, but thumbnails are blur and won't load the images too
Alex Tran
Alex Tran2y ago
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?
etnoy
etnoy2y ago
Same as any normal asset
applelauncher
applelauncher2y ago
Thumbnail not found in external library.
Alex Tran
Alex Tran2y ago
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 runs
applelauncher
applelauncher2y ago
huh. i'm getting error codes
No description
Alex Tran
Alex Tran2y ago
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
applelauncher
applelauncher2y ago
turns out there was error downloading some file. could this be the cause?
No description
Alex Tran
Alex Tran2y ago
No it shouldnt be the cause for thumbnail not generated
applelauncher
applelauncher2y ago
i'm getting these errors from server, microservices, and machine-learning containers
No description
No description
No description

Did you find this page helpful?