redismodule-rs icon indicating copy to clipboard operation
redismodule-rs copied to clipboard

Cnetos8 docker container and vm RedisJSON loadmodule failed

Open xiaolitongxue666 opened this issue 4 years ago • 2 comments

OS : Centos8

Process step: 1 - Clone RedisJSON 2 - Install rust tool 3 - Ind RedisJSON dir run " cargo build --release" success

# redis-server --loadmodule ./target/release/librejson.so
5477:C 26 Jul 2021 05:54:11.176 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
5477:C 26 Jul 2021 05:54:11.176 # Redis version=5.0.3, bits=64, commit=00000000, modified=0, pid=5477, just started
5477:C 26 Jul 2021 05:54:11.176 # Configuration loaded
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 5.0.3 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 5477
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

5477:M 26 Jul 2021 05:54:11.177 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
5477:M 26 Jul 2021 05:54:11.177 # Server initialized
5477:M 26 Jul 2021 05:54:11.178 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
5477:M 26 Jul 2021 05:54:11.178 * <ReJSON> Exported RedisJSON_V1 API
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/redis-module-0.21.0/src/raw.rs:558:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Aborted

I don't know why this happen, please give me some advise , thanks !

xiaolitongxue666 avatar Jul 26 '21 06:07 xiaolitongxue666

RedisJSON requires Redis 6+, it seems like you're running on an older version of Redis (5.0.3).

gkorland avatar Sep 15 '21 05:09 gkorland

RedisJSON requires Redis 6+, it seems like you're running on an older version of Redis (5.0.3).

I'm getting the same error with Redis 6.0.16.

simanacci avatar Jan 07 '24 22:01 simanacci