首页 > 数据库 > 国内数据库 > Oceanbase卸载提示无权限
环境说明:
ob 324版本
操作系统为:redhat 7.6
部署方式为:1-1-1
[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 9 months ago 1.79GB
reg.docker.alibaba-inc.com/antman/ob-docker OB2277_OBP320_x86_20220429 7cc7f45f0f7e 11 months ago 3.28GB
reg.docker.alibaba-inc.com/oboms/oms-all-in-one feature_3.3.0 fc00b486eef8 12 months ago 3.86GB
influxdb 1.8 c15aefdd926b 2 years ago 307MB
[root@dbdriver t-oceanbase-antman]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
卸载ocp提示权限不对
验证配置文件密码:
[root@dbdriver t-oceanbase-antman]# more /root/t-oceanbase-antman/obcluster.conf | grep -i pass
############ 填写机器IP和 metaob 容器内的root/admin密码 / Edit Machine IP and Password Of root/admin ############
OBSERVER01_ROOTPASS='Root1234' # metaob容器使用,非宿主机账号,宿主机SSH信息请使用指定环境变量的方式,详见 install.sh -h
修改
[root@dbdriver t-oceanbase-antman]# sh install.sh -c 7
run install.sh with DEBUG=FALSE, INSTALL_STEPS= CLEAR_STEPS=7 CONFIG_FILE=/root/t-oceanbase-antman/obcluster.conf
[2023-03-29 10:01:06.283811] INFO [check conf file /root/t-oceanbase-antman/obcluster.conf format ...]
[2023-03-29 10:01:06.287171] INFO [conf file is upper case format.]
[2023-03-29 10:01:08.390705] INFO [start antman API service]
[2023-03-29 10:01:08.428938] INFO [****** SSH related environment varialbes is not set, will use below default values: ******]
[2023-03-29 10:01:08.431110] INFO [SSH_AUTH=password SSH_USER=root SSH_PORT=22 SSH_PASSWORD= SSH_KEY_FILE=/root/.ssh/id_rsa]
LB_MODE=none
[2023-03-29 10:01:08.660446] INFO [clear_step7: uninstalling ocp and remove docker, logfile: /root/t-oceanbase-antman/logs/uninstall_ocp.log]
Permission denied, please try again.
Permission denied, please try again.
Permission denied, please try again.
Permission denied, please try again.
Permission denied, please try again.
Permission denied, please try again.
Permission denied, please try again.
[2023-03-29 10:01:09.178686] ERROR [ssh 10.51.175.65 check error]
[2023-03-29 10:01:09.181348] ERROR [ANTMAN-312: ocp docker on 10.51.175.65 is NOT removed]
[2023-03-29 10:01:09.189972] ERROR [ANTMAN-314: ERROR occurred in uninstall_ocp, install.sh exit]
【
[2023-03-29 10:51:55.082147] INFO [SSH_AUTH=password SSH_USER=root SSH_PORT=22 SSH_PASSWORD= SSH_KEY_FILE=/root/.ssh/id_rsa]
LB_MODE=none
[2023-03-29 10:51:55.305897] INFO [clear_step7: uninstalling ocp and remove docker, logfile: /root/t-oceanbase-antman/logs/uninstall_ocp.log]
】
默认认证方式为输入密码,由于未配置SSH_PASSWORD变量引起,解决方案:
1、配置SSH_PASSWORD变量
export SSH_PASSWORD=Root1234
2、修改变量方式SSH_AUTH=pubkey
export SSH_AUTH=pubkey
注:生产上的操作请经过严格测试。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24585765/viewspace-2950303/ ,如需转载,请注明出处,否则将追究法律责任。