immich icon indicating copy to clipboard operation
immich copied to clipboard

Mobile app deleting photos with file manager

Open CyberZeus opened this issue 1 year ago • 6 comments

The bug

There is a problem when I delete some photos from file manager, or Google Photo, in general outside Immich app, when the photo isn't yet uploaded to the server. The photos in Immich app show an exclamation mark and you cannot do nothing with them, including delete. I want to delete those photos but I cannot, the delete button does nothing. It's really annoying.

The OS that Immich Server is running on

Pixel 8 (Android 14)

Version of Immich Server

115

Version of Immich Mobile App

115

Platform with the issue

  • [ ] Server
  • [ ] Web
  • [X] Mobile

Your docker-compose.yml content

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-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, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/redis:6.2-alpine@sha256:e3b17ba9479deec4b7d1eeec1548a253acc5374d68d3b27937fcfe4df8d18c7e
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    volumes:
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    healthcheck:
      test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-on>
      interval: 5m
      start_interval: 30s
      start_period: 5m
    command: ["postgres", "-c", "shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c",>
    restart: always

volumes:
  model-cache:

Your .env content

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

# The location where your uploaded files are stored
UPLOAD_LOCATION=/home/davide/immich/foto
# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
# TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=XXXXXXXXXXXXXXXXXXXXXXXXXXXX

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

Reproduction steps

  1. Shoot a photo
  2. Delete the photo outside Immich
  3. The photo shows with an exclamation mark
  4. You cannot delete the photo ...

Relevant log output

No response

Additional information

No response

CyberZeus avatar Sep 15 '24 07:09 CyberZeus

Hello, thank you for the report, is this always reproducible?

alextran1502 avatar Sep 18 '24 20:09 alextran1502

Yes, it is

CyberZeus avatar Sep 18 '24 20:09 CyberZeus

The photos with the exclamation mark, was it uploaded before you delete it?

On Thu, Sep 19, 2024 at 3:26 AM CyberZeus @.***> wrote:

Yes, it is

— Reply to this email directly, view it on GitHub https://github.com/immich-app/immich/issues/12692#issuecomment-2359342712, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGONL7X5ZGSTXBHBVOKX2UTZXHOYDAVCNFSM6AAAAABOHSPCMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJZGM2DENZRGI . You are receiving this because you commented.Message ID: @.***>

alextran1502 avatar Sep 18 '24 23:09 alextran1502

Yes, it was uploaded before I deleted it outside Immich

CyberZeus avatar Sep 19 '24 04:09 CyberZeus

just updated immich to 1.118.1 i've the same problem. I deleted the photos from my device and i cannot see the photos anymore from immich app (just blurred image with esclamation mark and i cannot open anyone). I can see them from web app (photos were backupped)

sedobrengocce avatar Oct 16 '24 13:10 sedobrengocce

I can reproduce this on a Pixel 8 running grapheneOS by deleting photos with the native AOSP gallery app rather than with google photos. A friend can also reproduce on a samsung galaxy s22 running android 14, deleting photos from the samsung gallery app.

ZtereoHYPE avatar Oct 19 '24 22:10 ZtereoHYPE

Just wanted to comment that I ran into a similar issue and found out the following: if I delete all images from my sync folder on Android, the entire folder is removed. The folder seemingly cannot hold 0 images? At that moment, I get the exclamation mark problem in the Immich app, but if I leave a single image in the folder, I do not get the exclamation mark error even though those images are removed from the sync folder.

Hope this makes sense and helps!

mvantschip avatar Nov 17 '24 15:11 mvantschip

I noticed the same thing (immich do not support empty folders) About my first problem, the solution was to just wait. After some days the photos started to came back

sedobrengocce avatar Nov 18 '24 09:11 sedobrengocce

Same issue here.

Logging out and logging back in does the trick for now, but it would be nice to have it sorted out properly.

It seems as if the app was not realizing that the local image was gone and the image from the server should be loaded instead. The Images with the exclamation mark show the icon with the cloud and the check, after a fresh login it only shows the cloud icon for the images and the exclamation mark is gone.

remohoeppli avatar Jan 28 '25 11:01 remohoeppli

This has been fixed in the timeline.

jrasm91 avatar Sep 19 '25 13:09 jrasm91