redis-analyzer icon indicating copy to clipboard operation
redis-analyzer copied to clipboard

unknown command 'MEMORY'?

Open lurongjiang opened this issue 5 years ago • 2 comments

running the the command:

redis-analyzer -u 192.168.244.141:6379/0 -d 1

occur error:

thread 'main' panicked at 'memory usage command: An error was signalled by the server: unknown command 'MEMORY'', src/libcore/result.rs:999:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

then I set RUST_BACKTRACE=1 execute command cargo run get the following message:

error: could not find `Cargo.toml` in 'xxx/.cargo` or any parent directory

lurongjiang avatar Sep 16 '19 08:09 lurongjiang

@lurongjiang,

The error unknown command 'MEMORY' suggests that the MEMORY USAGE command isn't available in your redis instance.

By chance are you running a version < 4.0.0 which is when the command was added.

@reneklacan what do you think about adding a version check?

ErebusBat avatar Sep 17 '19 11:09 ErebusBat

By chance are you running a version < 4.0.0 which is when the command was added.

I think that's definitely the case

@reneklacan what do you think about adding a version check?

Great idea

reneklacan avatar Sep 25 '19 16:09 reneklacan