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

Quickstart "Error: Server closed the connection" for any command #1905

Closed
1 of 2 tasks
theronic opened this issue Nov 23, 2023 · 3 comments
Closed
1 of 2 tasks

Quickstart "Error: Server closed the connection" for any command #1905

theronic opened this issue Nov 23, 2023 · 3 comments
Labels
bug type bug

Comments

@theronic
Copy link

theronic commented Nov 23, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

Version

kvrocks version 2.6.0 (commit c0451df)

macOS Ventura 13.4 on Apple M2 Pro Macbook Pro 14-inch 2023
Kvrocks:

Minimal reproduce step

As per the docs:

docker run -it -p 6666:6666 apache/kvrocks

In a separate terminal:

redis-cli -p 6666
> GET foo

What did you expect to see?

Return nil or key value.

What did you see instead?

On docker terminal:

I20231123 11:59:40.362723     1 main.cc:334] kvrocks version 2.6.0 (commit c0451df0)
I20231123 11:59:40.410612     1 storage.cc:332] [storage] Success to load the data from disk: 16 ms
I20231123 11:59:40.413663     1 worker.cc:72] [worker] Listening on: 127.0.0.1:6666
I20231123 11:59:40.414007     1 worker.cc:72] [worker] Listening on: 127.0.0.1:6666
I20231123 11:59:40.414085     1 worker.cc:72] [worker] Listening on: 127.0.0.1:6666
I20231123 11:59:40.414157     1 worker.cc:72] [worker] Listening on: 127.0.0.1:6666
I20231123 11:59:40.414258     1 worker.cc:72] [worker] Listening on: 127.0.0.1:6666
I20231123 11:59:40.414347     1 worker.cc:72] [worker] Listening on: 127.0.0.1:6666
I20231123 11:59:40.414443     1 worker.cc:72] [worker] Listening on: 127.0.0.1:6666
I20231123 11:59:40.414533     1 worker.cc:72] [worker] Listening on: 127.0.0.1:6666
I20231123 11:59:40.414712     1 worker.cc:515] [worker] Thread #281473666143544 started
I20231123 11:59:40.414757     1 worker.cc:515] [worker] Thread #281473654420792 started
I20231123 11:59:40.414800     1 worker.cc:515] [worker] Thread #281473654244664 started
I20231123 11:59:40.414839     1 worker.cc:515] [worker] Thread #281473654068536 started
I20231123 11:59:40.414875     1 worker.cc:515] [worker] Thread #281473653892408 started
I20231123 11:59:40.414916     1 worker.cc:515] [worker] Thread #281473653716280 started
I20231123 11:59:40.414952     1 worker.cc:515] [worker] Thread #281473632924984 started
I20231123 11:59:40.414999     1 worker.cc:515] [worker] Thread #281473632748856 started
I20231123 11:59:40.415161     1 server.cc:209] [server] Ready to accept connections

In redis-cli terminal:

Error: Server closed the connection
not connected>

Anything Else?

Maybe I need to do some auth first, but the Quickstart guide does not specify this.

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@theronic theronic added the bug type bug label Nov 23, 2023
@git-hulk
Copy link
Member

Hi @theronic, thanks for your report.

It's a fixed bug in Docker image configuration file, you can workaround by overwriting the bind address:

docker run -it -p 6666:6666 apache/kvrocks:2.6.0 --bind 0.0.0.0

refer: #1851

@theronic
Copy link
Author

theronic commented Nov 23, 2023

Thanks, that works! I saw a different error though than is described in that issue, so that issue did not show up in my search. Closing.

Please update the docs :) If someone tries the Quickstart for the first-time and it doesn't work, immediately you think "oh oh - is this maintained?" which reduces chance of adoption in risk-averse companies.

@git-hulk
Copy link
Member

Please update the docs :) If someone tries the Quickstart for the first-time and it doesn't work, immediately you think "oh oh - is this maintained?" which reduces chance of adoption in risk-averse companies.

Sure, thanks for your kind suggestions.

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

No branches or pull requests

2 participants