【 使用环境 】生产环境 or 测试环境
测试环境
【 OB or 其他组件 】
OB
【 使用版本 】
el7
【问题描述】清晰明确描述问题
正在部署 obproxy-ce: display finished
部署日志
install oceanbase-ce-4.2.1.9 for local ok
install obproxy-ce-4.3.1.0 for local ok
±-------------------------------------------------------------------------------------------+
| Packages |
±-------------±--------±-----------------------±-----------------------------------------+
| Repository | Version | Release | Md5 |
±-------------±--------±-----------------------±-----------------------------------------+
| oceanbase-ce | 4.2.1.9 | 109010012024101414.el7 | 67b8a2b699db96053d3f8d8ba3116b0e97a27722 |
| obproxy-ce | 4.3.1.0 | 4.el7 | 835f4803c1f4da186439323b66c51db4662678a3 |
±-------------±--------±-----------------------±-----------------------------------------+
Repository integrity check ok
Load param plugin ok
Open ssh connection ok
Parameter check ok
Cluster status check ok
Initializes observer work home ok
Initializes obproxy work home ok
Remote oceanbase-ce-4.2.1.9-109010012024101414.el7-67b8a2b699db96053d3f8d8ba3116b0e97a27722 repository install ok
Remote oceanbase-ce-4.2.1.9-109010012024101414.el7-67b8a2b699db96053d3f8d8ba3116b0e97a27722 repository lib check !!
Remote obproxy-ce-4.3.1.0-4.el7-835f4803c1f4da186439323b66c51db4662678a3 repository install ok
Remote obproxy-ce-4.3.1.0-4.el7-835f4803c1f4da186439323b66c51db4662678a3 repository lib check ok
Try to get lib-repository
install oceanbase-ce-libs-4.2.1.9 for local ok
Remote oceanbase-ce-libs-4.2.1.9-109010012024101414.el7-03d52091e97a2207a9d8abcf601d62cc207142b7 repository install ok
Remote oceanbase-ce-4.2.1.9-109010012024101414.el7-67b8a2b699db96053d3f8d8ba3116b0e97a27722 repository lib check ok
myoceanbase2 deployed
Search plugins ok
Load cluster param plugin ok
Check before start observer ok
[WARN] OBD-1011: (192.168.3.177) The recommended value of fs.aio-max-nr is 1048576 (Current value: 65536)
[WARN] OBD-1007: (192.168.3.177) The recommended number of open files is 655350 (Current value: 65535)
[WARN] OBD-1007: (192.168.3.177) The recommended number of max user processes is 655350 (Current value: 120000)
[WARN] OBD-1007: (192.168.3.177) The recommended number of core file size is unlimited (Current value: 0)
[WARN] OBD-1007: (192.168.3.177) The recommended number of stack size is unlimited (Current value: 8192)
[WARN] OBD-1017: (192.168.3.177) The value of the “vm.max_map_count” must be within [327600, 1310720] (Current value: 65530, Recommended value: 655360)
[WARN] OBD-1017: (192.168.3.177) The value of the “fs.file-max” must be greater than 6573688 (Current value: 1600318, Recommended value: 6573688)
[WARN] OBD-1012: (192.168.3.177) clog and data use the same disk (/)
Start observer ok
observer program health check ok
Connect to observer
一直卡在Connect to observer是什么原因啊,最后报错数据库安装失败
[2024-10-30 13:01:55.836] [ERROR] File “socket.py”, line 796, in create_connection
[2024-10-30 13:01:55.836] [ERROR] ConnectionRefusedError: [Errno 111] Connection refused
[2024-10-30 13:01:55.836] [ERROR]
[2024-10-30 13:01:55.836] [ERROR] During handling of the above exception, another exception occurred:
[2024-10-30 13:01:55.836] [ERROR]
[2024-10-30 13:01:55.837] [ERROR] Traceback (most recent call last):
[2024-10-30 13:01:55.837] [ERROR] File “concurrent/futures/thread.py”, line 57, in run
[2024-10-30 13:01:55.837] [ERROR] File “service/handler/deployment_handler.py”, line 344, in _do_install
[2024-10-30 13:01:55.837] [ERROR] File “core.py”, line 2204, in _start_cluster
[2024-10-30 13:01:55.837] [ERROR] File “core.py”, line 198, in call_plugin
[2024-10-30 13:01:55.837] [ERROR] File “_plugin.py”, line 348, in call
[2024-10-30 13:01:55.837] [ERROR] File “_plugin.py”, line 305, in _new_func
[2024-10-30 13:01:55.837] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.1.4/connect.py”, line 636, in connect
[2024-10-30 13:01:55.837] [ERROR] cursor = Cursor(ip=server.ip, port=server_config[‘mysql_port’], tenant=’’, password=password if password is not None else ‘’, stdio=stdio)
[2024-10-30 13:01:55.837] [ERROR] File “_stdio.py”, line 969, in wrapper
[2024-10-30 13:01:55.837] [ERROR] File “_stdio.py”, line 956, in func_wrapper
[2024-10-30 13:01:55.837] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.1.4/connect.py”, line 528, in init
[2024-10-30 13:01:55.837] [ERROR] self._connect()
[2024-10-30 13:01:55.837] [ERROR] File “/root/.obd/plugins/oceanbase-ce/4.2.1.4/connect.py”, line 558, in _connect
[2024-10-30 13:01:55.837] [ERROR] self.db = mysql.connect(host=self.ip, user=self.user, port=int(self.port), password=str(self.password),
[2024-10-30 13:01:55.837] [ERROR] File “pymysql/connections.py”, line 353, in init
[2024-10-30 13:01:55.837] [ERROR] File “pymysql/connections.py”, line 664, in connect
[2024-10-30 13:01:55.837] [ERROR] pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on ‘192.168.3.177’ ([Errno 111] Connection refused)”)
[2024-10-30 13:01:55.837] [ERROR]
[2024-10-30 13:01:58.840] [ERROR] OBD-1006: Failed to connect to oceanbase-ce
[2024-10-30 13:01:58.841] [DEBUG] - sub connect ref count to 0
[2024-10-30 13:01:58.841] [DEBUG] - export connect
[2024-10-30 13:01:58.841] [DEBUG] - plugin oceanbase-ce-py_script_connect-4.2.1.4 result: False
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!