dotfortun3
dotfortun3
IImmich
Created by dotfortun3 on 4/7/2025 in #help-desk-support
External Library - Unable to remove file from disk
Ok thank you! Have a good holiday!
16 replies
IImmich
Created by dotfortun3 on 4/7/2025 in #help-desk-support
External Library - Unable to remove file from disk
@Mraedis
16 replies
IImmich
Created by dotfortun3 on 4/7/2025 in #help-desk-support
External Library - Unable to remove file from disk
No, the external library was mounted read only and when I deleted the external library from the UI these errors appeared. The files I deleted were from a User Library that mistakenly deleted when trying to remove duplicates. The error message I am showing only showed up after I deleted the external library from the admin account in the Immich UI.
16 replies
IImmich
Created by dotfortun3 on 4/7/2025 in #help-desk-support
External Library - Unable to remove file from disk
This is a VM running Ubuntu, and Immich is running in Docker with mounts to my NAS
16 replies
IImmich
Created by dotfortun3 on 4/7/2025 in #help-desk-support
External Library - Unable to remove file from disk
The server version is 1.131.3
16 replies
IImmich
Created by dotfortun3 on 4/7/2025 in #help-desk-support
External Library - Unable to remove file from disk
I recently accidentally deleted files from the Immich library (not the external one) and I am trying to fix the issues caused by that. I am not sure if that should be related to the external library though.
16 replies
IImmich
Created by dotfortun3 on 4/7/2025 in #help-desk-support
External Library - Unable to remove file from disk
16 replies
IImmich
Created by dotfortun3 on 4/7/2025 in #help-desk-support
External Library - Unable to remove file from disk
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: nvenc # 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
- ${THUMB_LOCATION}:/usr/src/app/upload/thumbs
- ${ENCODED_VIDEO_LOCATION}:/usr/src/app/upload/encoded-video
- ${PROFILE_LOCATION}:/usr/src/app/upload/profile
- ${FAMILY_LIBRARY}:/mnt/media/family:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- 2283:2283
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
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: nvenc # 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
- ${THUMB_LOCATION}:/usr/src/app/upload/thumbs
- ${ENCODED_VIDEO_LOCATION}:/usr/src/app/upload/encoded-video
- ${PROFILE_LOCATION}:/usr/src/app/upload/profile
- ${FAMILY_LIBRARY}:/mnt/media/family:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
ports:
- 2283:2283
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
16 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
But also, my initial question was about getting 400 Bad Request from the assets/stacks when calling DELETE, it just kind involved me providing more information because I think it actually did delete the records from the DB, but the repair is still show 78k orphaned assets https://discord.com/channels/979116623879368755/1357226144667271228/1357226144667271228
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
But I’m trying to preserve as much as I can in terms of albums, likes, and comments
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
Yeah that’s correct, I’m not trying to get them back, I was trying to fix Immich cause I know files deleted from the disk causes issues in Immich, so I was just trying to clean up the database before I restore them from my 2nd backup. I am basically trying to avoid wiping the Immich DB since there are still thousands of photos that have stuff like that associated with them.
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
They were already deleted because I accidentally deleted them from the disk.
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
Ok, so a little more information. I think the assets were successfully deleted, but they still show in the repair page, but if I query the DB directly they are gone. The logs still keep saying they are queuing 78032 assets for deletion though.
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
Also, I dumped the entirety of my logs and uploaded them here: https://drive.proton.me/urls/9BYVJHQHPC#Q7HfpaHXWbI3
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
The logs keep looking like this:
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4897.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4882.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4905.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4907.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File upload/thumbs/c08b4ef8-f5d3-4b03-9f0c-515a0de22b52/b0/7c/b07c43ac-4f52-4b60-958a-68d1a39952ce-preview.jpeg does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File upload/thumbs/c08b4ef8-f5d3-4b03-9f0c-515a0de22b52/31/77/3177926c-7eb4-453d-a26f-0dd8499a48fc-preview.jpeg does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4886.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4887.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File upload/thumbs/c08b4ef8-f5d3-4b03-9f0c-515a0de22b52/2f/a8/2fa871c5-e287-48bd-9a70-c23ebac8a504-preview.jpeg does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4906.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:40:32 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:40:32 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:40:32 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:40:32 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:40:32 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:41:18 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:41:18 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:41:18 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:41:18 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:41:18 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:42:07 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:42:07 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:42:07 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:42:07 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:42:07 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4897.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4882.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4905.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4907.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File upload/thumbs/c08b4ef8-f5d3-4b03-9f0c-515a0de22b52/b0/7c/b07c43ac-4f52-4b60-958a-68d1a39952ce-preview.jpeg does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File upload/thumbs/c08b4ef8-f5d3-4b03-9f0c-515a0de22b52/31/77/3177926c-7eb4-453d-a26f-0dd8499a48fc-preview.jpeg does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4886.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4887.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File upload/thumbs/c08b4ef8-f5d3-4b03-9f0c-515a0de22b52/2f/a8/2fa871c5-e287-48bd-9a70-c23ebac8a504-preview.jpeg does not exist.
[Nest] 7 - 04/04/2025, 12:39:45 AM WARN [Microservices:StorageRepository] File /mnt/media/family/Photos from 2019/IMG_4906.MP4 does not exist.
[Nest] 7 - 04/04/2025, 12:40:32 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:40:32 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:40:32 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:40:32 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:40:32 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:41:18 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:41:18 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:41:18 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:41:18 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:41:18 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:42:07 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:42:07 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:42:07 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:42:07 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
[Nest] 7 - 04/04/2025, 12:42:07 AM LOG [Microservices:TrashService] Queued 78032 asset(s) for deletion from the trash
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
I forgot to mention the return code is 400 and it says I either do not have access, or it doesn't exist, but I was able to query the all stacks and then filter them with the known missing images
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
Sure! I can't show you an actual one because I deleted the stacks from the DB directly, but I can show you what it looks like with dummy data. The weird part is that even though I deleted the stacks directly, it still isn't removing the assets when I make a call to delete an orphaned asset.
method: delete
endpoint: api/stacks
payload: { "ids": [""db43c2de-4b58-4e36-9fd2-155ee6d7f9cd", "88cd7ff7-61fd-4a33-b510-fb0922376cb7", "33815d28-9ff8-47e9-b426-d65a6b803c4b", "e3e52d59-7b48-4d83-9760-974f2a0b1014", "f14e4e14-5eac-42bb-ab27-193de9b89f8d", "24c876b0-3a9b-4700-aab5-da6bfee87ad0", "46266ddc-141c-4416-97c6-af8418847564"] }
method: delete
endpoint: api/stacks
payload: { "ids": [""db43c2de-4b58-4e36-9fd2-155ee6d7f9cd", "88cd7ff7-61fd-4a33-b510-fb0922376cb7", "33815d28-9ff8-47e9-b426-d65a6b803c4b", "e3e52d59-7b48-4d83-9760-974f2a0b1014", "f14e4e14-5eac-42bb-ab27-193de9b89f8d", "24c876b0-3a9b-4700-aab5-da6bfee87ad0", "46266ddc-141c-4416-97c6-af8418847564"] }
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
If someone can help me figure out if it's possible to delete stacks from the API, that would be great. I would like make a PR to the Remove offline files project
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
I think I got it working, but I had to delete it from the DB directly. No matter what I did, the deleteStacks endpoint returned 400 Bad Request
22 replies
IImmich
Created by dotfortun3 on 4/3/2025 in #help-desk-support
deleteAssets endpoint not deleting orphaned assets
I updated the script to search for assets where they are the primary asset of stack and then it will delete them before attempting to delete the asset from the DB
22 replies