I
Immich4mo ago
mixu1308

Error loading image on brand new install

Hi, I've just setup a fresh install of Immich using the docker compose, .env and hwaccel file from the documentation. I have tried both with and without hwaccel and get the same issue. The issue I am having is that every picture I upload show's the "Error loading image" text. I have tried regenerating thumbnails through the job in the admin panel, but that does not do anything. What does work is when I go to an individual picture, click the menu and then hit 'regenerate thumbnail' In the docker logs I see a multiple errors for job handlers where it is unable to read the properties of 'replaceAll' Hoping someone has some tips! Here is the error log
[Nest] 6 - 01/21/2025, 5:46:08 PM WARN [Microservices:JobRepository] Skipping unknown job: "undefined"
[Nest] 6 - 01/21/2025, 5:46:08 PM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/undefined): TypeError: Cannot read properties of undefined (reading 'replaceAll')
[Nest] 6 - 01/21/2025, 5:46:08 PM ERROR [Microservices:JobService] TypeError: Cannot read properties of undefined (reading 'replaceAll')
at JobService.onJobStart (/usr/src/app/dist/services/job.service.js:149:55)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:134:13)
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 6 - 01/21/2025, 5:46:08 PM ERROR [Microservices:JobService] Object:
{}

Error: Missing lock for job 1. failed
at Scripts.finishedErrors (/usr/src/app/node_modules/bullmq/dist/cjs/classes/scripts.js:272:24)
at Job.moveToFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/job.js:427:32)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async handleFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:379:21)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 6 - 01/21/2025, 6:45:25 PM WARN [Microservices:JobRepository] Skipping unknown job: "undefined"
[Nest] 6 - 01/21/2025, 6:45:25 PM ERROR [Microservices:JobService] Unable to run job handler (backgroundTask/undefined): TypeError: Cannot read properties of undefined (reading 'replaceAll')
[Nest] 6 - 01/21/2025, 6:45:25 PM ERROR [Microservices:JobService] TypeError: Cannot read properties of undefined (reading 'replaceAll')
at JobService.onJobStart (/usr/src/app/dist/services/job.service.js:149:55)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:134:13)
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 6 - 01/21/2025, 6:45:25 PM ERROR [Microservices:JobService] Object:
{}

Error: Missing lock for job 1. failed
at Scripts.finishedErrors (/usr/src/app/node_modules/bullmq/dist/cjs/classes/scripts.js:272:24)
at Job.moveToFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/job.js:427:32)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async handleFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:379:21)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[...]
[Nest] 6 - 01/21/2025, 5:46:08 PM WARN [Microservices:JobRepository] Skipping unknown job: "undefined"
[Nest] 6 - 01/21/2025, 5:46:08 PM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/undefined): TypeError: Cannot read properties of undefined (reading 'replaceAll')
[Nest] 6 - 01/21/2025, 5:46:08 PM ERROR [Microservices:JobService] TypeError: Cannot read properties of undefined (reading 'replaceAll')
at JobService.onJobStart (/usr/src/app/dist/services/job.service.js:149:55)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:134:13)
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 6 - 01/21/2025, 5:46:08 PM ERROR [Microservices:JobService] Object:
{}

Error: Missing lock for job 1. failed
at Scripts.finishedErrors (/usr/src/app/node_modules/bullmq/dist/cjs/classes/scripts.js:272:24)
at Job.moveToFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/job.js:427:32)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async handleFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:379:21)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 6 - 01/21/2025, 6:45:25 PM WARN [Microservices:JobRepository] Skipping unknown job: "undefined"
[Nest] 6 - 01/21/2025, 6:45:25 PM ERROR [Microservices:JobService] Unable to run job handler (backgroundTask/undefined): TypeError: Cannot read properties of undefined (reading 'replaceAll')
[Nest] 6 - 01/21/2025, 6:45:25 PM ERROR [Microservices:JobService] TypeError: Cannot read properties of undefined (reading 'replaceAll')
at JobService.onJobStart (/usr/src/app/dist/services/job.service.js:149:55)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:134:13)
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 6 - 01/21/2025, 6:45:25 PM ERROR [Microservices:JobService] Object:
{}

Error: Missing lock for job 1. failed
at Scripts.finishedErrors (/usr/src/app/node_modules/bullmq/dist/cjs/classes/scripts.js:272:24)
at Job.moveToFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/job.js:427:32)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async handleFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:379:21)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[...]
No description
20 Replies
Immich
Immich4mo ago
:wave: Hey @mixu1308, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Immich
Immich4mo ago
Checklist I have... 1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time). 2. :blue_square: read applicable release notes. 3. :blue_square: reviewed the FAQs for known issues. 4. :blue_square: reviewed Github for known issues. 5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy). 6. :blue_square: uploaded the relevant information (see below). 7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed.
GitHub
immich-app immich · Discussions
Explore the GitHub Discussions forum for immich-app immich. Discuss code, ask questions & collaborate with the developer community.
GitHub
Issues · immich-app/immich
High performance self-hosted photo and video management solution. - Issues · immich-app/immich
Alex Tran
Alex Tran4mo ago
Hello, can you try remove the hardware accel, then bring the stack down then up again and try regenerating thumbnails?
mixu1308
mixu1308OP4mo ago
Unfortunately that doesn't solve it This is the logs right after I've uploaded 3 images
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset e4e192a3-2c06-491b-bc26-e8afd5dfacfd: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset ff4ad40e-51a3-47fb-b2f0-3f9efc54ea4a: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset 39a7e93a-e287-43a4-a358-9d3076ae5fbc: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset e4e192a3-2c06-491b-bc26-e8afd5dfacfd: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset 39a7e93a-e287-43a4-a358-9d3076ae5fbc: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset e4e192a3-2c06-491b-bc26-e8afd5dfacfd: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset 39a7e93a-e287-43a4-a358-9d3076ae5fbc: not found
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'thumbnailGeneration'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'metadataExtraction'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'videoConversion'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'faceDetection'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'facialRecognition'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'smartSearch'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'duplicateDetection'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'backgroundTask'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'storageTemplateMigration'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'migration'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'search'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'sidecar'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'library'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'notifications'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'backupDatabase'
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset e4e192a3-2c06-491b-bc26-e8afd5dfacfd: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset ff4ad40e-51a3-47fb-b2f0-3f9efc54ea4a: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset 39a7e93a-e287-43a4-a358-9d3076ae5fbc: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset e4e192a3-2c06-491b-bc26-e8afd5dfacfd: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset 39a7e93a-e287-43a4-a358-9d3076ae5fbc: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset e4e192a3-2c06-491b-bc26-e8afd5dfacfd: not found
[Nest] 7 - 01/21/2025, 7:41:21 PM WARN [Microservices:MediaService] Thumbnail generation failed for asset 39a7e93a-e287-43a4-a358-9d3076ae5fbc: not found
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'thumbnailGeneration'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'metadataExtraction'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'videoConversion'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'faceDetection'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'facialRecognition'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'smartSearch'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'duplicateDetection'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'backgroundTask'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'storageTemplateMigration'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'migration'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'search'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'sidecar'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'library'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'notifications'
[Nest] 17 - 01/21/2025, 7:41:35 PM WARN [Api:JobRepository~yr9faap5] Unable to set queue concurrency, worker not found: 'backupDatabase'
I've no regenerated the thumbnails in the jobs tab and that seems to work
Alex Tran
Alex Tran4mo ago
No description
Alex Tran
Alex Tran4mo ago
can you remove this part and restart the stack? docker compose down && docker compose up
mixu1308
mixu1308OP4mo ago
I use this for my reverse proxy, but I'll try it without 👍
Alex Tran
Alex Tran4mo ago
looks like it creates issues with the server cannot communicate with Redis
Mraedis
Mraedis4mo ago
You can use it for your proxy @mixu1308 but you need a proper internal network as well
mixu1308
mixu1308OP4mo ago
ah yes you're right, that fully solves it I use this so that in caddy I can address every container by their name, even when they're in different compose files, should I somehow pass the redis ip to the immich server? I'm not too sure what the proper way of doing this is
Alex Tran
Alex Tran4mo ago
usually you don't want to expose all the containers, for example database container is something you don't want to expose out side of the stack so typically each application will get binded to a port, and you reverse proxy back to the server IP + port for different application
mixu1308
mixu1308OP4mo ago
you make a good point, the only issue is that the docker IP's are dynamic from my understanding, so I can't put a container's IP in caddy and expect it not to change or do you mean I should have caddy route the host's IP + binded port?
Alex Tran
Alex Tran4mo ago
I think you have a misunderstanding here. For example your server is at 192.168.1.15 so on the server, you run multiple docker application let's say immich and paperngx immich is binded to port 2283, so you can access the app at http://192.168.1.15:2283 and paperngx is binded to port 8008, so you can access the app at http://192.168.1.15:8008 the server IP should be static so it will always be 192.168.1.15 you would reverse proxy immich.domain.com back to http://192.168.1.15:2283/ and paperngx.domain.com back to http://192.168.1.15:8008
mixu1308
mixu1308OP4mo ago
ah ok, yeah I've been using caddy to reverse proxy to each container's own IP using the docker DNS resolution I'll do it the way you recommend
Alex Tran
Alex Tran4mo ago
Got cha, exposing all containers will cause conflict because different application might use Redis as well and use the same defualt port
mixu1308
mixu1308OP4mo ago
Thank you very much for you time and your help! Really appreciate it!
Alex Tran
Alex Tran4mo ago
No problem! Enjoy!
mixu1308
mixu1308OP4mo ago
I was able to fix it as well by doing REDIS_HOSTNAME=immich_redis
Alex Tran
Alex Tran4mo ago
Great!

Did you find this page helpful?