Job "Extract metadata" is frequently paused

Running Immich v1.81.1, but I have seen this multiple times already during the past few days (it also affected 1.81.0 and possibly also 1.80.0): namely that the Extract metadata job status is paused, so when new pictures are uploaded from the app, no new thumbnails are being generated and in fact neither all of the other jobs are running. I just have to click on Resume and then it starts doing its job normally again, but I saw some errors in the error log regarding a directory that couldn't be created, see:
immich_microservices | [Nest] 7 - 10/05/2023, 11:11:25 PM ERROR [MetadataService] Unable to initialize reverse geocoding: Error: EACCES: permission denied, mkdir '/usr/src/app/.reverse-geocoding-dump/'
immich_microservices | Error: EACCES: permission denied, mkdir '/usr/src/app/.reverse-geocoding-dump/'
immich_microservices | at Object.mkdirSync (node:fs:1379:3)
immich_microservices | at Object.init (/usr/src/app/node_modules/local-reverse-geocoder/index.js:673:10)
immich_microservices | at /usr/src/app/dist/infra/repositories/metadata.repository.js:53:46
immich_microservices | at new Promise (<anonymous>)
immich_microservices | at MetadataRepository.init (/usr/src/app/dist/infra/repositories/metadata.repository.js:52:16)
immich_microservices | at MetadataService.init (/usr/src/app/dist/domain/metadata/metadata.service.js:78:35)
immich_microservices | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
immich_microservices | [Nest] 7 - 10/05/2023, 11:11:25 PM ERROR [MetadataService] Unable to initialize reverse geocoding: Error: EACCES: permission denied, mkdir '/usr/src/app/.reverse-geocoding-dump/'
immich_microservices | Error: EACCES: permission denied, mkdir '/usr/src/app/.reverse-geocoding-dump/'
immich_microservices | at Object.mkdirSync (node:fs:1379:3)
immich_microservices | at Object.init (/usr/src/app/node_modules/local-reverse-geocoder/index.js:673:10)
immich_microservices | at /usr/src/app/dist/infra/repositories/metadata.repository.js:53:46
immich_microservices | at new Promise (<anonymous>)
immich_microservices | at MetadataRepository.init (/usr/src/app/dist/infra/repositories/metadata.repository.js:52:16)
immich_microservices | at MetadataService.init (/usr/src/app/dist/domain/metadata/metadata.service.js:78:35)
immich_microservices | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
This directory is not mounted from the outside, I only mount /usr/src/app/upload/ so it is something internal I think. After I resume the job it stays active for some time, but after a few days it will be paused again. Anybody has got any idea about how to force this job to not pause? Is there something I can do about that mkdir error? Did I miss some migration step maybe in the previous releases? I've attached my docker-compose.yml as well.
1 Reply
jrasm91
jrasm912y ago
The job is paused automatically when the microservices container starts. It unpauses when reverse geo coding is initialized. You should fix that reverse geo coding error and then it will work as expected.

Did you find this page helpful?