【 使用环境 】测试环境
【 OB or 其他组件 】
【 使用版本 】4.1
【问题描述】机房断电,导致数据库重启的时候卡住,ERROR 8001 (08004): Server is initializing
[admin@localhost ~]$ obd cluster restart dscpcolony -c oceanbase-ce
Get local repositories and plugins ok
Load cluster param plugin ok
Open ssh connection ok
Cluster status check ok
Search plugins ok
Load cluster param plugin ok
Check before start observer ok
Check before start obproxy ok
Check before start obagent ok
Check before start ocp-express ok
Start observer ok
observer program health check ok
Connect to observer ok
Start obproxy ok
obproxy program health check ok
Connect to obproxy ok
Start obagent ok
obagent program health check ok
Connect to Obagent ok
Start ocp-express x
[ERROR] 127.0.0.1: failed to connect meta db
[ERROR] ocp-express start failed
Wait for observer init \
[admin@localhost log]$ obclient -h127.0.0.1 -P2883 -umeta@ocp -potz5tWb1On
ERROR 2013 (HY000): Lost connection to MySQL server at ‘reading authorization packet’, system error: 11
[admin@localhost log]$ obclient -h127.0.0.1 -P2883 -umeta@ocp -potz5tWb1On
ERROR 2013 (HY000): Lost connection to MySQL server at ‘reading authorization packet’, system error: 11
[admin@localhost log]$ obclient -h127.0.0.1 -P2881 -umeta@ocp -potz5tWb1On
ERROR 8001 (08004): Server is initializing
message:“Access denied for user ‘proxyro’@‘xxx.xxx.xxx.xxx’ (using password: YES)”}
看着是proxyro@sys 连接的密码不正确。
看配置密码是HlRLi1Jj6N
你可以手动连接看下,是否正常。
mysql -h127.0.0.1 -uproxyro@sys -P2881 -pHlRLi1Jj6N -A (只能2881,不能带#集群名称)
[admin@localhost log]$ mysql -h127.0.0.1 -uproxyro@sys -P2881 -pHlRLi1Jj6N -A
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (42000): Access denied for user ‘proxyro’@‘xxx.xxx.xxx.xxx’ (using password: YES)