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

unknown command 'MEMORY'? #1

Open
lurongjiang opened this issue Sep 16, 2019 · 2 comments
Open

unknown command 'MEMORY'? #1

lurongjiang opened this issue Sep 16, 2019 · 2 comments

Comments

@lurongjiang
Copy link

lurongjiang commented Sep 16, 2019

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
@ErebusBat
Copy link

@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?

@reneklacan
Copy link
Member

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

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

3 participants