immich icon indicating copy to clipboard operation
immich copied to clipboard

Sync Remote Deletions features makes images download onto device

Open D3r3k23 opened this issue 1 month ago • 4 comments

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

  • [x] Yes

The bug

When I delete images from my device, they are then re-downloaded from the Immich server. This is since the latest update, when the Sync Remote Deletions feature was first added, it was working properly.

The OS that Immich Server is running on

Unraid 7.1.4

Version of Immich Server

2.3.1

Version of Immich Mobile App

2.3.0 build.3027

Platform with the issue

  • [ ] Server
  • [x] Web
  • [ ] Mobile

Device make and model

Samsung Galaxy S23

Your docker-compose.yml content

name: immich

networks:
  immich:
    name: immich
    driver: bridge

services:
  server:
    container_name: immich
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities:
                - gpu
                - compute
                - video
    networks:
      - immich
    ports:
      - ${IMMICH_PORT}:2283
    volumes:
      - ${UPLOAD_LOCATION}:/data
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    restart:
      unless-stopped
    depends_on:
      - cache
      - db
    healthcheck:
      disable: false

  machine-learning:
    container_name: immich-machine-learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-cuda
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities:
                - gpu
    networks:
      - immich
    ports:
      - ${MACHINE_LEARNING_PORT}:3003
    volumes:
      - ${MODEL_CACHE_LOCATION}:/cache
    env_file:
      - .env
    restart:
      always
    healthcheck:
      disable: false
    
  db:
    container_name: postgres-immich
    image: ghcr.io/immich-app/postgres:16-vectorchord0.3.0-pgvectors0.3.0
    networks:
      - immich
    ports:
      - ${DB_PUBLIC_PORT}:${DB_PORT}
    volumes:
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    restart:
      always

  cache:
    container_name: redis-immich
    image: redis
    networks:
      - immich
    restart:
      always
    healthcheck:
      test: redis-cli ping || exit 1

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

IMMICH_PORT=2283
MACHINE_LEARNING_PORT=3003

UPLOAD_LOCATION="/mnt/user/photos"
DB_DATA_LOCATION="/mnt/user/appdata/immich/postgres"
MODEL_CACHE_LOCATION="/mnt/user/appdata/immich/machine-learning/model-cache"

IMMICH_VERSION="release"

TZ="America/Boise"
PUID=99
PGID=100
UMASK=022

REDIS_HOSTNAME="cache"
DB_HOSTNAME="db"
DB_PORT=5432
DB_PUBLIC_PORT=5433

DB_USERNAME="immich"
DB_DATABASE_NAME="immich"
DB_PASSWORD=

Reproduction steps

  1. Delete an image from a device that's synced to the server
  2. The image is downloaded onto the device

Relevant log output


Additional information

No response

D3r3k23 avatar Nov 23 '25 23:11 D3r3k23

Can you help with more detail on the reproduction steps?

alextran1502 avatar Nov 24 '25 00:11 alextran1502

It happens to me too. If I try from immich (or from the device itself outside immich) to delete a photo locally (i.e. Delete from device on Immich) after a while the photo reappears on my device @alextran1502 It's like synced photos can't be deleted locally because Immich downloads them again

thegabriele97 avatar Nov 24 '25 16:11 thegabriele97

Reproduction steps would be to "Remove from device" a photo from the timeline. After a while, images appear in the device again.

nagarrido avatar Nov 27 '25 14:11 nagarrido

Can confirm this happens to me as well on my Pixel 6.

YarosMallorca avatar Dec 07 '25 22:12 YarosMallorca

I experienced the same.

Steps to reproduce:

  • Delete a photo on Android Immich app
  • Empty Trash
  • The photo reappears after some time.

Note that I found this error in the app logs.Screenshot_20251215-171237.png

Looks like the app cannot move the photo to trash.

I'm using a Google Pixel 8 with Android version 16

thomase1234 avatar Dec 15 '25 16:12 thomase1234

I just tested this again on latest server v2.4.0 and android app version v2.4.0 and the problem remains.

thomase1234 avatar Dec 19 '25 07:12 thomase1234

It sounds like #24218 fixes this, but the PR is still open. Hopefully it gets merged soon.

D3r3k23 avatar Dec 20 '25 00:12 D3r3k23