Closed uhthomas closed 1 year ago
@samip5 Do you have much experience in this?
I was thinking maybe a bad Redis version, but this is the image I'm using redis:6.2.6-alpine
. Maybe I should try redis 7?
Not sure what I'm looking at here, but none of this looks familiar. The error is most likely not an immich bug, but related to however you are deploying it, which looks custom.
We are using Redis 6.2 for the official compose file.
We are using Redis 6.2 for the official compose file.
ah :(
Not sure what I'm looking at here, but none of this looks familiar. The error is most likely not an immich bug, but related to however you are deploying it, which looks custom.
It should just be standard redis/sentinel.
@samip5 Do you have much experience in this?
I don't sorry, but that sounds like an issue with how the config is encoded.
@uhthomas Could you please show us the base64 encoded redis sentinel config you're passing to immich in env? (I'm sorry, but I cannot read the cue things in your repo)
@samip5
I'm not quite sure exactly what you're looking for, but I hope this helps.
❯ k -n immich get deploy immich-server -ojson | jq '.spec.template.spec.containers[].env[] | select(.name | contains("REDIS"))'
{
"name": "REDIS_HOSTNAME",
"value": "rfs-redis"
}
{
"name": "REDIS_PORT",
"value": "26379"
}
❯ k -n immich get cm rfr-redis -ojson | jq '.data["redis.conf"]' -r
slaveof 127.0.0.1 6379
port 6379
tcp-keepalive 60
save 900 1
save 300 10
user pinger -@all +ping on >pingpass
❯ k -n immich get cm rfs-redis -ojson | jq '.data["sentinel.conf"]' -r
sentinel monitor mymaster 127.0.0.1 6379 2
sentinel down-after-milliseconds mymaster 1000
sentinel failover-timeout mymaster 3000
sentinel parallel-syncs mymaster 2
Strange https://github.com/OptimalBits/bull/issues/1026, I guess I should try to figure out why "eval" is missing.
@samip5
I'm not quite sure exactly what you're looking for, but I hope this helps.
❯ k -n immich get deploy immich-server -ojson | jq '.spec.template.spec.containers[].env[] | select(.name | contains("REDIS"))' { "name": "REDIS_HOSTNAME", "value": "rfs-redis" } { "name": "REDIS_PORT", "value": "26379" }
❯ k -n immich get cm rfr-redis -ojson | jq '.data["redis.conf"]' -r slaveof 127.0.0.1 6379 port 6379 tcp-keepalive 60 save 900 1 save 300 10 user pinger -@all +ping on >pingpass
❯ k -n immich get cm rfs-redis -ojson | jq '.data["sentinel.conf"]' -r sentinel monitor mymaster 127.0.0.1 6379 2 sentinel down-after-milliseconds mymaster 1000 sentinel failover-timeout mymaster 3000 sentinel parallel-syncs mymaster 2
That seems like it's not correct sentinel config for immich, as it's expecting a base64 encoded url for it in REDIS_URL env variable.
Please see https://github.com/immich-app/immich/blob/main/docker/example.env#L21L24
I don't think that's it.
It's expecting it to be normal redis.
To configure redis sentinel please use the REDIS_URL
env var.
Hi, @uhthomas you might be interested our hobbyist communify of people running Kubernetes at home, which you don't seem to be apart of yet.
Just following up, thank you so much for the help and apologies for my misunderstanding / lack of understanding with respect to redis and sentinels. The URL worked as expected.
Hi, @uhthomas you might be interested our hobbyist communify of people running Kubernetes at home, which you don't seem to be apart of yet.
Thanks! I'll take a look :)
The bug
Hi, I'm using redis and sentinel and Immich won't start.
The OS that Immich Server is running on
Kubernetes
Version of Immich Server
1.57.1
Version of Immich Mobile App
N/A
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
https://github.com/uhthomas/automata/tree/898f231a69cffdbff6d6e1d74bc4d3d0ed0441ba/k8s/unwind/immich