Failing to start Docker, connection to Valkey/Redis timed out
I just downloaded the latest release's
docker-compose.yml
file and tried to start Immich, but it just stays there trying to start while timing out on Redis:
This seems to be not new, but nowhere could I find any info, other than replacing Redis with Valkey, which is already being used in the latest release.
Am I doing something stupidly, horribly wrong, or is the release simply b0rked?
I am on Debian stable with docker-ce
and the compose plugin from Docker directly (5:28.1.1-1~debian.12~bookworm). compose.yml
and .env
file are exactly as available on Github.
Complete logs are attached.27 Replies
:wave: Hey @madduck,
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. :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.Try doing a
docker compose down
And a
Docker compose up
I tried that, but no change, @Tempest
What error are you getting / why isn't it starting?
Also, if checking checkbox #6 please confirm that you provide all information that it asks for
I've included everything above. It starts all containers, up until:
then it sits there for a few seconds, and then the Redis
ETIMEDOUT
errors start pouring in.
I unchecked 5,6,7 since I don't even get as far as the browser, or binding a socket. 😦So what's going on with the redis/valkey container? Why isn't it starting? There should be a log.
Providing .env and compose file would be beneficial as well
When the errors start pouring in, the containers are still "starting":
About compose and .env file: they are exactly as downloaded. Nothing has changed. Which is why I am so confused.
Redis logs are included. Nothing in the logs I can discern to be a problem:
How are you running this? What's the host os?
Debian stable with Docker CE
Docker version 28.1.1, build 4eba377
In an LXC?
No, on a proper VM
KVM
I am running
docker compose up
that is it.How much ram is available?
What's the filesystem?
Currently, 8Gb are allocated.
filesystem of the host in general is ext4, but the library is on btrfs
Which library?
UPLOAD_LOCATION=./library
Is the database on btrfs?
no, the database is on ext4
postgresql that is.
redis too
or well, I actually don't know where redis is.
it's a docker volume, right? so should be on ext4 as well
I believe so?
can you humor me and run
systemd-detect-virt
and share the output?Output is:
kvm
I just removed everything and redownloaded everything and same problem, complete typescript attached with logs etc.
did you purge downloaded images beforehand? (unlikely they're an issue, just figured it's worth trying?)
can you include
yeah, I did that yesterday too.
Here you go…
Port 2283 is now actually bound though. But the errors are all over
"The connection was reset" when trying to HTTP to that port.
After a while, workers are killed, and it starts from the beginning:
so now we have timeouts on redis and on postgres.
I suspect that the docker networking setup is broken.
I am suspecting a broken nftables integration on Debian. On it…
Yeah, the rule was wrong. As soon as I permit traffic on the bridge, it seems to work.
Sorry for the noise. This is a Docker problem, not even Debian.
so docker didn't rewrite your firewall to make it work? wild
It presumably does the right thing with iptables, but not (yet) with nftables. I am still researching.