Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New photos fail to generate thumbnails from external library #17100

Closed
2 of 4 tasks
natedawg opened this issue Mar 25, 2025 · 3 comments
Closed
2 of 4 tasks

New photos fail to generate thumbnails from external library #17100

natedawg opened this issue Mar 25, 2025 · 3 comments

Comments

@natedawg
Copy link
Contributor

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

With the release today (v1.130.0) if you add a photo to an external library that's being watched for updates the thumbnails fail to generate. The error place holder shows up on the timeline instead. If you run the thumbnail generation manually the thumbnail is created.

The OS that Immich Server is running on

Debian

Version of Immich Server

v1.130.0

Version of Immich Mobile App

v1.130.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

NA

Your .env content

NA

Reproduction steps

  1. Add a photo to an external library that is being watched for changes.
  2. The timeline will display error place holders for the new photo.

...

Relevant log output

[Nest] 7  - 03/25/2025, 10:16:46 AM   ERROR [Microservices:{"libraryId":"ef9d865e-55ea-44bf-b073-b6abc86d236e","paths":["/media/watch_folder/47477808.jpg"]}] Unable to run job handler (library/library-sync-files): PostgresError: duplicate key value violates unique constraint "UQ_assets_owner_library_checksum"
PostgresError: duplicate key value violates unique constraint "UQ_assets_owner_library_checksum"
    at ErrorResponse (/usr/src/app/node_modules/postgres/cjs/src/connection.js:788:26)
    at handle (/usr/src/app/node_modules/postgres/cjs/src/connection.js:474:6)
    at Socket.data (/usr/src/app/node_modules/postgres/cjs/src/connection.js:315:9)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    at Readable.push (node:internal/streams/readable:392:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:189:23)

Additional information

No response

@alextran1502
Copy link
Contributor

@etnoy FYI

@alextran1502
Copy link
Contributor

Can you reproduce this behavior with all new photos get added to the external library?

@natedawg
Copy link
Contributor Author

natedawg commented Mar 25, 2025

I could reproduce this however I did some more testing and it's probably not an immich issue.

I use a samba share to upload photos to my server. When copying from my new Macbook the thumbnails fail. However copying from my Windows 11 desktop it works as expected. This is only like the second time I have tried uploading from the Macbook. I think Apples bad samba implementation is messing it up. Immich is detecting the photos before they are finished being copied.

No sure how to go about fixing samba on MacOS. I guess I will have use rsync to transfer from the Macbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants