admin管理员组

文章数量:1443939

【YashanDB知识库】使用yasboot查看YashanDB status为unconnected,但是运行正常

问题现象

YashanDB运行正常,业务也可以正常连接使用,但是使用yasboot查看YashanDB status为unconnected

$ yasboot cluster status -c yashandb -d

hostid | node\_type | nodeid | pid | instance\_status | database\_status | database\_role | listen\_address | data\_path

---------------------------------------------------------------------------------------------------------------------------------------------------------------

host0001 | db | 1-1:1 | 140866 | unconnected | unconnected | - | 172.16.60.53:3688 | /ssd\_data/yasdb22\_volatile/yasdb\_data/db-1-1

----------+-----------+--------+--------+-----------------+-----------------+---------------+-------------------+----------------------------------------------

问题发生原因

运行YashanDB进程的用户不在YASDBA用户组中,未使用yasboot修改sys密码,而是在yasql中使用alter user sys identified by <password>修改了sys密码。

解决方法及规避方式

使用yasboot cluster password set -n <password> -c yashandb 修改密码即可解决

问题分析过程

查看yasagent.log,发现有如下异常:

2024-12-09 15:57:48 DEBUG [yashandb-1-1:1] yasdb.go:216 user no in YASDBA group, use passwd login ****用户不在YASDBA组中****

2024-12-09 15:57:48 DEBUG [yashandb-1-1:1] yasdb.go:241 get node '1-1:1' tcp driver, listen addr is '172.16.60.53:1688'

2024-12-09 15:57:48 ERROR [yashandb-1-1:1] yasdb.go:345 query failedYAS-02143 invalid username/password, login denied ****使用密码登录验证失败****

本文标签: YashanDB知识库使用yasboot查看YashanDB status为unconnected,但是运行正常