#immich_server throwing Redis errors

1 messages · Page 1 of 1 (latest)

turbid star
#

I was able to get immich set up on my Ubuntu 20 server using Docker. I left the defaults for the DB, but changed the upload location to an external mounted drive, and added that drive as a volume in Docker compose.
The initial import tasks were running smoothly.
At some point, the server was restarted. Since reconnecting the drive, I get this error repeating while trying to run "docker compose up"

immich_server            | Error: connect ETIMEDOUT
immich_server            |     at Socket.<anonymous> (/usr/src/app/node_modules/ioredis/built/Redis.js:170:41)
immich_server            |     at Object.onceWrapper (node:events:633:28)
immich_server            |     at Socket.emit (node:events:519:28)
immich_server            |     at Socket._onTimeout (node:net:591:8)
immich_server            |     at listOnTimeout (node:internal/timers:581:17)
immich_server            |     at process.processTimers (node:internal/timers:519:7) {
immich_server            |   errorno: 'ETIMEDOUT',
immich_server            |   code: 'ETIMEDOUT',
immich_server            |   syscall: 'connect'
immich_server            | }

The redis container seems to be running

CONTAINER ID   IMAGE                                                COMMAND                  CREATED          STATUS                             PORTS                                                                   NAMES
23e6c905b51e   redis:6.2-alpine                                     "docker-entrypoint.s…"   14 seconds ago   Up 14 seconds (health: starting)   6379/tcp                                                                immich_redis

Something probably worth noting is that after this started, I replaces the snap install of Docker with the official release.

lime thistleBOT
#

:wave: Hey @turbid star,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
  7. :ballot_box_with_check: I have 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)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

lime thistleBOT
noble fiber
#

Check the redis logs

turbid star
#

Nothing obvious there

1:C 20 Sep 2024 19:20:24.670 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 20 Sep 2024 19:20:24.670 # Redis version=6.2.14, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 20 Sep 2024 19:20:24.670 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 20 Sep 2024 19:20:24.671 * monotonic clock: POSIX clock_gettime
1:M 20 Sep 2024 19:20:24.682 * Running mode=standalone, port=6379.
1:M 20 Sep 2024 19:20:24.682 # Server initialized
1:M 20 Sep 2024 19:20:24.682 * Loading RDB produced by version 6.2.14
1:M 20 Sep 2024 19:20:24.683 * RDB age 1329 seconds
1:M 20 Sep 2024 19:20:24.683 * RDB memory usage when created 0.77 Mb
1:M 20 Sep 2024 19:20:24.683 # Done loading RDB, keys loaded: 0, keys expired: 0.
1:M 20 Sep 2024 19:20:24.683 * DB loaded from disk: 0.000 seconds
1:M 20 Sep 2024 19:20:24.683 * Ready to accept connections

#

Could it have something to do with the permissions on these dirs?

~/immich-app$ ll
total 28
drwxrwxr-x 3 mediabloke mediabloke 4096 Sep 20 18:57 ./
drwxr-xr-x 23 mediabloke mediabloke 4096 Sep 20 04:17 ../
-rw-rw-r-- 1 mediabloke mediabloke 3264 Sep 20 18:35 docker-compose.yml
-rw-rw-r-- 1 mediabloke mediabloke 951 Sep 20 18:57 .env
-rw-rw-r-- 1 mediabloke mediabloke 1191 Sep 12 15:48 hwaccel.ml.yml
-rw-rw-r-- 1 mediabloke mediabloke 1694 Sep 12 15:48 hwaccel.transcoding.yml
drwx------ 21 systemd-coredump root 4096 Sep 20 19:32 postgres/

turbid star
#

I'm all out of ideas. Is this a Redis issue or is this another issue being masked by a Redis issue?

turbid star
#

I was running Ubuntu 20 because I had initially tried this with an apple timecapsule. That didn't work (slow read/write speeds), so I'm now using a wired disk. I updated to Ubuntu 22 and the containers came right up again

sullen dust
#

Weird, but maybe docker being old?

turbid star
#

I doubt it. I pulled the latest CE Docker image. I haven't changed anything else (including permissions). I only updated to 22. No reason to update to 24 just yet

heady meteor
#

you pulled them from where? the default ubuntu repositories? cause those are old ^^
https://docs.docker.com/engine/install/ubuntu/

Docker Documentation

Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install Docker Engine on Ubuntu.