首页 > 数据库 > 国内数据库 > Oceanbase 安装OMS,提示认证失败
环境说明:
ob 324版本
操作系统为:redhat 7.6
部署方式为:1-1-1
配置oms提示认证失败
[root@dbdriver t-oceanbase-antman]# sh install.sh -i 9
run install.sh with DEBUG=FALSE, INSTALL_STEPS=9 CLEAR_STEPS= CONFIG_FILE=/root/t-oceanbase-antman/obcluster.conf
[2022-12-29 18:08:39.332395] INFO [check conf file /root/t-oceanbase-antman/obcluster.conf format ...]
[2022-12-29 18:08:39.336052] INFO [conf file is upper case format.]
[2022-12-29 18:08:41.436781] INFO [start antman API service]
[2022-12-29 18:08:41.474172] INFO [****** SSH related environment varialbes is not set, will use below default values: ******]
[2022-12-29 18:08:41.476344] INFO [SSH_AUTH=password SSH_USER=root SSH_PORT=22 SSH_PASSWORD= SSH_KEY_FILE=/root/.ssh/id_rsa]
LB_MODE=none
Permission denied, please try again.
[2022-12-29 18:08:41.791202] ERROR [step9: ssh authorization to failed, Please check SSH affinity environment varialbes.]
--验证ssh认证
[root@dbdriver t-oceanbase-antman]# sh install.sh -i 1
run install.sh with DEBUG=FALSE, INSTALL_STEPS=1 CLEAR_STEPS= CONFIG_FILE=/root/t-oceanbase-antman/obcluster.conf
[2022-12-30 09:29:27.042601] INFO [check conf file /root/t-oceanbase-antman/obcluster.conf format ...]
[2022-12-30 09:29:27.045978] INFO [conf file is upper case format.]
[2022-12-30 09:29:29.149664] INFO [start antman API service]
[2022-12-30 09:29:29.188373] INFO [****** SSH related environment varialbes is not set, will use below default values: ******]
[2022-12-30 09:29:29.190799] INFO [SSH_AUTH=password SSH_USER=root SSH_PORT=22 SSH_PASSWORD= SSH_KEY_FILE=/root/.ssh/id_rsa]
LB_MODE=none
[2022-12-30 09:29:29.417411] INFO [step1: check ssh authorization, logfile: /root/t-oceanbase-antman/logs/ssh_auth.log]
Permission denied, please try again.
[2022-12-30 09:29:29.494232] ERROR [step1: ssh authorization to 10.51.175.65 failed, Please check SSH affinity environment varialbes and execute "install.sh -h" for more details.]
[2022-12-30 09:29:29.497134] ERROR [For example:]
[2022-12-30 09:29:29.500057] ERROR ["export SSH_PASSWORD=123456; sh install.sh -i 1-8" will connect remote server with user "root" and password "123123"]
[2022-12-30 09:29:29.502993] ERROR ["export SSH_AUTH=pubkey; sh install.sh -i 1-8" will connect remote server with user "root" and pravate key "/root/.ssh/id_rsa"]
--重新配置ssh认证
[root@dbdriver t-oceanbase-antman]# export SSH_PASSWORD=Root1234; sh install.sh -i 1
run install.sh with DEBUG=FALSE, INSTALL_STEPS=1 CLEAR_STEPS= CONFIG_FILE=/root/t-oceanbase-antman/obcluster.conf
[2022-12-30 09:53:27.484436] INFO [check conf file /root/t-oceanbase-antman/obcluster.conf format ...]
[2022-12-30 09:53:27.487830] INFO [conf file is upper case format.]
[2022-12-30 09:53:29.591060] INFO [start antman API service]
[2022-12-30 09:53:29.630713] INFO [SSH_AUTH=password SSH_USER=root SSH_PORT=22 SSH_PASSWORD=Ro*** SSH_KEY_FILE=/root/.ssh/id_rsa]
LB_MODE=none
[2022-12-30 09:53:29.859514] INFO [step1: check ssh authorization, logfile: /root/t-oceanbase-antman/logs/ssh_auth.log]
[2022-12-30 09:53:30.013837] INFO [step1: ssh authorization done]
--开始安装oms
[root@dbdriver t-oceanbase-antman]# sh install.sh -i 9
run install.sh with DEBUG=FALSE, INSTALL_STEPS=9 CLEAR_STEPS= CONFIG_FILE=/root/t-oceanbase-antman/obcluster.conf
[2022-12-30 09:53:41.387042] INFO [check conf file /root/t-oceanbase-antman/obcluster.conf format ...]
[2022-12-30 09:53:41.390167] INFO [conf file is upper case format.]
[2022-12-30 09:53:43.493519] INFO [start antman API service]
[2022-12-30 09:53:43.532138] INFO [SSH_AUTH=password SSH_USER=root SSH_PORT=22 SSH_PASSWORD=Ro*** SSH_KEY_FILE=/root/.ssh/id_rsa]
LB_MODE=none
[2022-12-30 09:53:43.917597] INFO [step9: check whether OMS port 9000 is in use or not on 10.51.175.65]
[2022-12-30 09:53:44.114464] INFO [step9: OMS port 9000 is idle on 10.51.175.65]
[2022-12-30 09:53:44.117185] INFO [step9: check whether OMS port 9001 is in use or not on 10.51.175.65]
[2022-12-30 09:53:44.312773] INFO [step9: OMS port 9001 is idle on 10.51.175.65]
......
# 【结束】全部初始化步骤执行成功
[2022-12-30 09:58:34.381963] INFO [restart container: docker restart oms]
oms
[2022-12-30 09:59:06.306511] INFO [install_oms.sh finished and reg.docker.alibaba-inc.com/oboms/oms-all-in-one:feature_3.3.0 started on 10.51.175.65]
[2022-12-30 09:59:06.309699] INFO [oms docker on 10.51.175.65 is started]
[2022-12-30 09:59:06.319434] INFO [oms installation on all hosts done]
[2022-12-30 09:59:06.322792] INFO [step9: installation of oms done]
[root@dbdriver t-oceanbase-antman]#
[root@dbdriver t-oceanbase-antman]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
reg.docker.alibaba-inc.com/oceanbase/ocp-all-in-one 3.3.1-20220611092624 b819fe365b31 6 months ago 1.79GB
reg.docker.alibaba-inc.com/antman/ob-docker OB2277_OBP320_x86_20220429 7cc7f45f0f7e 8 months ago 3.28GB
reg.docker.alibaba-inc.com/oboms/oms-all-in-one feature_3.3.0 fc00b486eef8 9 months ago 3.86GB
influxdb
注:生产上的操作请经过严格测试。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24585765/viewspace-2950302/ ,如需转载,请注明出处,否则将追究法律责任。