Some photos in my album appear duplicated #7634

Closed
opened 2026-02-05 13:11:28 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @xuehuihui on GitHub (Oct 27, 2025).

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

  • Yes

The bug

Some photos in my album appear duplicated — they look identical, but only one photo exists on the main “All Photos” page.
If I delete one of the duplicates from the album, both copies disappear at the same time.

This issue has happened twice so far.

Album view:

Image

Main page view:

Image

The OS that Immich Server is running on

Ubuntu 22.04

Version of Immich Server

v2.0.1

Version of Immich Mobile App

v2.0.1

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

iphone 14pro

Your docker-compose.yml content

# 依赖 .env 文件中的环境变量配置, 首次部署需要在本目录创建 .env文件
# .env 文件内容:
# IMMICH_PORT=8448 #immich暴露在外的端口,默认为8080,如与现存端口冲突请修改
# UPLOAD_LOCATION=/opt/immich/photos #相册挂载路径,根据实际情况修改
# #IMPORT_LOCATION=./import #外部存储库,如需启用,请先修改compose.yml对应挂载路径。不需要时请注释掉此行
# PUID=0 #用户UID
# PGID=0 #用户GID
# TZ=Asia/Shanghai #时区
# DB_PASSWORD=xxxx #修改此处的数据库密码
# DB_USERNAME=postgres
# DB_DATABASE_NAME=immich
#

name: immich
services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:release
    volumes:
      - ${UPLOAD_LOCATION}:/photos
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 8448:2283
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false    
    networks:
      - shared_network
  
  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:release
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - /opt/immich/config/machine-learning/models:/cache
    env_file:
      - .env
    restart: always
    healthcheck:
      disable: false
    networks:
      - shared_network

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:8-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always
    networks:
      - shared_network

  database:
    container_name: immich_database
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:8d292bdb796aa58bbbaa47fe971c8516f6f57d6a47e7172e62754feb6ed4e7b0
    environment:
      - POSTGRES_PASSWORD=${DB_PASSWORD}
      - POSTGRES_USER=${DB_USERNAME}
      - POSTGRES_DB=${DB_DATABASE_NAME}
      - POSTGRES_INITDB_ARGS=--data-checksums  #这个参数目前没有生效,因为当初创建数据库的时候未指定,下一步���要重新初始化数据库,然后再恢复数据库
      # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
      # DB_STORAGE_TYPE: 'HDD'      
    volumes:
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    shm_size: 128mb
    restart: always
    networks:
      - shared_network

networks:
  shared_network:
    external: true

Your .env content

UPLOAD_LOCATION=/mnt/storage/photos 
DB_DATA_LOCATION=/opt/immich/database
IMMICH_MEDIA_LOCATION=/photos
DB_PASSWORD=****
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

Cannot reproduce the issue consistently

Relevant log output


Additional information

No response

Originally created by @xuehuihui on GitHub (Oct 27, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug Some photos in my album appear duplicated — they look identical, but only one photo exists on the main “All Photos” page. If I delete one of the duplicates from the album, both copies disappear at the same time. This issue has happened twice so far. Album view: <img width="538" height="699" alt="Image" src="https://github.com/user-attachments/assets/7051df0f-e6fd-4040-85a7-8ccc7fb11cc0" /> Main page view: <img width="1179" height="2556" alt="Image" src="https://github.com/user-attachments/assets/b54015de-2f86-419e-810d-bea41ad5aa40" /> ### The OS that Immich Server is running on Ubuntu 22.04 ### Version of Immich Server v2.0.1 ### Version of Immich Mobile App v2.0.1 ### Platform with the issue - [ ] Server - [ ] Web - [x] Mobile ### Device make and model iphone 14pro ### Your docker-compose.yml content ```YAML # 依赖 .env 文件中的环境变量配置, 首次部署需要在本目录创建 .env文件 # .env 文件内容: # IMMICH_PORT=8448 #immich暴露在外的端口,默认为8080,如与现存端口冲突请修改 # UPLOAD_LOCATION=/opt/immich/photos #相册挂载路径,根据实际情况修改 # #IMPORT_LOCATION=./import #外部存储库,如需启用,请先修改compose.yml对应挂载路径。不需要时请注释掉此行 # PUID=0 #用户UID # PGID=0 #用户GID # TZ=Asia/Shanghai #时区 # DB_PASSWORD=xxxx #修改此处的数据库密码 # DB_USERNAME=postgres # DB_DATABASE_NAME=immich # name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:release volumes: - ${UPLOAD_LOCATION}:/photos - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - 8448:2283 depends_on: - redis - database restart: always healthcheck: disable: false networks: - shared_network immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:release # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - /opt/immich/config/machine-learning/models:/cache env_file: - .env restart: always healthcheck: disable: false networks: - shared_network redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571 healthcheck: test: redis-cli ping || exit 1 restart: always networks: - shared_network database: container_name: immich_database image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:8d292bdb796aa58bbbaa47fe971c8516f6f57d6a47e7172e62754feb6ed4e7b0 environment: - POSTGRES_PASSWORD=${DB_PASSWORD} - POSTGRES_USER=${DB_USERNAME} - POSTGRES_DB=${DB_DATABASE_NAME} - POSTGRES_INITDB_ARGS=--data-checksums #这个参数目前没有生效,因为当初创建数据库的时候未指定,下一步���要重新初始化数据库,然后再恢复数据库 # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs # DB_STORAGE_TYPE: 'HDD' volumes: - ${DB_DATA_LOCATION}:/var/lib/postgresql/data shm_size: 128mb restart: always networks: - shared_network networks: shared_network: external: true ``` ### Your .env content ```Shell UPLOAD_LOCATION=/mnt/storage/photos DB_DATA_LOCATION=/opt/immich/database IMMICH_MEDIA_LOCATION=/photos DB_PASSWORD=**** DB_USERNAME=postgres DB_DATABASE_NAME=immich ``` ### Reproduction steps Cannot reproduce the issue consistently ### Relevant log output ```shell ``` ### Additional information _No response_
Author
Owner

@github-actions[bot] commented on GitHub (Oct 27, 2025):

This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary.

@github-actions[bot] commented on GitHub (Oct 27, 2025): This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#7634