[BUG] Unable to delete image, read and write permissions have been granted in volumes #1677

Closed
opened 2026-02-05 03:01:42 +03:00 by OVERLORD · 10 comments
Owner

Originally created by @nodis on GitHub (Nov 22, 2023).

The bug

Unable to delete image, read and write permissions have been granted in volumes
微信截图_20231122101904
微信截图_20231122102142

The OS that Immich Server is running on

Synology

Version of Immich Server

1.88.2

Version of Immich Mobile App

1.88

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8"

#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: [ "start.sh", "immich" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
      - /volume1:/media/volume1:rw
      - /volume2:/media/volume2:rw
      - /volume3:/media/volume3:rw
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.yml
    #   service: hwaccel
    command: [ "start.sh", "microservices" ]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
      - /volume1:/media/volume1:rw
      - /volume2:/media/volume2:rw
      - /volume3:/media/volume3:rw
    env_file:
      - .env
    environment:
      - TZ=Asia/Shanghai
      # - NODE_OPTIONS=--max-old-space-size=8192
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - /volume2/docker/immich/machine/model-cache:/cache
    env_file:
      - .env
    restart: always

  typesense:
    container_name: immich_typesense
    # image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd
    image: typesense/typesense:0.25.1
    environment:
      - TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
      - TYPESENSE_DATA_DIR=/data
      # remove this to get debug messages
      - GLOG_minloglevel=1
    volumes:
      - /volume2/docker/immich/tsdata:/data
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:80cc8518800438c684a53ed829c621c94afd1087aaeb59b0d4343ed3e7bcf6c5
    restart: always

  database:
    container_name: immich_postgres
    image: postgres:14-alpine@sha256:50d9be76e9a90da4c781554955e0ffc79d9d5c4226838e64b36aacc97cbc35ad
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - /volume2/docker/immich/pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:
  tsdata:

Your .env content

test

Reproduction steps

1.Delete images on web homepage
2.Prompt in the upper right corner: Info Trashed O assets
3.
...

Additional information

No response

Originally created by @nodis on GitHub (Nov 22, 2023). ### The bug Unable to delete image, read and write permissions have been granted in volumes ![微信截图_20231122101904](https://github.com/immich-app/immich/assets/23695589/86983d23-2d77-4895-a4eb-d51c5e3bb24e) ![微信截图_20231122102142](https://github.com/immich-app/immich/assets/23695589/e81d1ef1-69b8-41e6-8cc7-731afce26761) ### The OS that Immich Server is running on Synology ### Version of Immich Server 1.88.2 ### Version of Immich Mobile App 1.88 ### Platform with the issue - [ ] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" # # WARNING: Make sure to use the docker-compose.yml of the current release: # # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml # # The compose file on main may not be compatible with the latest release. # name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: [ "start.sh", "immich" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - /volume1:/media/volume1:rw - /volume2:/media/volume2:rw - /volume3:/media/volume3:rw env_file: - .env ports: - 2283:3001 depends_on: - redis - database - typesense restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.yml # service: hwaccel command: [ "start.sh", "microservices" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - /volume1:/media/volume1:rw - /volume2:/media/volume2:rw - /volume3:/media/volume3:rw env_file: - .env environment: - TZ=Asia/Shanghai # - NODE_OPTIONS=--max-old-space-size=8192 depends_on: - redis - database - typesense restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - /volume2/docker/immich/machine/model-cache:/cache env_file: - .env restart: always typesense: container_name: immich_typesense # image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd image: typesense/typesense:0.25.1 environment: - TYPESENSE_API_KEY=${TYPESENSE_API_KEY} - TYPESENSE_DATA_DIR=/data # remove this to get debug messages - GLOG_minloglevel=1 volumes: - /volume2/docker/immich/tsdata:/data restart: always redis: container_name: immich_redis image: redis:6.2-alpine@sha256:80cc8518800438c684a53ed829c621c94afd1087aaeb59b0d4343ed3e7bcf6c5 restart: always database: container_name: immich_postgres image: postgres:14-alpine@sha256:50d9be76e9a90da4c781554955e0ffc79d9d5c4226838e64b36aacc97cbc35ad env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - /volume2/docker/immich/pgdata:/var/lib/postgresql/data restart: always volumes: pgdata: model-cache: tsdata: ``` ### Your .env content ```Shell test ``` ### Reproduction steps ```bash 1.Delete images on web homepage 2.Prompt in the upper right corner: Info Trashed O assets 3. ... ``` ### Additional information _No response_
OVERLORD added the external-library label 2026-02-05 03:01:42 +03:00
Author
Owner

@alextran1502 commented on GitHub (Nov 22, 2023):

it is not possible for library assets yet. You can only manage the library assets from the file system for now

@alextran1502 commented on GitHub (Nov 22, 2023): it is not possible for library assets yet. You can only manage the library assets from the file system for now
Author
Owner

@alextran1502 commented on GitHub (Nov 22, 2023):

We are thinking of adding the ability to let the user manage library assets from the web UI, but that is for future enhancement. This is working as expected so I am closing this.

@alextran1502 commented on GitHub (Nov 22, 2023): We are thinking of adding the ability to let the user manage library assets from the web UI, but that is for future enhancement. This is working as expected so I am closing this.
Author
Owner

@nodis commented on GitHub (Nov 22, 2023):

it is not possible for library assets yet. You can only manage the library assets from the file system for now

@alextran1502 The 'Remove Offline Files' function of the external library cannot take effect,After I deleted the images using the NAS file manager, they continued to exist in immich.
微信截图_20231122102951

@nodis commented on GitHub (Nov 22, 2023): > it is not possible for library assets yet. You can only manage the library assets from the file system for now @alextran1502 The 'Remove Offline Files' function of the external library cannot take effect,After I deleted the images using the NAS file manager, they continued to exist in immich. ![微信截图_20231122102951](https://github.com/immich-app/immich/assets/23695589/acc4b970-d0f3-466a-ad8e-9af4c014ad2a)
Author
Owner

@alextran1502 commented on GitHub (Nov 22, 2023):

@etnoy Do you have any input on this issue?

@alextran1502 commented on GitHub (Nov 22, 2023): @etnoy Do you have any input on this issue?
Author
Owner

@etnoy commented on GitHub (Nov 22, 2023):

As stated in the documentation, after you remove a file from the fs, you first need to run "scan new library files". When the scan completed, then you can run "remove offline files"

@etnoy commented on GitHub (Nov 22, 2023): As stated in the documentation, after you remove a file from the fs, you first need to run "scan new library files". When the scan completed, then you can run "remove offline files"
Author
Owner

@nodis commented on GitHub (Nov 22, 2023):

As stated in the documentation, after you remove a file from the fs, you first need to run "scan new library files". When the scan completed, then you can run "remove offline files"

@etnoy That's what I did, but the problem still hasn't been solved

@nodis commented on GitHub (Nov 22, 2023): > As stated in the documentation, after you remove a file from the fs, you first need to run "scan new library files". When the scan completed, then you can run "remove offline files" @etnoy That's what I did, but the problem still hasn't been solved
Author
Owner

@jrasm91 commented on GitHub (Nov 23, 2023):

What happens if you delete a single asset from the detail panel?

@jrasm91 commented on GitHub (Nov 23, 2023): What happens if you delete a single asset from the detail panel?
Author
Owner

@canedje commented on GitHub (Nov 30, 2023):

Same problem over here

@canedje commented on GitHub (Nov 30, 2023): Same problem over here
Author
Owner

@rutj87 commented on GitHub (Dec 1, 2023):

I am having the same problem.

When checking the logs I see the below however have double checked permissions are correct on mapped locations:

═══════════════════════════════╣
User/Group ID:
User UID: 99
User GID: 100
╚═══════════════════════════════╝
**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****

In reading the above, is it not possible to delete a file at all even just the thumbnail. Similiar to reference above I get '0 assets trashed' :( When I compare this to behaviour of the demo appears very different!

Thanks.

@rutj87 commented on GitHub (Dec 1, 2023): I am having the same problem. When checking the logs I see the below however have double checked permissions are correct on mapped locations: ═══════════════════════════════╣ User/Group ID: User UID: 99 User GID: 100 ╚═══════════════════════════════╝ **** Permissions could not be set. This is probably because your volume mounts are remote or read-only. **** **** The app may not work properly and we will not provide support for it. **** In reading the above, is it not possible to delete a file at all even just the thumbnail. Similiar to reference above I get '0 assets trashed' :( When I compare this to behaviour of the demo appears very different! Thanks.
Author
Owner

@jrasm91 commented on GitHub (Jan 13, 2024):

The original issue is about deleting files in external libraries through the web UI, which is not supported. If the OP deletes the file on disk and the external libraries do not correctly remove it, please open a separate issue for that.

@jrasm91 commented on GitHub (Jan 13, 2024): The original issue is about deleting files in external libraries through the web UI, which is not supported. If the OP deletes the file on disk and the external libraries do not correctly remove it, please open a separate issue for that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1677