暂无图片
ocp-express界面错误
我来答
分享
暂无图片 匿名用户
ocp-express界面错误

ob:4.1.0
部署ocp-express后,访问界面报错如下:

image

image1616×561 41.8 KB


image

image1661×602 17.4 KB


查看后台日志:

2023-09-26 17:50:53.719 WARN 43786 — [http-nio-8180-exec-3,f4c59609f6ca445a,0745f135bdc7] c.o.ocp.analyzer.RequestTracingAspect : API Error: [GET /api/v1/ob/tenants/1004/sessions client=183.6.36.46, traceId=f4c59609f6ca445a, duration=3 ms, errorMsg=[OCP NotFoundException]: status=404 NOT_FOUND, errorCode=OB_TENANT_CREDENTIAL_NOT_FOUND, args=ocp_meta]

而ocp_meta组会是存在的:

mysql> select * from __all_tenant where tenant_name='ocp_meta' \G
*************************** 1. row ***************************
                gmt_create: 2023-09-26 16:32:11.482209
              gmt_modified: 2023-09-26 16:32:32.688340
                 tenant_id: 1004
               tenant_name: ocp_meta
                 zone_list: zone1;zone2;zone3
              primary_zone: RANDOM
                    locked: 0
            collation_type: 0
                      info: 
                  locality: FULL{1}@zone1, FULL{1}@zone2, FULL{1}@zone3
         previous_locality: 
     default_tablegroup_id: -1
        compatibility_mode: 0
          drop_tenant_time: -1
                    status: NORMAL
             in_recyclebin: 0
arbitration_service_status: DISABLED
1 row in set (0.00 sec)
$ obclient -hxxxx -P2881 -uroot@ocp_meta -p
Enter password: 
Welcome to the OceanBase.  Commands end with ; or \g.
Your OceanBase connection id is 3221568361
Server version: OceanBase_CE 4.1.0.2 (r104000032023092120-6059cef14d9ab49773c095c1204c8ec6196f2bfa) (Built Sep 21 2023 20:33:14)

Copyright (c) 2000, 2018, OceanBase and/or its affiliates. All rights reserved.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

obclient [(none)]>
我来答
添加附件
收藏
分享
问题补充
1条回答
默认
最新
O
OceanBase社区传送门

应该是一起部署的话整个流程里有建租户的过程,知道租户的信息,可以自动去写进去,但是单独去部署 ocp-express 只是给了db的连接信息,可能没处理租户的credential

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏