oceanbase部署出错

[2023-07-10 11:01:08.507] [DEBUG] - cmd: [‘obtest’]
[2023-07-10 11:01:08.508] [DEBUG] - opts: {‘config’: ‘default-components.yaml’, ‘force’: None, ‘clean’: False, ‘generate_consistent_config’: None, ‘unuselibrepo’: None, ‘auto_create_tenant’: None, ‘force_delete’: None, ‘strict_check’: None}
[2023-07-10 11:01:08.508] [DEBUG] - mkdir /root/.obd/lock/
[2023-07-10 11:01:08.508] [DEBUG] - unknown lock mode
[2023-07-10 11:01:08.508] [DEBUG] - try to get share lock /root/.obd/lock/global
[2023-07-10 11:01:08.508] [DEBUG] - share lock /root/.obd/lock/global, count 1
[2023-07-10 11:01:08.508] [DEBUG] - Get Deploy by name
[2023-07-10 11:01:08.508] [DEBUG] - mkdir /root/.obd/cluster/
[2023-07-10 11:01:08.508] [DEBUG] - mkdir /root/.obd/config_parser/
[2023-07-10 11:01:08.509] [DEBUG] - try to get exclusive lock /root/.obd/lock/deploy_obtest
[2023-07-10 11:01:08.509] [DEBUG] - exclusive lock /root/.obd/lock/deploy_obtest, count 1
[2023-07-10 11:01:08.509] [DEBUG] - Create deploy by configuration path
[2023-07-10 11:01:08.509] [DEBUG] - exclusive lock /root/.obd/lock/deploy_obtest, count 2
[2023-07-10 11:01:08.509] [DEBUG] - mkdir /root/.obd/cluster/obtest
[2023-07-10 11:01:08.509] [DEBUG] - copy default-components.yaml /root/.obd/cluster/obtest/config.yaml
[2023-07-10 11:01:08.509] [DEBUG] - Get deploy configuration
[2023-07-10 11:01:08.511] [ERROR] Parsing error:
[2023-07-10 11:01:08.512] [ERROR] expected a single document in the stream
[2023-07-10 11:01:08.512] [ERROR] in “/root/.obd/cluster/obtest/config.yaml”, line 3, column 4
[2023-07-10 11:01:08.512] [ERROR] but found another document
[2023-07-10 11:01:08.512] [ERROR] in “/root/.obd/cluster/obtest/config.yaml”, line 8, column 1
[2023-07-10 11:01:08.512] [ERROR] Traceback (most recent call last):
[2023-07-10 11:01:08.512] [ERROR] File “core.py”, line 1015, in genconfig
[2023-07-10 11:01:08.512] [ERROR] File “_deploy.py”, line 1262, in deploy_config
[2023-07-10 11:01:08.512] [ERROR] File “_deploy.py”, line 1239, in _load_deploy_config
[2023-07-10 11:01:08.512] [ERROR] File “_stdio.py”, line 898, in wrapper
[2023-07-10 11:01:08.512] [ERROR] File “_deploy.py”, line 894, in init
[2023-07-10 11:01:08.512] [ERROR] File “_deploy.py”, line 961, in _load
[2023-07-10 11:01:08.512] [ERROR] File “tool.py”, line 517, in load
[2023-07-10 11:01:08.512] [ERROR] File “ruamel/yaml/main.py”, line 421, in load
[2023-07-10 11:01:08.512] [ERROR] File “ruamel/yaml/constructor.py”, line 109, in get_single_data
[2023-07-10 11:01:08.512] [ERROR] File “ruamel/yaml/composer.py”, line 81, in get_single_node
[2023-07-10 11:01:08.512] [ERROR] ruamel.yaml.composer.ComposerError: expected a single document in the stream
[2023-07-10 11:01:08.512] [ERROR] in “/root/.obd/cluster/obtest/config.yaml”, line 3, column 4
[2023-07-10 11:01:08.512] [ERROR] but found another document
[2023-07-10 11:01:08.512] [ERROR] in “/root/.obd/cluster/obtest/config.yaml”, line 8, column 1
[2023-07-10 11:01:08.512] [ERROR]
[2023-07-10 11:01:08.512] [DEBUG] - Search best suitable repository
[2023-07-10 11:01:08.512] [DEBUG] - Search package for components…
[2023-07-10 11:01:08.512] [DEBUG] - Searching install plugin for components …
[2023-07-10 11:01:08.513] [DEBUG] - Searching install plugin for components …
[2023-07-10 11:01:08.513] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2023-07-10 11:01:08.513] [INFO] Trace ID: 04a4e666-1ece-11ee-8282-bc97e19c3362
[2023-07-10 11:01:08.513] [INFO] If you want to view detailed obd logs, please run: obd display-trace 04a4e666-1ece-11ee-8282-bc97e19c3362
[2023-07-10 11:01:08.513] [DEBUG] - exclusive lock /root/.obd/lock/deploy_obtest release, count 1
[2023-07-10 11:01:08.513] [DEBUG] - exclusive lock /root/.obd/lock/deploy_obtest release, count 0
[2023-07-10 11:01:08.513] [DEBUG] - unlock /root/.obd/lock/deploy_obtest
[2023-07-10 11:01:08.513] [DEBUG] - share lock /root/.obd/lock/global release, count 0
[2023-07-10 11:01:08.513] [DEBUG] - unlock /root/.obd/lock/global

1 个赞

需要上传下config.yaml文件

1 个赞

config.yaml.txt (13.5 KB)

1 个赞

请问config.yaml需要我手动修改吗,我是修改了 /usr/obd/example里的文件,然后直接部署的


这里错了,还被注释着呢

改了还是有问题 :sob:

有错误信息吗?贴一下
image
或者看看格式对齐了吗


现在已经发现了两个问题,还有个问题就是挂载目录需要自己创建吗

可以参考改下配置文件:【SOP 系列 01】OBD 部署 OceanBase 集群 yaml 文件修改说明
另外,推荐用OBD白屏部署,会方便一些
https://www.oceanbase.com/docs/common-oceanbase-database-cn-10000000001697442

:sob:是通过跳板机登录的,不好用白屏

现在安装,具体报什么错,错误贴出来

你这是yaml格式有问题啊,检查下你的文件格式吧

1 个赞

嗷嗷好的,谢谢!