-
-
Notifications
You must be signed in to change notification settings - Fork 24
Description
I am using below configuration in .lando.yml file for redis with pantheon recipe.
cache:
type: redis:6
portforward: true
overrides:
command: 'docker-entrypoint.sh redis-server /usr/local/etc/redis/redis.conf --requirepass pantheon'
Getting below errors while running the following commands -
lando ssh -s cache -c "redis-server"
4627:C 08 Jul 2024 14:48:57.048 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
4627:C 08 Jul 2024 14:48:57.048 # Redis version=6.2.14, bits=64, commit=00000000, modified=0, pid=4627, just started
4627:C 08 Jul 2024 14:48:57.048 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
4627:M 08 Jul 2024 14:48:57.048 * monotonic clock: POSIX clock_gettime
4627:M 08 Jul 2024 14:48:57.048 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
4627:M 08 Jul 2024 14:48:57.048 # Failed listening on port 6379 (TCP), aborting.
lando ssh -s cache -c "redis-server /usr/local/etc/redis/redis.conf"
4633:C 08 Jul 2024 14:49:02.565 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
4633:C 08 Jul 2024 14:49:02.565 # Redis version=6.2.14, bits=64, commit=00000000, modified=0, pid=4633, just started
4633:C 08 Jul 2024 14:49:02.565 # Configuration loaded
4633:M 08 Jul 2024 14:49:02.565 * monotonic clock: POSIX clock_gettime
4633:M 08 Jul 2024 14:49:02.566 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
4633:M 08 Jul 2024 14:49:02.566 # Failed listening on port 6379 (TCP), aborting.
While running lando redis-cli it's going to redis server, but while running any redis-cli command we are getting an error NOAUTH Authentication required. This was supposed to be resolved a while ago with #147 but the issue still persists.
To debug further I have configured another redis server under services.
services:
dbcache:
type: redis:7
portforward: true
Now, when I try to start redis server inside dbcache container with a different port 6380 (as it was showing 6379: bind: Address already in use), it worked and also not asking authentication while running redis-cli commands.
Another observation with pantheon recipe redis version is always 6 which is getting installed under cache: service, changing the redis version and running lando rebuild seems not making any effect.