immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
38.45k stars 1.82k forks source link

Moving a picture in the trash doesn't change the photo album's or location album's thumbnail. #10033

Open TechKnowCase opened 3 weeks ago

TechKnowCase commented 3 weeks ago

The bug

When trashing a picture, that is used as the thumbnail for a location album or a photo album, the album does change to a newer thumbnail until the trash is emptied. Even with an empty album, the album's thumbnail will still be said picture

Expected behavior is that once a picture/video is sent to the trash, the photo album/location album refreshes the thumbnail.

The OS that Immich Server is running on

All

Version of Immich Server

v1.105.1

Version of Immich Mobile App

v1.105.0

Platform with the issue

Your docker-compose.yml content

unraid: 
docker run
  -d
  --name='immich'
  --net='br0.73'
  --ip='a.b.c.d'
  -e TZ="America/New_York"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="hostname;)"
  -e HOST_CONTAINERNAME="immich"
  -e 'TCP_PORT_8080'='8080'
  -e 'DB_HOSTNAME'='e.f.g.h'
  -e 'DB_USERNAME'='username'
  -e 'DB_PASSWORD'='password'
  -e 'DB_DATABASE_NAME'='database'
  -e 'REDIS_HOSTNAME'='localhost'
  -e 'DB_PORT'='5432'
  -e 'REDIS_PORT'='6379'
  -e 'REDIS_PASSWORD'=''
  -e 'MACHINE_LEARNING_GPU_ACCELERATION'='OpenVINO'
  -e 'MACHINE_LEARNING_WORKERS'='1'
  -e 'MACHINE_LEARNING_WORKER_TIMEOUT'='120'
  -e 'DOCKER_MODS'='imagegenius/mods:universal-redis'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8080]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/imagegenius/templates/main/unraid/img/immich.png'
  -v '/mnt/user/immich/':'/photos':'rw'
  -v '/mnt/user/immich/auto-import/':'/import':'rw'
  -v '/mnt/user/appdata/immich':'/config':'rw'
  --device='/dev/dri/renderD128' 'ghcr.io/imagegenius/immich'

Your .env content

none: Unraid

Reproduction steps

1. take/upload a photo to immich.
2. Create an album and add the picture to the album or modify the picture's location to a new location.
3. Delete the picture.

Relevant log output

No response

Additional information

No response

aviv926 commented 3 weeks ago

It seems that the problem you describe is a cause of another problem we have on this topic such as for example: https://github.com/immich-app/immich/issues/6639