-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis authentication error #468
Comments
For what it's worth, this is a redacted version of my compose file with homelab os template variables filled in: ---
version: '3'
networks:
traefik_network:
external:
name: homelabos_traefik
zulip:
services:
database:
image: zulip/zulip-postgresql:14
restart: unless-stopped
networks:
- zulip
environment:
POSTGRES_DB: 'zulip'
POSTGRES_USER: 'zulip'
POSTGRES_PASSWORD: "<postgres-password>"
volumes:
- '/var/homelabos/zulip/postgresql:/var/lib/postgresql/data:rw'
memcached:
image: 'memcached:alpine'
networks:
- zulip
restart: unless-stopped
command:
- "sh"
- "-euc"
- |
echo 'mech_list: plain' > "$$SASL_CONF_PATH"
echo "zulip@$$HOSTNAME:$$MEMCACHED_PASSWORD" > "$$MEMCACHED_SASL_PWDB"
echo "zulip@localhost:$$MEMCACHED_PASSWORD" >> "$$MEMCACHED_SASL_PWDB"
exec memcached -S
environment:
SASL_CONF_PATH: "/home/memcache/memcached.conf"
MEMCACHED_SASL_PWDB: "/home/memcache/memcached-sasl-db"
MEMCACHED_PASSWORD: "<memcached-password>"
rabbitmq:
image: rabbitmq:3.12.14
networks:
- zulip
hostname: zulip-rabbit
restart: unless-stopped
environment:
RABBITMQ_DEFAULT_USER: 'zulip'
RABBITMQ_DEFAULT_PASS: "<rabbitmq-password>"
volumes:
- '/var/homelabos/zulip/rabbitmq:/var/lib/rabbitmq:rw'
redis:
image: "redis:alpine"
networks:
- zulip
volumes:
- '/var/homelabos/zulip/redis:/var/lib/redis:rw'
command:
- "sh"
- "-euc"
- |
echo "requirepass '$$REDIS_PASSWORD'" > /etc/redis.conf
exec redis-server /etc/redis.conf
environment:
REDIS_PASSWORD: "<redis-password>"
zulip:
image: zulip/docker-zulip:9.2-0
networks:
- traefik_network
- zulip
environment:
DB_HOST: 'database'
DB_HOST_PORT: '5432'
DB_USER: 'zulip'
SSL_CERTIFICATE_GENERATION: 'self-signed'
DISABLE_HTTPS: 'True'
SETTING_MEMCACHED_LOCATION: 'memcached:11211'
SETTING_RABBITMQ_HOST: 'rabbitmq'
SETTING_REDIS_HOST: 'redis'
SECRETS_email_password: '123456789'
SECRETS_rabbitmq_password: "<rabbitmq-password>"
SECRETS_postgres_password: "<postgres-password>"
SECRETS_memcached_password: "<memcached-password>"
SECRETS_redis_password: "<redis-password>"
SECRETS_secret_key: "<secrets-key>"
SETTING_EXTERNAL_HOST: 'zulip.homelab.<my-domain>.com'
SETTING_ZULIP_ADMINISTRATOR: '[email protected]'
SETTING_EMAIL_HOST: '' # e.g. smtp.example.com
SETTING_EMAIL_HOST_USER: '[email protected]'
SETTING_EMAIL_PORT: '587'
# It seems that the email server needs to use ssl or tls and can't be used without it
SETTING_EMAIL_USE_SSL: 'False'
SETTING_EMAIL_USE_TLS: 'True'
ZULIP_AUTH_BACKENDS: 'EmailAuthBackend'
# Uncomment this when configuring the mobile push notifications service
# SETTING_PUSH_NOTIFICATION_BOUNCER_URL: 'https://push.zulipchat.com'
volumes:
- '/var/homelabos/zulip/zulip:/data:rw'
ulimits:
nofile:
soft: 40000
hard: 50000
labels:
- "traefik.http.services.zulip.loadbalancer.server.scheme=http"
- "traefik.http.services.zulip.loadbalancer.server.port=80"
- "traefik.enable=true"
- "traefik.docker.network=homelabos_traefik"
- "traefik.http.routers.zulip-http.service=zulip"
- "traefik.http.routers.zulip-http.rule=Host(`zulip.homelab.<my-domain>.com`)"
- "traefik.http.routers.zulip-http.entrypoints=http"
- "traefik.http.routers.zulip-http.middlewares=customFrameHomelab@file"
- "traefik.http.routers.zulip.service=zulip"
- "traefik.http.routers.zulip.rule=Host(`zulip.homelab.<my-domain>.com`)"
- "traefik.http.routers.zulip.entrypoints=https"
- "traefik.http.routers.zulip.middlewares=customFrameHomelab@file"
- "traefik.http.routers.zulip.tls=true"
- "traefik.http.routers.zulip.tls.certresolver=http" |
Have you checked whether the password you set is being correctly written into |
I was able to perform docker-zulip/docker-compose.yml Line 44 in f445fc5
I was then able to also drop to a shell in the zulip container before it died and print out the |
Puzzling. redis/redis#13437 and my understanding of the Redis configuration system suggests that Redis should really be using the password there... Is it possible the password contains characters that redis can't parse? Maybe worth checking the logs there. |
The password that I generated is all alpha-numeric. I ended up opening a shell into the redis container with
So it seems like the password is fine for redis. I feel like my compose file is the same as the one in this repo. Is there something else people do to deploy using the compose file in this repo? I didn't see any logs written anywhere. I looked in |
I'm pretty sure the compose file here just works. Very puzzling. Well, a few thoughts:
From a Zulip perspective, I think our fix is going to be something like #272 for making the secret generation/substitution automated. |
Interesting, |
We did merge some PRs upgrading dependency versions not long ago, so maybe it's worth someone else testing that |
I did basically copy the docker compose file from this repo and just added the HomelabOS stuff, which is really just the templated fields and traefik labels. I posted my file earlier but it doesn't differ much beyond that. Maybe I'll try a simpler version outside of the HomelabOS environment. Thanks for your help, I'll report back here. |
After running
docker compose up
I receive this error:I have set all of the passwords.
I do see this earlier in the log though:
I have copied this almost verbatim over to run in HomeLabOs. The only difference really is that I'm mapping the volumes to specific local directories and I've added traefik labels.
The text was updated successfully, but these errors were encountered: