Jobs are hanging
As mentioned in the title, Immich jobs are hanging. Before version 2.2.1 (on 2.0.0), restarting the server would fix the issue — every job that was previously stuck would start running again. However, after updating to 2.2.1, the "Generate Thumbnails" job is hanging.
When I first spun up the containers, everything worked perfectly. Now, under Admin → Generate Thumbnails, it shows 80K photos waiting, but only about 7–8 actually need thumbnails after being auto-uploaded from mobile.
Here is my docker-compose:
I am not sure what to paste from logs exactly. I don't see any problem from it.
24 Replies
:wave: Hey @MrTheNikkoo,
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
Checklist
I have...
1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: read applicable release notes.
3. :ballot_box_with_check: reviewed the FAQs for known issues.
4. :ballot_box_with_check: reviewed Github for known issues.
5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: uploaded the relevant information (see below).
7. :ballot_box_with_check: 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.
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:I haven’t look at the logs since I am on my phone. But a quick glance at the compose, I believe that it related to your network setting in the compose file, so that Redis isn’t able to communicate with the server and microservice
Try the default compose file and slowly add back other stuffs to identify where would be the problem
You also don't want to have immich-server depend on immich-machine-learning
This is my logs from Redis:
@Mraedis removed that dependency, thx
The redis logs won't show any connection issues because it doesn't reach out
immich-server will be trying to contact redis and it can't find it
There is no way to tell where to find redis in immich-server, is it?
Like it's for ML
You can check out https://docs.immich.app/install/environment-variables/ but it's way easier to NOT try and finagle with the network settings
If you need a proxy network connected, you can add that on top of the default network, which is needed for communicaton
I want this network settings cus I want to reserve IPs for my reverse proxy :/
Once I reloaded docker service and I had to manually set every ip once more lol
Where is your server port mapping btw?
Are you using the docker dynamic IPs for your proxy? That sounds silly
I use nginx proxy manager and have all these containers under the same network
Yeah that also is a dumb idea honestly because if you have any hostname duplication it will cause weird things
For instance, any other project also running a redis container
Well, I am still learning soo..
Of course I didn't say YOU were dumb 😛
Immich server doesn't complain about redis server not found or something ?: (
I have added
REDIS_URL=http://172.75.0.14, reloaded server but still same
ah
my bad
it was ioredis://172.75.0.14I think if you have the "normal" compose way and don't mess with the proxy settings you can connect to other containers simply through their container name, provided they have open ports
So for NPM you'd connect to
http://immich-server:2283
or immich_server ... I always forget which one it isOmg yeah
that's correct
hell.. why I didn't think about it
Thanks
Before you thank me, make sure it works first 😄
I will remove network config from compose and change it in nmp.
Hell yeah.. you were right... xD
I put http://immich-server:2283 and it just works
Do the jobs still hang?
Also, this 80K generate thumbnails job cleared. However, thumbnails still not generated
I will upload a image now and lets see
Do "missing" (or worst case "all") to get it going again
Redis container contains the queue but when it's reset nothing re-queues
Ok, so.. I just reloaded all of these containers. Now, it's running well. However, for 5-6 images still no thumbnails (the photos before all these fixes). But, it seems to be working now. All good!
Thank you guys
This thread has been closed. To re-open, use the button below.