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

Unable to start redis with --loadmodule or redis.conf file #23

Open
dhairyashil opened this issue Oct 29, 2021 · 1 comment
Open

Unable to start redis with --loadmodule or redis.conf file #23

dhairyashil opened this issue Oct 29, 2021 · 1 comment

Comments

@dhairyashil
Copy link

dhairyashil commented Oct 29, 2021

I am getting this exception when I am trying to set password to my redis instance as stated in docs.
but I am getting below exception while running docker container.

1:C 29 Oct 2021 20:57:14.130 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 29 Oct 2021 20:57:14.130 # Redis version=6.2.3, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 29 Oct 2021 20:57:14.130 # Configuration loaded 1:M 29 Oct 2021 20:57:14.130 * monotonic clock: POSIX clock_gettime 1:M 29 Oct 2021 20:57:14.130 # Warning: Could not create server TCP listening socket ::1:6379: bind: Cannot assign requested address 1:M 29 Oct 2021 20:57:14.131 * Running mode=standalone, port=6379. 1:M 29 Oct 2021 20:57:14.131 # Server initialized 1:M 29 Oct 2021 20:57:14.131 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 1:M 29 Oct 2021 20:57:14.131 # Module /usr/lib/redis/modules/rebloom.so failed to load: /usr/lib/redis/modules/rebloom.so: cannot open shared object file: No such file or directory

@dactylroot
Copy link

dactylroot commented Nov 22, 2021

Update: I was also getting error when trying to use --requirepass or a redis.conf file. I was using docker-compose.

My issues:

  • I was using the line-breaks from the example within my docker-compose file. I needed to create a custom command: entry as a single line.
  • Passing "--" arguments results in an error "Fatal error, can't open config file '/data/redislabs/redismod': No such file or directory". I can avoid this by touch-ing an empty file at that location and creating the redislabs directory in my data directory.

I have not succeeded in using a custom redis.conf, but by the above two steps I am able to pass "--" arguments.

Here's my docker-compose.yml for example:

services:
  redis:
    image: redislabs/redismod
    container_name: redis
    volumes:
      - ./data:/data
    command: redislabs/redismod --requirepass ${REDIS_PASSWORD} --dir /data --loadmodule /usr/lib/redis/modules/redisgraph.so
    ports:
      - 6379:6379

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants