immich-auto-stack icon indicating copy to clipboard operation
immich-auto-stack copied to clipboard

Images not stacked though log says succes?

Open 7IM3rW opened this issue 8 months ago • 5 comments

Hi There,

I used your tool today with the default settings to stack Canon Raws to their jpgs. In the Log it says success (yes dry run is false) but the images appear to not be stacked even after restart of immich container.

Is there something i am missing?

Thank you for your work!

docker compose:

immich-auto-stack:
    container_name: immich-auto-stack
    image: ghcr.io/tenekev/immich-auto-stack:latest
    restart: unless-stopped
    networks:
        - immich
    environment:

      # This is default. Can be omitted.
      API_URL: http://immich_server:3001/api

      # https://immich.app/docs/features/command-line-interface#obtain-the-api-key
      API_KEY: redacted

      # This is default. Can be omitted. When true, prints output but does not submit any changes
      DRY_RUN: False

      # Whether or not to modify photos that are already in stacks. Going over all assets takes a lot more time.
      SKIP_PREVIOUS: True

Log

Image

Immich:

Image

https://github.com/user-attachments/assets/d4372a22-d77f-4f2f-8c2f-aa1d59f72eaf

7IM3rW avatar Mar 26 '25 08:03 7IM3rW

FWIW same issue. Just updated to immich 1.30.x after letting it scan my external library (only photo location) and then tries this utility. Ran through 47k stackable images and all I saw said success but nothing is stacked.

Found lots of these in the immich-server log, not sure if it's at all related:

[Nest] 7  - 03/27/2025, 2:17:30 PM    WARN [Microservices:Error: File not found - /mnt/hdd1/Pictures/2019/2019-12-06 ABC/PMG_3687.JPG.xmp
    at ReadTask._ExifToolTask_parser (/usr/src/app/node_modules/exiftool-vendored/dist/ExifToolTask.js:76:71)
    at ReadTask.parser (/usr/src/app/node_modules/exiftool-vendored/dist/ExifToolTask.js:47:167)
    at ReadTask._Task_resolve (/usr/src/app/node_modules/batch-cluster/dist/Task.js:146:40)] Error reading exif data (/mnt/hdd1/Pictures/2019/2019-12-06 ABC/PMG_3687.JPG.xmp): Error: File not found - /mnt/hdd1/Pictures/2019/2019-12-06 ABC/PMG_3687.JPG.xmp
[Nest] 7  - 03/27/2025, 2:17:30 PM    WARN [Microservices:MetadataService] Missing file creation or modification date for asset 0e55b2de-7fee-4279-a146-a9fa007c6ea9: /mnt/hdd1/Pictures/2019/2019-12-06 ABC/PMG_3687.JPG
[Nest] 7  - 03/27/2025, 2:17:30 PM    WARN [Microservices:Error: File not found - /mnt/hdd1/Pictures/2019/2019-12-06 ABC/PMG_3687.CR2.xmp
    at ReadTask._ExifToolTask_parser (/usr/src/app/node_modules/exiftool-vendored/dist/ExifToolTask.js:76:71)
    at ReadTask.parser (/usr/src/app/node_modules/exiftool-vendored/dist/ExifToolTask.js:47:167)
    at ReadTask._Task_resolve (/usr/src/app/node_modules/batch-cluster/dist/Task.js:146:40)] Error reading exif data (/mnt/hdd1/Pictures/2019/2019-12-06 ABC/PMG_3687.CR2.xmp): Error: File not found - /mnt/hdd1/Pictures/2019/2019-12-06 ABC/PMG_3687.CR2.xmp
[Nest] 7  - 03/27/2025, 2:17:30 PM    WARN [Microservices:MetadataService] Missing file creation or modification date for asset 97ecd049-996a-4faa-8c45-1c24ee17802c: /mnt/hdd1/Pictures/2019/2019-12-06 ABC/PMG_3687.CR2

pgalbavy avatar Mar 27 '25 14:03 pgalbavy

Manually running the version in this pull request has worked for the few images I have looked at: https://github.com/tenekev/immich-auto-stack/pull/13

pgalbavy avatar Mar 27 '25 14:03 pgalbavy

I used Immich GO with the stack command, which worked flawlessly for anyone who needs a quick fix.

7IM3rW avatar Mar 27 '25 16:03 7IM3rW

Hello, unfortunately I am facing the same problem.

Manually running the version in this pull request has worked for the few images I have looked at: #13

I have tried using the PR version, I still see success in the logs but no stacks at all on Immich (v1.130.3)

I used Immich GO with the stack command, which worked flawlessly for anyone who needs a quick fix.

I have tried to run it in dry mode (even with the debug log level), but I do not understand from the logs or the docs what is the stacking criteria, if just filename or filename + date (I have many IMG_XXXX with the same name from my DSLR camera). Do you have any idea?

riccardo1991 avatar Mar 31 '25 08:03 riccardo1991

i have the same issue. log says stacking worked fine. but nothing is stacked.

mtojay avatar Aug 19 '25 14:08 mtojay