obd web 安装myocp报错

【 使用环境 】测试环境32c64g内存
【 OB or 其他组件 】oceanbase安装完成,obd web安装myocp
【 使用版本 】oceanbase-all-in-one-4.4.2_20260302.el8.x86_64
【问题描述】obd web安装myocp,每次都会卡住,看obd web日志有报错
2026-04-22 11:01:38,146 INFO _do_install (ocp_handler.py:802) [None] not depends on oceanbase, create tenant first
2026-04-22 11:01:38,148 INFO _create_tenant (ocp_handler.py:762) [None] start create tenant
2026-04-22 11:01:44,479 ERROR wrapper (task.py:135) [ef6f311ee725425286079bd9d0950561] task 3 got exception
Traceback (most recent call last):
File “service/handler/ocp_handler.py”, line 803, in _do_install
File “service/handler/ocp_handler.py”, line 767, in _create_tenant
Exception: Create tenant failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “service/common/task.py”, line 121, in wrapper
File “concurrent/futures/_base.py”, line 456, in result
File “concurrent/futures/_base.py”, line 401, in __get_result
File “concurrent/futures/thread.py”, line 58, in run
File “service/handler/ocp_handler.py”, line 811, in _do_install
Exception: deploy failed
2026-04-22 11:01:44,480 INFO wrapper (task.py:138) [ef6f311ee725425286079bd9d0950561] task 3 finished failed

2026-04-22 11:44:33,570 INFO _create_tenant (ocp_handler.py:762) [None] start create tenant
2026-04-22 11:44:33,624 ERROR wrapper (task.py:135) [d82d4d95ef6448f3a872e99419292abe] task 7 got exception
Traceback (most recent call last):
File “service/handler/ocp_handler.py”, line 803, in _do_install
File “service/handler/ocp_handler.py”, line 767, in _create_tenant
Exception: Create tenant failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “service/common/task.py”, line 121, in wrapper
File “concurrent/futures/_base.py”, line 456, in result
File “concurrent/futures/_base.py”, line 401, in __get_result
File “concurrent/futures/thread.py”, line 58, in run
File “service/handler/ocp_handler.py”, line 811, in _do_install
Exception: deploy failed
2026-04-22 11:44:33,625 INFO wrapper (task.py:138) [d82d4d95ef6448f3a872e99419292abe] task 7 finished failed

【复现路径】obd web 安装ocp,使用已存在的oceanbase,ocp 和oceanbase使用同一台服务器,端口改为8081,在obshell里面能看到租户ocp_meta已创建,ocp_monitor未创建,但是cpu内存资源是足够创建ocp_monitor的
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):

【SOP系列 22 】——故障诊断第一步(自助诊断和诊断信息收集)

创建租户失败,看看你创建租户的CPU,内存,日志磁盘空间的配置与你的所有配置是否有匹配,是不是资源问题导致!

1 个赞

确实是资源问题,只是图形界面没有体现
我手动创建租户发现有报错
obclient(root@sys)[oceanbase]> create resource pool ocp_monitor_pool unit ‘ocp_monitor_unit’,unit_num 1,zone_list(‘zone1’);
ERROR 4733 (HY000): zone ‘zone1’ resource not enough to hold 1 unit. You can check resource info by views: DBA_OB_UNITS, GV$OB_UNITS, GV$OB_SERVERS.
server ‘“x.x.x.x:2882”’ LOG_DISK resource not enough