immich
immich copied to clipboard
"Empty Recycle Bin" does not delete assets
The bug
Click on "Empty Recycle Bin" in the "Recycle Bin" section, and it will prompt "0 items have been permanently deleted", making it impossible to empty the Recycle Bin.
The OS that Immich Server is running on
Windows 11 Docker Desktop V4.43.3
Version of Immich Server
V1.118.2
Version of Immich Mobile App
V1.118.2
Platform with the issue
- [X] Server
- [X] Web
- [ ] Mobile
Your docker-compose.yml content
---
Your .env content
---
Reproduction steps
...
Relevant log output
No response
Additional information
No response
Can you please include the docker-compose and .env file?
If you're using an external library, make sure that you do not use the ":ro" flag at the end (in your docker-compose.yml)
#
# 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}
# 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
- "E:/My photo:/mnt/media/myphoto"
env_file:
- .env
ports:
- '2283:2283'
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
# - "E:/immich/cache:/cache"
env_file:
- .env
restart: always
healthcheck:
disable: false
redis:
container_name: immich_redis
image: m.daocloud.io/docker.io/redis:6.2-alpine@sha256:2ba50e1ac3a0ea17b736ce9db2b0a9f6f8b85d4c27d5f5accc6a416d8f42c6d5
healthcheck:
test: redis-cli ping || exit 1
restart: always
database:
container_name: immich_postgres
image: m.daocloud.io/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
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
healthcheck:
test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
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',
'shared_buffers=512MB',
'-c',
'wal_compression=on',
]
restart: always
volumes:
model-cache:
pgdata:
`
`# 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=./library
# 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=Asia/Shanghai
# 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=postgres
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
If you're using an external library, make sure that you do not use the ":ro" flag at the end (in your docker-compose.yml)
the DEBUG
That is unrelated to what I wrote.
If you're using an external library, make sure that you do not use the ":ro" flag at the end (in your docker-compose.yml)
I think :ro shouldn't affect this button. In last versions Offline files were moved to Trash. So, why I need to remove :ro in mappings, if I just need to clear Trash of offline files? It's not connected. Why then I can select assets one by one and delete from Trash? Even with :ro flag.
It is connected. Removing files from trash means removing them from disk. This is not possible with a readonly volume.
Removing files from trash means removing them from disk. It's clear that if you want to remove assests from disk you requiere rw permissions. No argue here.
But what I meant is in last versions Offline files were relocated to Trash. And to clean them all now I need manually select each one and delete. So either it's better to create additional button to clean Offline files from Trash. Or fix cleaning Trash of Offline files with one button, when :ro flag is set. One more time. I'm not asking to remove files from disk when :ro is set. I need to clean Offline files, that are already missing on disk and exist only in DB.
一起入群交流啊
一起入群交流啊
什么群
I'm facing the same issue with the recycle bin containing only offline assets (after moving them around on my NAS and re-scanning).
- The Empty recycle bin gives the same "0 items permanently deleted"
immich-server | [Nest] 17 - 12/04/2024, 9:51:17 PM DEBUG [Api:LoggingInterceptor~jjnohhxq] POST /api/trash/empty 200 297.74ms 192.168.1.254
immich-server | [Nest] 17 - 12/04/2024, 9:51:17 PM DEBUG [Api:LoggingInterceptor~irsfee7f] GET /api/timeline/buckets?isTrashed=true&size=MONTH 200 381.62ms 192.168.1.254
- Manually selecting all from the trash produces an HTTP 400 error (probably because it is sending 140k ids through the request?)
immich-server | [Nest] 17 - 12/04/2024, 9:50:51 PM DEBUG [Api:LoggingInterceptor~hwk2iqal] DELETE /api/assets 204 6515.82ms 192.168.1.254
immich-server | [Nest] 17 - 12/04/2024, 9:50:51 PM VERBOSE [Api:LoggingInterceptor~hwk2iqal] {"ids":["3e91f9a6-97f9-4d5e-9739-bfdd1b44e685","d6cf205b-53a9-43de-90ef-4470632247a6","31a3bc90-031a-4818-951e-dd8875c50350","9029210d-e974-4f30-b897-96f3deafb53d","cac22a96-42d3-4958-a8dd-0e78dec2306c","1b275947-a173-46fe-999f-685e2b4c6a86","96386cfd-7447-4ed9-ac15-52a64638708e","3cabbdac-cd73-43fd-9dbe-56d3e01c238c","72106d72-7786-47e1-a14b-0d33452f0e95","8ff738e7-e32b-42aa-b172-7ec13b8451e7","76496fe1-4f2d-443e-b4fa-7642e19e88e6","9bf744dd-2417-439a-9291-16a9a5df08d6","afb5c69e-0bef-4eff-a7bc-c7325e555aae","8fd22126-26eb-4a20-95b0-3920f8a641de","618cd452-21b6-4465-93b5-9a24e9493035","7b140068-baa7-4f93-8134-14bc5345bcb7","9fd6e633-5845-4f35-8240-1e6714ca3cb2","fa409d36-04b0-4e29-aabe-c9fd4f5049d4","4f7cbdc1-0942-4227-80b7-4ab5bcae5e6b","6bd0fec4-5316-4ded-8bc1-47ae0a3ff16a","6761512d-a712-437d-b6f8-3c89a8d4a948","7879f22b-6cf0-42ea-b01d-319126a1771e","2f0a8642-392c-4db1-9aaa-1adefa8b76e2","20825d7c-4cfb-48a3-8045-a4115b1be2d0","74818aa1-5ab3-4839-86f7-9e18428a8e93","db4336fc-c64f-48f9-80ce-98b928e64cde","040f053d-d205-4f86-8bd1-e290b1e8abcd","8913c00f-2d4d-4942-8729-cde6d439e389","589df53c-a310-460b-9526-0d2002e962dc","505cfd3e-46bd-416a-9234-0b46ee76fbc2","e5e66e74-d45a-4b16-89cf-f99e1d3af8c6","75505515-e038-45ac-bec3-01a35ca94107","aa460cc8-7dc3-40d4-91b1-7d481881804e","9289ccfe-3bb4-4504-86c6-3f3304f97f24","25c973da-9832-4660-b7ec-c0080e39c392","193d6b92-be81-4fdb-b996-f194affb8e4c","4dec29f8-f2cc-428d-b921-8e8bb84b25fb","495d11e3-7237-41d0-bddf-09005c89e9e7","6613744b-58cc-4286-b07a-a3db5efeac8c","6ef38db2-94ca-4310-a953-325c2aaf08fe","602c85dd-4d97-44f5-b9f5-18f5d440021c","69f529d4-1dbf-483c-9af0-7c28697dcc84","21e6c258-226a-468b-b32e-dbd29eb9db8b","e614d26e-056a-4ab7-94f5-947accd563a6","7a68b038-6b36-42a5-9f10-d4d337d60e26","d022fa8f-4694-49b1-b931-a07875b9d6b8","41c06800-c90d-46d0-b7be-8cb7c948cb44","6a5618e8-58f7-4f86-b1f3-ebe685050578","b4ce6b1f-dfdf-477b-8697-2260e84510fd","d66f6acb-c31c-46a2-9729-cc5eef611c11","9a670460-3531-4ccb-9557-b308a5ef5edf","f6817f22-8fff-47a5-8cc5-107edb323485","f5d0ddf2-a5da-4f25-9b0b-169104b90239","22e70ff0-7387-488f-bc67-30bd86ef0cd0","18877f95-9a77-4ea1-b190-42b607c48ec8","132da627-82e1-4c85-bac0-8030e4d038db","7de5d828-9273-4597-91ae-0dfed6ee4138","e6304bbb-1835-4211-88af-2e1c41f61ef3","5eaa4fe4-a48f-4fa9-b247-c5965ebc80f3","4afef136-7c5f-4bcb-a8e1-62a4c3fb0578","f0874320-7e7b-44a4-973e-03452611f9e9","74c7c53c-43e7-4afe-99f2-7f96d25ad455","343992d4-10c8-433e-95a6-658f1e7c9a7a","46a3e7c6-099c-4e97-8e41-42325516a99e","02bdf895-c624-43ee-bf7d-8a5409011a30","71adcd0c-383d-4f0e-9d87-7d31600cf4d0","173c4c4e-6b56-4b10-85fd-3d676b5c1752","38c67471-73fe-46ad-968d-fa54c6440deb","54072362-1fc1-4b01-82d6-b0f206727f4c","4bc80f07-bcb5-4235-a0b7-ce18f9afc92f","4bd6e756-7bac-47e2-a472-bae181b69b63","9376a837-ef02-465b-91c0-ea7361d7044d","3e81f8d1-b5ea-4958-a546-f6154a384fe3","a3443303-7d67-4a1f-aea9-d36def333c96","3e5019ad-8901-4ce2-9231-43675d43fbd4","ec904e41-be75-4901-b936-382972711935","7302c453-ee2c-4080-b745-aaad0bf66a56","4d10de3a-5fda-4ab1-a8bb-f616e1d00792","78071a0b-9a9b-428f-8f85-1621691642a9","4851cb1e-850a-46f7-8919-a5b4a7217380","e2014daa-a4c2-4b64-988b-8d8fbafb7baf","0201a3b5-8630-4ede-a55b-811ebe6307ee","e2cd884f-e0bc-4ad4-90f7-50c964934ccf","90c90ee3-7a3a-4a86-8b80-81dfaefe4ea1","593af26c-0bd5-45b4-a5a1-9007a8347a2c","27e850b7-7951-4947-bd2c-9ba4bcf371df","7b434254-fcf9-4326-b3f4-3a027b0fbc4b","ba5b3cd3-1551-4a8d-b83c-20a1d7559336","638a3ed3-fcbc-409c-9694-78553408c409","efaad75a-3282-42ba-930e-823ac7af7077","c63a5419-e237-4fa7-8236-2247de58f48f","46a34c4c-6aa8-4bea-be4b-8c1d581d1366","604859bc-b61c-486d-a3ef-b3aa85e8a1e3","4500cfe7-f480-4b0d-a611-92f7bfac5dca","90cab125-c2f1-4b73-97c3-1f873569fa12","28ed6bba-3b5c-4382-91af-71b4ab710ae7","d5bb34d7-5293-4902-ad7f-550f53684ecc","3d4283e0-598a-4114-b335-95bd43000dd0","fef0141d-3bf0-4b22-a80a-2ba65d6738f6","c275b43c-de46-4b7d-bb7b-837b3216eb9e","...and 194810 more"],"force":true}
immich-server | [Nest] 17 - 12/04/2024, 9:50:51 PM DEBUG [Api:GlobalExceptionFilter~hwk2iqal] HttpException(400): {"message":"Not found or no asset.delete access","error":"Bad Request","statusCode":400}
- Manually selecting some files from the bin and removing them works (but it is obviously not viable to delete all 140k files)
immich-server | [Nest] 17 - 12/04/2024, 9:56:47 PM DEBUG [Api:LoggingInterceptor~h1cl9ddl] DELETE /api/assets 204 2393.25ms 192.168.1.254
immich-server | [Nest] 17 - 12/04/2024, 9:56:47 PM VERBOSE [Api:LoggingInterceptor~h1cl9ddl] {"ids":["3e91f9a6-97f9-4d5e-9739-bfdd1b44e685","d6cf205b-53a9-43de-90ef-4470632247a6","31a3bc90-031a-4818-951e-dd8875c50350","9029210d-e974-4f30-b897-96f3deafb53d","cac22a96-42d3-4958-a8dd-0e78dec2306c","1b275947-a173-46fe-999f-685e2b4c6a86","96386cfd-7447-4ed9-ac15-52a64638708e","3cabbdac-cd73-43fd-9dbe-56d3e01c238c","72106d72-7786-47e1-a14b-0d33452f0e95","8ff738e7-e32b-42aa-b172-7ec13b8451e7","76496fe1-4f2d-443e-b4fa-7642e19e88e6","9bf744dd-2417-439a-9291-16a9a5df08d6","afb5c69e-0bef-4eff-a7bc-c7325e555aae","8fd22126-26eb-4a20-95b0-3920f8a641de","618cd452-21b6-4465-93b5-9a24e9493035","7b140068-baa7-4f93-8134-14bc5345bcb7","9fd6e633-5845-4f35-8240-1e6714ca3cb2","fa409d36-04b0-4e29-aabe-c9fd4f5049d4","4f7cbdc1-0942-4227-80b7-4ab5bcae5e6b","6bd0fec4-5316-4ded-8bc1-47ae0a3ff16a","6761512d-a712-437d-b6f8-3c89a8d4a948","7879f22b-6cf0-42ea-b01d-319126a1771e","2f0a8642-392c-4db1-9aaa-1adefa8b76e2","20825d7c-4cfb-48a3-8045-a4115b1be2d0","74818aa1-5ab3-4839-86f7-9e18428a8e93","db4336fc-c64f-48f9-80ce-98b928e64cde","040f053d-d205-4f86-8bd1-e290b1e8abcd","8913c00f-2d4d-4942-8729-cde6d439e389","589df53c-a310-460b-9526-0d2002e962dc","505cfd3e-46bd-416a-9234-0b46ee76fbc2","e5e66e74-d45a-4b16-89cf-f99e1d3af8c6","75505515-e038-45ac-bec3-01a35ca94107","aa460cc8-7dc3-40d4-91b1-7d481881804e","9289ccfe-3bb4-4504-86c6-3f3304f97f24","193d6b92-be81-4fdb-b996-f194affb8e4c","25c973da-9832-4660-b7ec-c0080e39c392","4dec29f8-f2cc-428d-b921-8e8bb84b25fb","495d11e3-7237-41d0-bddf-09005c89e9e7","6613744b-58cc-4286-b07a-a3db5efeac8c","6ef38db2-94ca-4310-a953-325c2aaf08fe","602c85dd-4d97-44f5-b9f5-18f5d440021c","69f529d4-1dbf-483c-9af0-7c28697dcc84","21e6c258-226a-468b-b32e-dbd29eb9db8b","e614d26e-056a-4ab7-94f5-947accd563a6","7a68b038-6b36-42a5-9f10-d4d337d60e26","d022fa8f-4694-49b1-b931-a07875b9d6b8","41c06800-c90d-46d0-b7be-8cb7c948cb44","6a5618e8-58f7-4f86-b1f3-ebe685050578","b4ce6b1f-dfdf-477b-8697-2260e84510fd","d66f6acb-c31c-46a2-9729-cc5eef611c11","9a670460-3531-4ccb-9557-b308a5ef5edf","f6817f22-8fff-47a5-8cc5-107edb323485","f5d0ddf2-a5da-4f25-9b0b-169104b90239","22e70ff0-7387-488f-bc67-30bd86ef0cd0","18877f95-9a77-4ea1-b190-42b607c48ec8","132da627-82e1-4c85-bac0-8030e4d038db","7de5d828-9273-4597-91ae-0dfed6ee4138","e6304bbb-1835-4211-88af-2e1c41f61ef3","5eaa4fe4-a48f-4fa9-b247-c5965ebc80f3","4afef136-7c5f-4bcb-a8e1-62a4c3fb0578","f0874320-7e7b-44a4-973e-03452611f9e9","74c7c53c-43e7-4afe-99f2-7f96d25ad455","343992d4-10c8-433e-95a6-658f1e7c9a7a","46a3e7c6-099c-4e97-8e41-42325516a99e","02bdf895-c624-43ee-bf7d-8a5409011a30","71adcd0c-383d-4f0e-9d87-7d31600cf4d0","173c4c4e-6b56-4b10-85fd-3d676b5c1752","38c67471-73fe-46ad-968d-fa54c6440deb","54072362-1fc1-4b01-82d6-b0f206727f4c","4bc80f07-bcb5-4235-a0b7-ce18f9afc92f","4bd6e756-7bac-47e2-a472-bae181b69b63","9376a837-ef02-465b-91c0-ea7361d7044d","3e81f8d1-b5ea-4958-a546-f6154a384fe3","a3443303-7d67-4a1f-aea9-d36def333c96","3e5019ad-8901-4ce2-9231-43675d43fbd4","ec904e41-be75-4901-b936-382972711935","7302c453-ee2c-4080-b745-aaad0bf66a56","4d10de3a-5fda-4ab1-a8bb-f616e1d00792","78071a0b-9a9b-428f-8f85-1621691642a9","4851cb1e-850a-46f7-8919-a5b4a7217380","e2014daa-a4c2-4b64-988b-8d8fbafb7baf","0201a3b5-8630-4ede-a55b-811ebe6307ee","e2cd884f-e0bc-4ad4-90f7-50c964934ccf","90c90ee3-7a3a-4a86-8b80-81dfaefe4ea1","593af26c-0bd5-45b4-a5a1-9007a8347a2c","27e850b7-7951-4947-bd2c-9ba4bcf371df","7b434254-fcf9-4326-b3f4-3a027b0fbc4b","ba5b3cd3-1551-4a8d-b83c-20a1d7559336","638a3ed3-fcbc-409c-9694-78553408c409","efaad75a-3282-42ba-930e-823ac7af7077","c63a5419-e237-4fa7-8236-2247de58f48f","46a34c4c-6aa8-4bea-be4b-8c1d581d1366","604859bc-b61c-486d-a3ef-b3aa85e8a1e3","4500cfe7-f480-4b0d-a611-92f7bfac5dca","90cab125-c2f1-4b73-97c3-1f873569fa12","28ed6bba-3b5c-4382-91af-71b4ab710ae7","d5bb34d7-5293-4902-ad7f-550f53684ecc","3d4283e0-598a-4114-b335-95bd43000dd0","fef0141d-3bf0-4b22-a80a-2ba65d6738f6","c275b43c-de46-4b7d-bb7b-837b3216eb9e","...and 132 more"],"force":true}
immich-server | [Nest] 7 - 12/04/2024, 9:56:47 PM DEBUG [Microservices:TrashService] Queueing 232 assets for deletion from the trash
immich-server | [Nest] 17 - 12/04/2024, 9:56:47 PM DEBUG [Api:LoggingInterceptor~mv9o0ni9] GET /api/assets/75dd11d0-539f-43ab-8e44-780bdfddd60b/thumbnail?size=thumbnail&c=%2BnrwuxpxQ7qmU6podsJE%2FInekjI%3D 200 64.96ms undefined
immich-server | [Nest] 7 - 12/04/2024, 9:56:47 PM LOG [Microservices:TrashService] Queued 232 assets for deletion from the trash
Then it warns the files do not exist but they are indeed removed from the recycle bin
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_110436.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_110443.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_110637.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_110431.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_111758.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_121448.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_113350.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_110537.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_111849.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_115224.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_115557.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_115226.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_120234.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_123527.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_123351.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_123925.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_123921.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_113334.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_110433.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_111817.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_110538.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_111308.jpg does not exist.
immich-server | [Nest] 7 - 12/04/2024, 9:56:57 PM WARN [Microservices:StorageRepository] File /nas/photos/xxxx/20240921_113533.jpg does not exist.
HTH.
Same issue here. Very easy way to reproduce this bug when using external library as follows:
- Set an external library from a directory which mapped as Read-Only
- Scan it
- In your external library, enter Scan Settings and Add Exclusion Pattern. (Say **/*.CR3, as I only need to display JPG files)
- Rescan all external libraries
- Then all photos has this pattern above (.CR3) are removed, but you can find them in the Trash
- Do Empty Trash, it prompts 0 asset was removed. -- BUG
It's very common that users use external libraries with read-only directories for data security reasons. See this issue exists for several months, hope it can be fixed soon.
Do Empty Trash, it prompts 0 asset was removed. -- BUG
This is not a bug. As has been already explained, it's impossible to delete images from disk if the library is mounted as read only. If that's the case we expect you to manage your assets on disk, i.e. deleting from your file system. Immich will pick that up in the periodic scan and delete them as well then.
Facing the same issue - not sure why the issue has been closed.
My external library is not set to read-only. After having to resync my external library, which caused any assets to be renamed in the external library, immich trash now includes 100000 entries, that have no link to an asset on the external library any more, as shown by the warning message when looking at the individual item.
So files on the library have been managed externally. I would like to remove all the unnecessary entries in trash and hopefully free the space consumed by all the preview images by emptying the trash.
As mentioned above: deleting images manually from trash works. But individually deleting 100000 entries is not a viable solution.
Would appreciate if this could be reopened.