hassio-addons: 🐛 [Immich] Immich can't use NAS server, it can only access it in read mode

Description

I have this configuration on home assistant but the plugin

DB_DATABASE_NAME: immich DB_HOSTNAME: homeassistant.local DB_PASSWORD: **** DB_PORT: “5432” DB_USERNAME: homeassistant DISABLE_MACHINE_LEARNING: true JWT_SECRET: **** PGID: 0 PUID: 0 TZ: Europe/Paris data_location: /mnt/HomeAssistantShare/immich networkdisks: //192.168.5.1/FRITZ.NAS/TOSHIBA_EXT/HomeAssistantShare cifspassword: **** cifsusername: ****

Reproduction steps

1. Go the web or mobile immich console
2. upload a photo
3. Photo is uploaded but no thumb is generated

Addon Logs

[Nest] 1193  - 03/01/2024, 6:00:04 PM   ERROR [JobService] Unable to run job handler (thumbnailGeneration/generate-jpeg-thumbnail): Error: Input file contains unsupported image format
[Nest] 1193  - 03/01/2024, 6:00:04 PM   ERROR [JobService] Error: Input file contains unsupported image format
    at Sharp.toFile (/app/immich/server/node_modules/sharp/lib/output.js:89:19)
    at MediaRepository.resize (/app/immich/server/dist/infra/repositories/media.repository.js:39:14)
    at MediaService.generateThumbnail (/app/immich/server/dist/domain/media/media.service.js:129:44)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async MediaService.handleGenerateJpegThumbnail (/app/immich/server/dist/domain/media/media.service.js:116:28)
    at async /app/immich/server/dist/domain/job/job.service.js:137:37
    at async Worker.processJob (/app/immich/server/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
    at async Worker.retryIfFailed (/app/immich/server/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 1193  - 03/01/2024, 6:00:04 PM   ERROR [JobService] Object:
{
  "id": "fc808f3f-fda9-4279-a7da-30ee8a8e4838",
  "source": "upload"
}

When trying to open the photos or download them I also have those log errors and photos are not displayed and download file is corrupted:

[Nest] 1137  - 03/01/2024, 6:00:07 PM     LOG [CommunicationRepository] Websocket Disconnect: Qjqu4yrBN_dNFmDdAAAD
[Nest] 1137  - 03/01/2024, 6:00:08 PM     LOG [CommunicationRepository] Websocket Connect:    -MAWu-C-EFu7ZNa1AAAF
[Nest] 1137  - 03/01/2024, 6:03:38 PM   ERROR [Error: Unknown system error -116: Unknown system error -116, open '/mnt/HomeAssistantShare/immich/library/admin/2020/2020-09-04/Portrait_6.jpg'] Failed to download file
[Nest] 1137  - 03/01/2024, 6:03:38 PM   ERROR [Error: Unknown system error -116: Unknown system error -116, open '/mnt/HomeAssistantShare/immich/library/admin/2020/2020-09-04/Portrait_6.jpg'] Error: Unknown system error -116: Unknown system error -116, open '/mnt/HomeAssistantShare/immich/library/admin/2020/2020-09-04/Portrait_6.jpg'
[Nest] 1137  - 03/01/2024, 6:03:38 PM    WARN [ExpressAdapter] Content-Type doesn't match Reply body, you might need a custom ExceptionFilter for non-JSON responses
[Nest] 1137  - 03/01/2024, 6:05:04 PM     LOG [CommunicationRepository] Websocket Connect:    RaQ56Tp2n-B0UGuIAAAH
[Nest] 1137  - 03/01/2024, 6:05:17 PM     LOG [CommunicationRepository] Websocket Disconnect: RaQ56Tp2n-B0UGuIAAAH
[Nest] 1137  - 03/01/2024, 6:05:18 PM     LOG [CommunicationRepository] Websocket Connect:    qTmYezbW7jacyzjgAAAJ
[Nest] 1193  - 03/01/2024, 6:05:21 PM   ERROR [JobService] Unable to run job handler (thumbnailGeneration/generate-jpeg-thumbnail): Error: /mnt/HomeAssistantShare/immich/library/admin/2023/2023-12-03/amigos-snap_2023-12-03_13-45-30.png: unable to open for read
unix error: Stale file handle
/mnt/HomeAssistantShare/immich/library/admin/2023/2023-12-03/amigos-snap_2023-12-03_13-45-30.png: unable to open for read
unix error: Stale file handle
pngload: stream error
[Nest] 1193  - 03/01/2024, 6:05:21 PM   ERROR [JobService] Error: /mnt/HomeAssistantShare/immich/library/admin/2023/2023-12-03/amigos-snap_2023-12-03_13-45-30.png: unable to open for read
unix error: Stale file handle
/mnt/HomeAssistantShare/immich/library/admin/2023/2023-12-03/amigos-snap_2023-12-03_13-45-30.png: unable to open for read
unix error: Stale file handle
pngload: stream error
    at Sharp.toFile (/app/immich/server/node_modules/sharp/lib/output.js:89:19)
    at MediaRepository.resize (/app/immich/server/dist/infra/repositories/media.repository.js:39:14)
    at MediaService.generateThumbnail (/app/immich/server/dist/domain/media/media.service.js:129:44)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async MediaService.handleGenerateJpegThumbnail (/app/immich/server/dist/domain/media/media.service.js:116:28)
    at async /app/immich/server/dist/domain/job/job.service.js:137:37
    at async Worker.processJob (/app/immich/server/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
    at async Worker.retryIfFailed (/app/immich/server/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 1193  - 03/01/2024, 6:05:21 PM   ERROR [JobService] Object:
{
  "id": "bf0415ef-7cd6-448c-abe2-bc653c163bf6",
  "source": "upload"
}

Architecture

aarch64

OS

HAos

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

image

It is able to write the data, I’ve removed the “/mnt/” as $diskname already included the full path and also removed the ,noserverino in the password