【产品名称】
操作系统:Kylin Linux Advanced Server release V10 (Tercel)
ob版本:oceanbase 社区版3.1.1(克隆的仓库)
【问题描述】
observer通过源码编译安装,构建的debug版本
obdeploy也是源码编译,用的python3.7
pip3 install -r requirements3.txt sh build.sh source /etc/profile.d/obd.sh
obd启动本地实例时,报错 [ERROR] Running Error.
root@ecs-ac3e-0001 ob]# obd cluster deploy c1 -c local.yaml -v - open /root/.obd/version for a+ - cmd: [‘c1’] - opts: {‘config’: ‘local.yaml’, ‘force’: False, ‘unuselibrepo’: None, ‘auto_create_tenant’: None} - Get Deploy by name - mkdir /root/.obd/cluster/ - Get deploy info - judge deploy status - config path is None or not - Create deploy by configuration path - mkdir /root/.obd/cluster/c1 - copy local.yaml /root/.obd/cluster/c1/config.yaml - Get deploy configuration - Search best suitable repository - Search package for components… - Get oceanbase-ce repository - mkdir /root/.obd/repository - mkdir /root/.obd/repository/oceanbase-ce - Search oceanbase-ce package from mirror - mkdir /root/.obd/mirror - mkdir /root/.obd/mirror/remote - mkdir /root/.obd/mirror/local [ERROR] Running Error. Traceback (most recent call last): File “/usr/obd/obd.py”, line 136, in do_command ret = self._do_command(obd) File “/usr/obd/obd.py”, line 364, in _do_command return obd.deploy_cluster(self.cmds[0], self.opts) File “/usr/obd/core.py”, line 787, in deploy_cluster repositories, install_plugins = self.search_components_from_mirrors_and_install(deploy_config) File “/usr/obd/core.py”, line 660, in search_components_from_mirrors_and_install pkgs, repositories, errors = self.search_components_from_mirrors(deploy_config, only_info=False) File “/usr/obd/core.py”, line 215, in search_components_from_mirrors pkg = self.mirror_manager.get_best_pkg(name=component, version=config.version, md5=config.package_hash, fuzzy_match=fuzzy_match, only_info=only_info) File “/usr/obd/_mirror.py”, line 789, in get_best_pkg return self.get_exact_pkg(**pattern) File “/usr/obd/_mirror.py”, line 778, in get_exact_pkg mirrors = self.get_mirrors() File “/usr/obd/_mirror.py”, line 772, in get_mirrors mirros = self.get_remote_mirrors() File “/usr/obd/_mirror.py”, line 764, in get_remote_mirrors meta_data[‘name’] = RemoteMirrorRepository.var_replace(meta_data[‘name’], server_vars) File “/usr/obd/_mirror.py”, line 319, in var_replace return ‘’.join(done) TypeError: sequence item 1: expected str instance, NoneType found