obd部署单节点集群出现obd-1013

【 使用环境 】测试环境
【 OB or 其他组件 】OB
【 使用版本 】社区版
【问题描述】obd部署单节点集群出现obd-1013
【复现路径】
【问题现象及影响】
[2023-05-07 23:47:53.629] [INFO] Open ssh connection
[2023-05-07 23:47:53.663] [ERROR] Traceback (most recent call last):
[2023-05-07 23:47:53.664] [ERROR] File “core.py”, line 1376, in deploy_cluster
[2023-05-07 23:47:53.664] [ERROR] File “core.py”, line 1417, in _deploy_cluster
[2023-05-07 23:47:53.664] [ERROR] File “core.py”, line 244, in get_clients
[2023-05-07 23:47:53.664] [ERROR] File “core.py”, line 263, in get_clients_with_connect_status
[2023-05-07 23:47:53.664] [ERROR] File “core.py”, line 284, in ssh_clients_connect
[2023-05-07 23:47:53.664] [ERROR] File “_stdio.py”, line 865, in func_wrapper
[2023-05-07 23:47:53.664] [ERROR] File “ssh.py”, line 304, in connect
[2023-05-07 23:47:53.664] [ERROR] File “_stdio.py”, line 865, in func_wrapper
[2023-05-07 23:47:53.664] [ERROR] File “ssh.py”, line 269, in _login
[2023-05-07 23:47:53.664] [ERROR] File “paramiko/client.py”, line 435, in connect
[2023-05-07 23:47:53.664] [ERROR] File “paramiko/client.py”, line 767, in _auth
[2023-05-07 23:47:53.665] [ERROR] paramiko.ssh_exception.SSHException: No authentication methods available
[2023-05-07 23:47:53.665] [ERROR]
[2023-05-07 23:47:53.665] [CRITICAL] [ERROR] OBD-1013: admin@192.168.100.30 connect failed: No authentication methods available
[2023-05-07 23:47:53.772] [INFO] [ERROR] OBD-1013: admin@192.168.100.30 connect failed: No authentication methods available

1 个赞

看下配置文件部分,是不是把 user 下面对应的代码块注释掉了?

image
这一块 注释去掉。 或者 ssh 测试下 22端口 和admin账户密码

是注释掉了,但是这块不是需要远程登录的时候才需要开启吗?后面我还是开启尝试了一下:
image

账号密码和端口都没有问题,注释去掉依旧报错

你配置配置文件从哪里来的,单节点不需要做ssh操作,不需要输入用户名和密码 。
参考文章:
OceanBase 社区

单节点ip 直接写成127.0.0.1试试

https://github.com/oceanbase/obdeploy/blob/master/example/mini-local-example.yaml
ceanbase-ce:
  servers:
    # Please don't use hostname, only IP can be supported
    - 127.0.0.1
  global:
    #  The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
    home_path: /root/observer //修改自己存储路径
    # The directory for data storage. The default value is $home_path/store.
    data_dir: /data/observer/data //修改自己存储路径
    # The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
    redo_dir: /root/observer/redo //修改自己存储路径
     # please set memory limit to a suitable value which is matching resource. 
    memory_limit: 4G # The maximum running memory for an observer //observer进程占用内存,设置设置4G,因为新增租户增加到5G,在后续压测中还是内存提示租户内存不足,建议为至少6G。
    system_memory: 1G # The reserved system memory. system_memory is reserved for genera

OK,感谢,更改之后可以安装的,我的配置文件在这里取的:https://github.com/oceanbase/obdeploy/blob/master/example/mini-single-example.yaml。
再问下,如果我还是需要这如下配置,我应该如何调整?
servers:
# Please don’t use hostname, only IP can be supported
- 192.168.100.30

配置 192.168.100.30和应该没问题。这个没部署过。是不是网卡名字不对应,有的网卡名字不一定是eht0

 # if set severs as "127.0.0.1", please set devname as "lo"
    # if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
    devname: eth0

我的操作系统时候Red Hat 7.6,网卡就是enp0s17

配置文件的global模块里增加这个参数
devname: enp0s17

【 使用环境 】测试环境
【系统版本】Linux version 4.18.0-305.an8.x86_64 (mockbuild@anolis-build-01.openanolis.cn) (gcc version 8.4.1 20200928 (Anolis 8.4.1-1.0.1) (GCC)) #1 SMP Sun Jun 20 14:13:18 CST 2021
【 OB or 其他组件 】OB
【 使用版本 】ob-deploy-2.5.0-2.el8.x86_64、observer- 4.2.1.1

【问题】

【尝试处理方法】


user:
   username: 当前用户
   password: 当前用户密码
#   key_file: your ssh-key file path if need
#   port: your ssh port, default 22
#   timeout: ssh connection timeout (second), default 30
oceanbase-ce:
  servers:
    # Please don't use hostname, only IP can be supported
    - 当前ip地址
  global:
    # The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
    home_path: 当前observer家目录
    # The directory for data storage. The default value is $home_path/store.
    # data_dir: /data
    # The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
    # redo_dir: /redo
    # Starting from observer version 4.2, the network selection for the observer is based on the 'local_ip' parameter, and the 'devname' parameter is no longer mandatory.
    # If the 'local_ip' parameter is set, the observer will first use this parameter for the configuration, regardless of the 'devname' parameter.
    # If only the 'devname' parameter is set, the observer will use the 'devname' parameter for the configuration.
    # If neither the 'devname' nor the 'local_ip' parameters are set, the 'local_ip' parameter will be automatically assigned the IP address configured above.
    devname: 当前网卡设备名称

【验证】

可以看下 obdeploy/example/mini-local-example.yaml at master · oceanbase/obdeploy · GitHub配置文件。
修改下配置文件看看。
单节点也可以试下这种方式: OBD DEMO 方式部署

1 个赞