OBD版本:2.10.1
操作系统:Ubuntu18.04
安装过程:
# 开启 obd 远程镜像拉取模式
obd mirror enable remote
# 通过 obd 部署 obdiag
obd obdiag deploy
安装成功
Use 'obd tool install oceanbase-diagnostic-tool' instead
[WARN] Use centos 7 remote mirror repository for ubuntu 18.04
Update OceanBase-community-stable-el7 ok
[WARN] Use centos 7 remote mirror repository for ubuntu 18.04
Update OceanBase-development-kit-el7 ok
[WARN] Use centos 7 remote mirror repository for ubuntu 18.04
[WARN] Use centos 7 remote mirror repository for ubuntu 18.04
Download oceanbase-diagnostic-tool-3.3.0-12025041811.el7.x86_64.rpm (46.48 M): 100% [##############################################] Time: 0:00:02 16.92 MB/s
Found a avaiable version
name: oceanbase-diagnostic-tool
version: 3.3.0
release:12025041811.el7
arch: x86_64
md5: 5701f606b0b3068477b7405c7b24be841c09beff
size: 71538253
Do you want to use it? [y/n]: y
Get local repositories and plugins ok
install tool ok
+-----------------------------------------------------------------------------------------------+
| Installed Tool |
+---------------------------+--------+---------+---------------------------------+--------------+
| Name | Arch | Version | Install Path | Install Size |
+---------------------------+--------+---------+---------------------------------+--------------+
| oceanbase-diagnostic-tool | x86_64 | 3.3.0 | /root/oceanbase-diagnostic-tool | 68.22M |
+---------------------------+--------+---------+---------------------------------+--------------+
Install tool oceanbase-diagnostic-tool completely.
Trace ID: add25d70-2329-11f0-8fc6-00163e0155a5
If you want to view detailed obd logs, please run: obd display-trace add25d70-2329-11f0-8fc6-00163e0155a5
执行命令:
obd obdiag gather log obcluster
执行结果:
Get local repositories and plugins ok
[WARN] Use centos 7 remote mirror repository for ubuntu 18.04
[WARN] Use centos 7 remote mirror repository for ubuntu 18.04
[WARN] Use centos 7 remote mirror repository for ubuntu 18.04
[WARN] Use centos 7 remote mirror repository for ubuntu 18.04
The tool oceanbase-diagnostic-tool is already installed the latest version 3.3.0
Open ssh connection ok
[ERROR] excute command: sh /root/oceanbase-diagnostic-tool/init.sh failed
[ERROR] OBD-6000: Failed to executable obdiag command, you may not have obdiag installed
See https://www.oceanbase.com/product/ob-deployer/error-codes .
Trace ID: d8fc4272-2329-11f0-aad6-00163e0155a5
If you want to view detailed obd logs, please run: obd display-trace d8fc4272-2329-11f0-aad6-00163e0155a5
/root/oceanbase-diagnostic-tool文件夹为空
执行命令:
obd display-trace d8fc4272-2329-11f0-aad6-00163e0155a5
执行结果:
[2025-04-27 13:38:28.953] [DEBUG] - cmd: ['obcluster']
[2025-04-27 13:38:28.953] [DEBUG] - opts: {'from': None, 'to': None, 'since': '30m', 'scope': 'all', 'grep': None, 'encrypt': 'false', 'store_dir': './', 'obdiag_dir': '/root/oceanbase-diagnostic-tool'}
[2025-04-27 13:38:28.953] [DEBUG] - mkdir /root/.obd/lock/
[2025-04-27 13:38:28.953] [DEBUG] - set lock mode to NO_LOCK(0)
[2025-04-27 13:38:28.953] [DEBUG] - Get Deploy by name
[2025-04-27 13:38:28.954] [DEBUG] - mkdir /root/.obd/cluster/
[2025-04-27 13:38:28.954] [DEBUG] - mkdir /root/.obd/config_parser/
[2025-04-27 13:38:28.954] [DEBUG] - Get deploy configuration
[2025-04-27 13:38:28.979] [INFO] Get local repositories and plugins
[2025-04-27 13:38:28.980] [DEBUG] - mkdir /root/.obd/repository
[2025-04-27 13:38:28.980] [DEBUG] - Get local repository oceanbase-ce-4.3.4.0-5d59e837a0ecff1a6baa20f72747c343ac7c8dce
[2025-04-27 13:38:28.983] [DEBUG] - Get local repository obproxy-ce-4.3.2.0-fd779e401be448715254165b1a4f7205c4c1bda5
[2025-04-27 13:38:29.111] [DEBUG] - mkdir /root/.obd/mirror
[2025-04-27 13:38:29.111] [DEBUG] - mkdir /root/.obd/mirror/remote
[2025-04-27 13:38:29.111] [DEBUG] - mkdir /root/.obd/mirror/local
[2025-04-27 13:38:29.112] [DEBUG] - load repo config: /root/.obd/mirror/remote/OceanBase.repo
[2025-04-27 13:38:29.112] [DEBUG] - open /root/.obd/mirror/remote/OceanBase.repo for r
[2025-04-27 13:38:29.113] [WARNING] Use centos 7 remote mirror repository for ubuntu 18.04
[2025-04-27 13:38:29.113] [WARNING] Use centos 7 remote mirror repository for ubuntu 18.04
[2025-04-27 13:38:29.114] [DEBUG] - md5 is None
[2025-04-27 13:38:29.114] [DEBUG] - name is oceanbase-diagnostic-tool
[2025-04-27 13:38:29.114] [DEBUG] - arch is ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch']
[2025-04-27 13:38:29.114] [DEBUG] - release is None
[2025-04-27 13:38:29.114] [DEBUG] - version is None
[2025-04-27 13:38:29.114] [DEBUG] - min_version is None
[2025-04-27 13:38:29.114] [DEBUG] - max_version is None
[2025-04-27 13:38:29.114] [DEBUG] - MirrorRepositoryType.LOCAL mirror local found pkg: name: oceanbase-diagnostic-tool
[2025-04-27 13:38:29.114] [DEBUG] version: 2.4.0
[2025-04-27 13:38:29.115] [DEBUG] release:32024091010.el7
[2025-04-27 13:38:29.115] [DEBUG] arch: x86_64
[2025-04-27 13:38:29.115] [DEBUG] md5: 3817915bd36866590e1e6a74ad1c308817a6985e
[2025-04-27 13:38:29.115] [DEBUG] size: 43174675
[2025-04-27 13:38:29.115] [DEBUG] - md5 is None
[2025-04-27 13:38:29.115] [DEBUG] - name is oceanbase-diagnostic-tool
[2025-04-27 13:38:29.115] [DEBUG] - arch is ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch']
[2025-04-27 13:38:29.115] [DEBUG] - release is None
[2025-04-27 13:38:29.115] [DEBUG] - version is None
[2025-04-27 13:38:29.115] [DEBUG] - min_version is None
[2025-04-27 13:38:29.115] [DEBUG] - max_version is None
[2025-04-27 13:38:29.115] [DEBUG] - only_download is False
[2025-04-27 13:38:29.116] [DEBUG] - load /root/.obd/mirror/remote/OceanBase-community-stable-el7/.db
[2025-04-27 13:38:29.123] [DEBUG] - MirrorRepositoryType.REMOTE mirror OceanBase-community-stable-el7 found pkg: oceanbase-diagnostic-tool-3.3.0-12025041811.el7.x86_64.rpm
[2025-04-27 13:38:29.123] [DEBUG] - md5 is None
[2025-04-27 13:38:29.123] [DEBUG] - name is oceanbase-diagnostic-tool
[2025-04-27 13:38:29.123] [DEBUG] - arch is ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch']
[2025-04-27 13:38:29.124] [DEBUG] - release is None
[2025-04-27 13:38:29.124] [DEBUG] - version is None
[2025-04-27 13:38:29.124] [DEBUG] - min_version is None
[2025-04-27 13:38:29.124] [DEBUG] - max_version is None
[2025-04-27 13:38:29.124] [DEBUG] - only_download is False
[2025-04-27 13:38:29.124] [DEBUG] - load /root/.obd/mirror/remote/OceanBase-development-kit-el7/.db
[2025-04-27 13:38:29.125] [DEBUG] - MirrorRepositoryType.REMOTE mirror OceanBase-development-kit-el7 found pkg: None
[2025-04-27 13:38:29.126] [DEBUG] - get RPM package by oceanbase-diagnostic-tool-3.3.0-12025041811.el7.x86_64.rpm
[2025-04-27 13:38:29.127] [DEBUG] - mkdir /root/.obd/repository/oceanbase-diagnostic-tool/3.3.0/5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.129] [DEBUG] - mkdir /root/.obd/plugins
[2025-04-27 13:38:29.129] [DEBUG] - Call oceanbase-diagnostic-tool-py_script_pre_check-1.0 for oceanbase-diagnostic-tool-3.3.0-12025041811.el7-5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.129] [DEBUG] - import pre_check
[2025-04-27 13:38:29.131] [DEBUG] - add pre_check ref count to 1
[2025-04-27 13:38:29.131] [DEBUG] -- mkdir ./
[2025-04-27 13:38:29.131] [DEBUG] - sub pre_check ref count to 0
[2025-04-27 13:38:29.131] [DEBUG] - export pre_check
[2025-04-27 13:38:29.131] [DEBUG] - plugin oceanbase-diagnostic-tool-py_script_pre_check-1.0 result: True
[2025-04-27 13:38:29.131] [DEBUG] - mkdir /root/.obd/tool/
[2025-04-27 13:38:29.133] [DEBUG] - Search repository oceanbase-diagnostic-tool version: 3.3.0, tag: None, release: None, package_hash: 5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.133] [DEBUG] - mkdir /root/.obd/repository/oceanbase-diagnostic-tool
[2025-04-27 13:38:29.133] [DEBUG] - Found repository oceanbase-diagnostic-tool-3.3.0-12025041811.el7-5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.134] [DEBUG] - Try to update oceanbase-diagnostic-tool
[2025-04-27 13:38:29.135] [DEBUG] - Search repository oceanbase-diagnostic-tool version: 3.3.0, tag: None, release: None, package_hash: 5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.135] [DEBUG] - Found repository oceanbase-diagnostic-tool-3.3.0-12025041811.el7-5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.136] [DEBUG] - Search repository oceanbase-diagnostic-tool version: 3.3.0, tag: None, release: None, package_hash: 5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.136] [DEBUG] - Found repository oceanbase-diagnostic-tool-3.3.0-12025041811.el7-5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.137] [DEBUG] - load repo config: /root/.obd/mirror/remote/OceanBase.repo
[2025-04-27 13:38:29.137] [WARNING] Use centos 7 remote mirror repository for ubuntu 18.04
[2025-04-27 13:38:29.137] [WARNING] Use centos 7 remote mirror repository for ubuntu 18.04
[2025-04-27 13:38:29.138] [DEBUG] - md5 is None
[2025-04-27 13:38:29.138] [DEBUG] - name is oceanbase-diagnostic-tool
[2025-04-27 13:38:29.138] [DEBUG] - arch is ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch']
[2025-04-27 13:38:29.138] [DEBUG] - release is None
[2025-04-27 13:38:29.138] [DEBUG] - version is None
[2025-04-27 13:38:29.138] [DEBUG] - min_version is None
[2025-04-27 13:38:29.138] [DEBUG] - max_version is None
[2025-04-27 13:38:29.138] [DEBUG] - MirrorRepositoryType.LOCAL mirror local found pkg: name: oceanbase-diagnostic-tool
[2025-04-27 13:38:29.138] [DEBUG] version: 2.4.0
[2025-04-27 13:38:29.138] [DEBUG] release:32024091010.el7
[2025-04-27 13:38:29.138] [DEBUG] arch: x86_64
[2025-04-27 13:38:29.138] [DEBUG] md5: 3817915bd36866590e1e6a74ad1c308817a6985e
[2025-04-27 13:38:29.138] [DEBUG] size: 43174675
[2025-04-27 13:38:29.138] [DEBUG] - md5 is None
[2025-04-27 13:38:29.138] [DEBUG] - name is oceanbase-diagnostic-tool
[2025-04-27 13:38:29.138] [DEBUG] - arch is ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch']
[2025-04-27 13:38:29.139] [DEBUG] - release is None
[2025-04-27 13:38:29.139] [DEBUG] - version is None
[2025-04-27 13:38:29.139] [DEBUG] - min_version is None
[2025-04-27 13:38:29.139] [DEBUG] - max_version is None
[2025-04-27 13:38:29.139] [DEBUG] - only_download is False
[2025-04-27 13:38:29.139] [DEBUG] - load /root/.obd/mirror/remote/OceanBase-community-stable-el7/.db
[2025-04-27 13:38:29.145] [DEBUG] - MirrorRepositoryType.REMOTE mirror OceanBase-community-stable-el7 found pkg: oceanbase-diagnostic-tool-3.3.0-12025041811.el7.x86_64.rpm
[2025-04-27 13:38:29.145] [DEBUG] - md5 is None
[2025-04-27 13:38:29.145] [DEBUG] - name is oceanbase-diagnostic-tool
[2025-04-27 13:38:29.145] [DEBUG] - arch is ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch']
[2025-04-27 13:38:29.145] [DEBUG] - release is None
[2025-04-27 13:38:29.145] [DEBUG] - version is None
[2025-04-27 13:38:29.145] [DEBUG] - min_version is None
[2025-04-27 13:38:29.145] [DEBUG] - max_version is None
[2025-04-27 13:38:29.145] [DEBUG] - only_download is False
[2025-04-27 13:38:29.146] [DEBUG] - load /root/.obd/mirror/remote/OceanBase-development-kit-el7/.db
[2025-04-27 13:38:29.147] [DEBUG] - MirrorRepositoryType.REMOTE mirror OceanBase-development-kit-el7 found pkg: None
[2025-04-27 13:38:29.147] [DEBUG] - get RPM package by oceanbase-diagnostic-tool-3.3.0-12025041811.el7.x86_64.rpm
[2025-04-27 13:38:29.149] [DEBUG] - Search repository oceanbase-diagnostic-tool version: 3.3.0, tag: None, release: None, package_hash: 5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.149] [DEBUG] - Found repository oceanbase-diagnostic-tool-3.3.0-12025041811.el7-5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.151] [DEBUG] - Search repository oceanbase-diagnostic-tool version: 3.3.0, tag: None, release: None, package_hash: 5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.151] [DEBUG] - Found repository oceanbase-diagnostic-tool-3.3.0-12025041811.el7-5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.151] [INFO] The tool oceanbase-diagnostic-tool is already installed the latest version 3.3.0
[2025-04-27 13:38:29.152] [DEBUG] - Search repository oceanbase-diagnostic-tool version: 3.3.0, tag: None, release: None, package_hash: 5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.152] [DEBUG] - Found repository oceanbase-diagnostic-tool-3.3.0-12025041811.el7-5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.153] [INFO] Open ssh connection
[2025-04-27 13:38:29.157] [DEBUG] - host: 172.21.223.195, port: 22, user: root, password: DURUOafarsoft@123!!!
[2025-04-27 13:38:29.288] [DEBUG] - Call oceanbase-diagnostic-tool-py_script_generate_config-1.5 for oceanbase-ce-4.3.4.0-100000162024110717.el7-5d59e837a0ecff1a6baa20f72747c343ac7c8dce
[2025-04-27 13:38:29.288] [DEBUG] - import generate_config
[2025-04-27 13:38:29.290] [DEBUG] - add generate_config ref count to 1
[2025-04-27 13:38:29.294] [DEBUG] - sub generate_config ref count to 0
[2025-04-27 13:38:29.294] [DEBUG] - export generate_config
[2025-04-27 13:38:29.294] [DEBUG] - plugin oceanbase-diagnostic-tool-py_script_generate_config-1.5 result: None
[2025-04-27 13:38:29.295] [DEBUG] - Search repository oceanbase-diagnostic-tool version: 3.3.0, tag: None, release: None, package_hash: 5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.295] [DEBUG] - Found repository oceanbase-diagnostic-tool-3.3.0-12025041811.el7-5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.296] [DEBUG] - Call oceanbase-diagnostic-tool-py_script_scene_config-1.6 for oceanbase-ce-4.3.4.0-100000162024110717.el7-5d59e837a0ecff1a6baa20f72747c343ac7c8dce
[2025-04-27 13:38:29.296] [DEBUG] - import scene_config
[2025-04-27 13:38:29.297] [DEBUG] - add scene_config ref count to 1
[2025-04-27 13:38:29.298] [DEBUG] -- get option: obdiag_dir value /root/oceanbase-diagnostic-tool
[2025-04-27 13:38:29.302] [ERROR] excute command: sh /root/oceanbase-diagnostic-tool/init.sh failed
[2025-04-27 13:38:29.303] [DEBUG] - sub scene_config ref count to 0
[2025-04-27 13:38:29.303] [DEBUG] - export scene_config
[2025-04-27 13:38:29.303] [DEBUG] - plugin oceanbase-diagnostic-tool-py_script_scene_config-1.6 result: False
[2025-04-27 13:38:29.304] [DEBUG] - Search repository oceanbase-diagnostic-tool version: 3.3.0, tag: None, release: None, package_hash: 5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.305] [DEBUG] - Found repository oceanbase-diagnostic-tool-3.3.0-12025041811.el7-5701f606b0b3068477b7405c7b24be841c09beff
[2025-04-27 13:38:29.305] [DEBUG] - Call oceanbase-diagnostic-tool-py_script_gather_log-1.0 for oceanbase-ce-4.3.4.0-100000162024110717.el7-5d59e837a0ecff1a6baa20f72747c343ac7c8dce
[2025-04-27 13:38:29.305] [DEBUG] - import gather_log
[2025-04-27 13:38:29.307] [DEBUG] - add gather_log ref count to 1
[2025-04-27 13:38:29.307] [DEBUG] -- get option: from value
[2025-04-27 13:38:29.307] [DEBUG] -- get option: to value
[2025-04-27 13:38:29.307] [DEBUG] -- get option: scope value all
[2025-04-27 13:38:29.307] [DEBUG] -- get option: since value 30m
[2025-04-27 13:38:29.307] [DEBUG] -- get option: grep value
[2025-04-27 13:38:29.307] [DEBUG] -- get option: encrypt value false
[2025-04-27 13:38:29.307] [DEBUG] -- get option: store_dir value ./
[2025-04-27 13:38:29.307] [DEBUG] -- get option: obdiag_dir value /root/oceanbase-diagnostic-tool
[2025-04-27 13:38:29.307] [DEBUG] -- local execute: /root/oceanbase-diagnostic-tool/obdiag
[2025-04-27 13:38:29.310] [DEBUG] -- exited code 127, error output:
[2025-04-27 13:38:29.310] [DEBUG] /bin/sh: 1: /root/oceanbase-diagnostic-tool/obdiag: not found
[2025-04-27 13:38:29.311] [DEBUG]
[2025-04-27 13:38:29.311] [ERROR] OBD-6000: Failed to executable obdiag command, you may not have obdiag installed
[2025-04-27 13:38:29.311] [DEBUG] - sub gather_log ref count to 0
[2025-04-27 13:38:29.311] [DEBUG] - export gather_log
[2025-04-27 13:38:29.311] [DEBUG] - plugin oceanbase-diagnostic-tool-py_script_gather_log-1.0 result: False
[2025-04-27 13:38:29.311] [INFO] See https://www.oceanbase.com/product/ob-deployer/error-codes .
[2025-04-27 13:38:29.312] [INFO] Trace ID: d8fc4272-2329-11f0-aad6-00163e0155a5
[2025-04-27 13:38:29.312] [INFO] If you want to view detailed obd logs, please run: obd display-trace d8fc4272-2329-11f0-aad6-00163e0155a5