Skip to content
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

Issue with redis cache server start and getting NOAUTH authentication error while running redis-cli commands. #251

Open
sandipsmarty opened this issue Jul 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sandipsmarty
Copy link

sandipsmarty commented Jul 8, 2024

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.

Screenshot 2024-07-08 at 8 37 48 PM Screenshot 2024-07-08 at 8 39 21 PM

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.

@sandipsmarty sandipsmarty added the bug Something isn't working label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant