obd启动集群,遇到异常[2024-04-16 14:23:58.034] [INFO] [ERROR] 192.168.0.51: failed to connect meta db
[2024-04-16 14:23:58.034] [INFO]
[2024-04-16 14:23:58.035] [DEBUG] - sub start ref count to 0
[2024-04-16 14:23:58.035] [DEBUG] - export start
[2024-04-16 14:23:58.035] [ERROR] ocp-express start failed
[2024-04-16 14:23:58.035] [DEBUG] - Call oceanbase-ce-py_script_display-3.1.0 for oceanbase-ce-4.1.0.0-101010022023051821.el7-21271468e0dee7aaf3d4eff4c4bf5e07421ef6fe
[2024-04-16 14:23:58.035] [DEBUG] - import display
[2024-04-16 14:23:58.037] [DEBUG] - add display ref count to 1
[2024-04-16 14:23:58.038] [INFO] Wait for observer init
[2024-04-16 14:23:58.039] [DEBUG] -- execute sql: select from oceanbase.__all_server. args: None
[2024-04-16 14:23:58.041] [DEBUG] -- OBD-5000: select from oceanbase.all_server execute failed
[2024-04-16 14:23:58.042] [ERROR] Traceback (most recent call last):
[2024-04-16 14:23:58.042] [ERROR] File "core.py", line 1574, in start_cluster
[2024-04-16 14:23:58.042] [ERROR] File "core.py", line 1695, in _start_cluster
[2024-04-16 14:23:58.043] [ERROR] File "core.py", line 184, in call_plugin
[2024-04-16 14:23:58.043] [ERROR] File "_plugin.py", line 323, in call
[2024-04-16 14:23:58.043] [ERROR] File "_plugin.py", line 285, in _new_func
[2024-04-16 14:23:58.043] [ERROR] File "/home/oceanbase/.obd/plugins/oceanbase-ce/3.1.0/display.py", line 37, in display
[2024-04-16 14:23:58.043] [ERROR] servers = cursor.fetchall('select * from oceanbase.all_server', raise_exception=True, exc_level='verbose')
[2024-04-16 14:23:58.043] [ERROR] File "_stdio.py", line 885, in func_wrapper
[2024-04-16 14:23:58.043] [ERROR] File "/home/oceanbase/.obd/plugins/oceanbase-ce/3.1.0/connect.py", line 108, in fetchall
[2024-04-16 14:23:58.043] [ERROR] return self.execute(sql, args=args, execute_func='fetchall', raise_exception=raise_exception, exc_level=exc_level, stdio=stdio)
[2024-04-16 14:23:58.043] [ERROR] File "_stdio.py", line 885, in func_wrapper
[2024-04-16 14:23:58.043] [ERROR] File "/home/oceanbase/.obd/plugins/oceanbase-ce/3.1.0/connect.py", line 91, in execute
[2024-04-16 14:23:58.043] [ERROR] self.cursor.execute(sql, args)
[2024-04-16 14:23:58.043] [ERROR] File "/home/oceanbase/.oceanbase-all-in-one/obd/usr/obd/lib/site-packages/pymysql/cursors.py", line 148, in execute
[2024-04-16 14:23:58.043] [ERROR] result = self._query(query)
[2024-04-16 14:23:58.043] [ERROR] File "/home/oceanbase/.oceanbase-all-in-one/obd/usr/obd/lib/site-packages/pymysql/cursors.py", line 310, in _query
[2024-04-16 14:23:58.043] [ERROR] conn.query(q)
[2024-04-16 14:23:58.043] [ERROR] File "/home/oceanbase/.oceanbase-all-in-one/obd/usr/obd/lib/site-packages/pymysql/connections.py", line 548, in query
[2024-04-16 14:23:58.043] [ERROR] self._affected_rows = self._read_query_result(unbuffered=unbuffered)
[2024-04-16 14:23:58.043] [ERROR] File "/home/oceanbase/.oceanbase-all-in-one/obd/usr/obd/lib/site-packages/pymysql/connections.py", line 775, in _read_query_result
[2024-04-16 14:23:58.043] [ERROR] result.read()
[2024-04-16 14:23:58.043] [ERROR] File "/home/oceanbase/.oceanbase-all-in-one/obd/usr/obd/lib/site-packages/pymysql/connections.py", line 1156, in read
[2024-04-16 14:23:58.043] [ERROR] first_packet = self.connection._read_packet()
[2024-04-16 14:23:58.043] [ERROR] File "/home/oceanbase/.oceanbase-all-in-one/obd/usr/obd/lib/site-packages/pymysql/connections.py", line 725, in _read_packet
[2024-04-16 14:23:58.043] [ERROR] packet.raise_for_error()
[2024-04-16 14:23:58.043] [ERROR] File "/home/oceanbase/.oceanbase-all-in-one/obd/usr/obd/lib/site-packages/pymysql/protocol.py", line 221, in raise_for_error
[2024-04-16 14:23:58.044] [ERROR] err.raise_mysql_exception(self._data)
[2024-04-16 14:23:58.044] [ERROR] File "/home/oceanbase/.oceanbase-all-in-one/obd/usr/obd/lib/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
[2024-04-16 14:23:58.044] [ERROR] raise errorclass(errno, errval)
[2024-04-16 14:23:58.044] [ERROR] pymysql.err.ProgrammingError: (1146, "Table 'oceanbase.__all_server' doesn't exist")
这是怎么回事
配置文件看下。 或者试下这种方式 https://ask.oceanbase.com/t/topic/35603652/3 —此回答来自钉群“[社区]技术答疑群OceanBase”
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。