You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: EPERM: operation not permitted, utime 'upload/upload/e9209f4c-7ad4-437d-a
f25-1c059623c8e1/24/cd/24cd5cc9-a7db-4d4d-86d5-d7d4675f69df.jpeg'
at async Object.utimes (node:internal/fs/promises:1128:10)
at async AssetMediaService.create (/usr/src/app/dist/services/asset-media.se
rvice.js:273:9)
at async AssetMediaService.uploadAsset (/usr/src/app/dist/services/asset-med
ia.service.js:96:27)
at async AssetMediaController.uploadAsset (/usr/src/app/dist/controllers/ass
et-media.controller.js:40:29)
The OS that Immich Server is running on
Alpine
Version of Immich Server
v1.120.1
Version of Immich Mobile App
N/A
Platform with the issue
Server
Web
Mobile
Your docker-compose.yml content
N/A
Your .env content
N/A
Reproduction steps
Use geesefs (or any non-POSIX compliant FS) and mount an S3 bucket to the uploads directory
Try to upload a file
Relevant log output
Error: EPERM: operation not permitted, utime 'upload/upload/e9209f4c-7ad4-437d-a at async Object.utimes (node:internal/fs/promises:1128:10) at async AssetMediaService.create (/usr/src/app/dist/services/asset-media.se at async AssetMediaService.uploadAsset (/usr/src/app/dist/services/asset-med at async AssetMediaController.uploadAsset (/usr/src/app/dist/controllers/ass
Additional information
No response
The text was updated successfully, but these errors were encountered:
They can be feature-flagged. I've made a small patch on that method that checks an environment variable - and when that's set, it skips the call.
I'm fine with not having support out-of-the-box, but I think there should be an option somewhere, ideally an environment variable, that allows to skip at least utime
The bug
It looks like Immich tries to set the
utime
of the uploaded files, but certain storage implementations such as geesefs do not allow this.To properly fix the issue, I think it would be convenient to allow users to disable / mock
utime
when a specific environment variable is specified.immich/server/src/repositories/storage.repository.ts
Lines 62 to 64 in 7534098
The OS that Immich Server is running on
Alpine
Version of Immich Server
v1.120.1
Version of Immich Mobile App
N/A
Platform with the issue
Your docker-compose.yml content
N/A
Your .env content
Reproduction steps
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: