You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am running the script in Windows Docker Desktop, it successfully showing photo from the immich library but not finding images from
my mounted windows drive folder. Thanks for creating this wonderful container and looking forward for your feedback on issue.
I have folder structure
C:\Photos
IMG_8087.jpg
Phone
2024
Atlantic-City
IMG_9292.jpg
Bear
IMG_0943.jpg
My docker-compose file have following code:
immich-folder-albums:
container_name: immich_folder_albums
image: ghcr.io/salvoxia/immich-folder-album-creator:latest
restart: always
depends_on:
- immich-server
volumes:
- "C:/photos:/externalssd/photos"
environment:
API_URL: ${EXTERNAL_URL}/api
API_KEY: "pEeoK4uqvmvvjtt2ieitOjjZHDIIHIDhrgecGAWco"
ROOT_PATH: /externalssd/photos
CRON_EXPRESSION: '*/1 * * * *'
ALBUM_LEVELS: 4
ALBUM_SEPARATOR: '-'
TZ: ${TZ}
Log is showing
2025-02-06 22:13:00 time=2025-02-06T22:13:00.883-05:00 level=INFO msg=Detected Immich server version 1.125.7
2025-02-06 22:13:00 time=2025-02-06T22:13:00.884-05:00 level=INFO msg=Requesting all assets
2025-02-06 22:13:00 time=2025-02-06T22:13:00.956-05:00 level=INFO msg=1 photos found
2025-02-06 22:13:00 time=2025-02-06T22:13:00.956-05:00 level=INFO msg=Sorting assets to corresponding albums using folder name
2025-02-06 22:13:00 time=2025-02-06T22:13:00.957-05:00 level=INFO msg=0 albums identified
2025-02-06 22:13:00 time=2025-02-06T22:13:00.957-05:00 level=INFO msg=Album list: []
2025-02-06 22:13:00 time=2025-02-06T22:13:00.957-05:00 level=INFO msg=Listing existing albums on immich
2025-02-06 22:13:01 time=2025-02-06T22:13:01.010-05:00 level=INFO msg=0 existing albums identified
2025-02-06 22:13:01 time=2025-02-06T22:13:01.038-05:00 level=INFO msg=Creating albums if needed
2025-02-06 22:13:01 time=2025-02-06T22:13:01.038-05:00 level=INFO msg=0 albums created
2025-02-06 22:13:01 time=2025-02-06T22:13:01.038-05:00 level=INFO msg=Done!
The text was updated successfully, but these errors were encountered:
if I understand correctly you have one image C:\Photos\IMG_8087.jpg
that is available the Immich container under the path /externalssd/photos/IMG_8087.jpg
And that is most likely the one photo the script found (according to the log).
You set your ROOT_PATH to /externalssd/photos.
This is most likely the culprit. Your image is sitting directly in the ROOT_PATH. The script works the way that it cuts off the ROOT_PATH from any asset's fully qualified path. Then it removes the asset's file name from the path. What's left is used for album name generation.
The problem is that with assets sitting directly in the ROOT_PATH, there's nothing left after removing the ROOT_PATH and the file name itself from the fully qualified path. So the script cannot create an album for it.
If you move your image to for example C:\Photos\2024\My Album\IMG_8087.jpg, then the script should create an album called 2024-My Album based on your docker-compose settings.
When I am running the script in Windows Docker Desktop, it successfully showing photo from the immich library but not finding images from
my mounted windows drive folder. Thanks for creating this wonderful container and looking forward for your feedback on issue.
I have folder structure
C:\Photos
IMG_8087.jpg
IMG_9292.jpg
IMG_0943.jpg
My docker-compose file have following code:
immich-folder-albums:
container_name: immich_folder_albums
image: ghcr.io/salvoxia/immich-folder-album-creator:latest
restart: always
depends_on:
- immich-server
volumes:
- "C:/photos:/externalssd/photos"
environment:
API_URL: ${EXTERNAL_URL}/api
API_KEY: "pEeoK4uqvmvvjtt2ieitOjjZHDIIHIDhrgecGAWco"
ROOT_PATH: /externalssd/photos
CRON_EXPRESSION: '*/1 * * * *'
ALBUM_LEVELS: 4
ALBUM_SEPARATOR: '-'
TZ: ${TZ}
Log is showing
2025-02-06 22:13:00 time=2025-02-06T22:13:00.883-05:00 level=INFO msg=Detected Immich server version 1.125.7
2025-02-06 22:13:00 time=2025-02-06T22:13:00.884-05:00 level=INFO msg=Requesting all assets
2025-02-06 22:13:00 time=2025-02-06T22:13:00.956-05:00 level=INFO msg=1 photos found
2025-02-06 22:13:00 time=2025-02-06T22:13:00.956-05:00 level=INFO msg=Sorting assets to corresponding albums using folder name
2025-02-06 22:13:00 time=2025-02-06T22:13:00.957-05:00 level=INFO msg=0 albums identified
2025-02-06 22:13:00 time=2025-02-06T22:13:00.957-05:00 level=INFO msg=Album list: []
2025-02-06 22:13:00 time=2025-02-06T22:13:00.957-05:00 level=INFO msg=Listing existing albums on immich
2025-02-06 22:13:01 time=2025-02-06T22:13:01.010-05:00 level=INFO msg=0 existing albums identified
2025-02-06 22:13:01 time=2025-02-06T22:13:01.038-05:00 level=INFO msg=Creating albums if needed
2025-02-06 22:13:01 time=2025-02-06T22:13:01.038-05:00 level=INFO msg=0 albums created
2025-02-06 22:13:01 time=2025-02-06T22:13:01.038-05:00 level=INFO msg=Done!
The text was updated successfully, but these errors were encountered: