No such file or directory when trying to download an asset.

[Nest] 17 - 05/07/2025, 2:40:56 PM ERROR [Api:LoggingRepository~g6mauzmd] Unable to send file: Error
Error: ENOENT: no such file or directory, access 'upload/upload/c88c5dc3-c249-468b-8d64-45d183d04d4e/27/40/27402717-3ea0-4caa-b819-1a4d6925d159.jpg'
at async access (node:internal/fs/promises:605:10)
at async sendFile (/usr/src/app/dist/utils/file.js:53:9)
at async AssetMediaController.downloadAsset (/usr/src/app/dist/controllers/asset-media.controller.js:47:9)
[Nest] 17 - 05/07/2025, 2:40:56 PM ERROR [Api:GlobalExceptionFilter~g6mauzmd] Unknown error: Error: ENOENT: no such file or directory, access 'upload/upload/c88c5dc3-c249-468b-8d64-45d183d04d4e/27/40/27402717-3ea0-4caa-b819-1a4d6925d159.jpg'
Error: ENOENT: no such file or directory, access 'upload/upload/c88c5dc3-c249-468b-8d64-45d183d04d4e/27/40/27402717-3ea0-4caa-b819-1a4d6925d159.jpg'
at async access (node:internal/fs/promises:605:10)
at async sendFile (/usr/src/app/dist/utils/file.js:53:9)
at async AssetMediaController.downloadAsset (/usr/src/app/dist/controllers/asset-media.controller.js:47:9)

I found a post that said IMMICH_MEDIA_LOCATION should be defined but in the .env description it said this should not be defined. Confused.
Was this page helpful?