简体   繁体   English

kube-arangodb:无法与 `arangosh` 连接

[英]kube-arangodb: Can not connect with `arangosh`

I am using arango-single-server on minikube.我在 minikube 上使用arango-single-server Installed using kubectl by following: https://www.arangodb.com/docs/stable/tutorials-kubernetes.html通过以下方式使用kubectl安装: https://www.arangodb.com/docs/stable/tutorials-kubernetes.html

Following the error message:在错误消息之后:

➜ kubectl exec -it arango-single-server-sngl-d0leq3in-d9649f -- arangosh --server.endpoint "tcp://localhost:8529" --server.database "_system" 
Defaulted container "server" out of: server, init-lifecycle (init), uuid (init)
Please specify a password: 

                                       _     
  __ _ _ __ __ _ _ __   __ _  ___  ___| |__  
 / _` | '__/ _` | '_ \ / _` |/ _ \/ __| '_ \ 
| (_| | | | (_| | | | | (_| | (_) \__ \ | | |
 \__,_|_|  \__,_|_| |_|\__, |\___/|___/_| |_|
                       |___/                 

arangosh (ArangoDB 3.9.3 [linux] 64bit, using jemalloc, build tags/v3.9.3-0-gb9cd8359a1a, VPack 0.1.35, RocksDB 6.27.0, ICU 64.2, V8 7.9.317, OpenSSL 1.1.1q  5 Jul 2022)
Copyright (c) ArangoDB GmbH

Command-line history will be persisted when the shell is exited. You can use `--console.history false` to turn this off
Could not connect to endpoint 'tcp://localhost:8529', database: '_system', username: 'root'
Error message: 'Connection closed'

localhost:8529@_system> 

following the result of netstat;根据 netstat 的结果;

➜  kubectl exec -it arango-single-server-sngl-d0leq3in-d9649f -- netstat -a                                                                    
Defaulted container "server" out of: server, init-lifecycle (init), uuid (init)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       
tcp        0      0 localhost:56568         localhost:8529          ESTABLISHED 
tcp        0      0 :::8529                 :::*                    LISTEN      
tcp        0      0 localhost:8529          localhost:56568         ESTABLISHED 
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  3      [ ]         DGRAM                    3845565 
unix  3      [ ]         DGRAM                    3845564 

Any idea, what is the issue?任何想法,有什么问题?

I can access the gui interface.我可以访问gui界面。

It works by putting --server.endpoint "https://localhost:8529" or --server.endpoint "http+ssl://localhost:8529" instead of --server.endpoint "tcp://localhost:8529"它通过放置--server.endpoint "https://localhost:8529"--server.endpoint "http+ssl://localhost:8529"而不是--server.endpoint "tcp://localhost:8529" " 来工作--server.endpoint "tcp://localhost:8529"

I got help from https://www.arangodb.com/docs/stable/programs-arangosh-examples.html我从https://www.arangodb.com/docs/stable/programs-arangosh-examples.html得到帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM