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

[BUG] mongo-6.0 cluster connect error #5028

Closed
JashBook opened this issue Sep 6, 2023 · 0 comments · Fixed by #5029
Closed

[BUG] mongo-6.0 cluster connect error #5028

JashBook opened this issue Sep 6, 2023 · 0 comments · Fixed by #5029
Assignees
Labels
bug kind/bug Something isn't working
Milestone

Comments

@JashBook
Copy link
Collaborator

JashBook commented Sep 6, 2023

Describe the bug
mongo-6.0 cluster connect error:
Error: ENOENT: no such file or directory, open '/mongodb:/root:bplflm8m@mongo-zpnywm-mongodb-0.mongo-zpnywm-mongodb-headless.default.svc:27017/admin?replicaSet=mongo-zpnywm-mongodb'

kbcli version
Kubernetes: v1.23.15
KubeBlocks: 0.6.2-beta.3
kbcli: 0.6.2-beta.3

To Reproduce
Steps to reproduce the behavior:

  1. create cluster
kbcli cluster create  mongo-zpnywm --termination-policy=WipeOut  --cluster-definition=mongodb --cluster-version=mongodb-6.0 --set cpu=100m,memory=0.5Gi,replicas=1,storage=3Gi  --namespace default 
  1. See error
kbcli cluster connect mongo-zpnywm 
Connect to instance mongo-zpnywm-mongodb-0
Current Mongosh Log ID:	64f82889d02fc130a8985744
Connecting to:		mongodb://127.0.0.1:27017/mongosh?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.10.5
Using MongoDB:		6.0.9
Using Mongosh:		1.10.5

For mongosh info see: https://docs.mongodb.com/mongodb-shell/

Loading file: mongodb://root:bplflm8m@mongo-zpnywm-mongodb-0.mongo-zpnywm-mongodb-headless.default.svc:27017/admin?replicaSet=mongo-zpnywm-mongodb
Error: ENOENT: no such file or directory, open '/mongodb:/root:bplflm8m@mongo-zpnywm-mongodb-0.mongo-zpnywm-mongodb-headless.default.svc:27017/admin?replicaSet=mongo-zpnywm-mongodb'
command terminated with exit code 1

Expected behavior
mongo-6.0 cluster connect success .

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@JashBook JashBook added the kind/bug Something isn't working label Sep 6, 2023
@JashBook JashBook added this to the Release 0.7.0 milestone Sep 6, 2023
@xuriwuyun xuriwuyun linked a pull request Sep 6, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants