新版本的 OBD 使用报错 [ERROR] No such install plugin for oceanbase-ce-4.2.1.1

新版本的 OBD 使用报错

现象

[root@server066 ~]$obd cluster deploy obcedemo -c /usr/obd/example/single-with-obproxy.yaml
dDownload oceanbase-ce-4.2.1.1-101000062023110109.el7.x86_64.rpm (85.78 M):  33% [###########################                                                       ] ETA:  0:00:56   1.06 MB/Download oceanbase-ce-4.2.1.1-101000062023110109.el7.x86_64.rpm (85.78 M): 100% [##################################################################################] Time: 0:01:57 765.35 kB/sPackage oceanbase-ce-4.2.1.1-101000062023110109.el7 is available.
Download obproxy-ce-4.2.1.0-11.el7.x86_64.rpm (117.69 M): 100% [###################################################################################################] Time: 0:02:54 705.74 kB/sPackage obproxy-ce-4.2.1.0-11.el7 is available.
[ERROR] No such install plugin for oceanbase-ce-4.2.1.1
Trace ID: a8f63fca-7c7b-11ee-9e04-0050569ddf56
If you want to view detailed obd logs, please run: obd display-trace a8f63fca-7c7b-11ee-9e04-0050569ddf56

日志

[2023-11-06 16:10:39.074] [DEBUG] - arch is ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch']
[2023-11-06 16:10:39.074] [DEBUG] - release is None
[2023-11-06 16:10:39.074] [DEBUG] - version is None
[2023-11-06 16:10:39.075] [DEBUG] - load /root/.obd/mirror/remote/OceanBase-community-stable-el7/.db
[2023-11-06 16:10:39.079] [DEBUG] - MirrorRepositoryType.REMOTE mirror OceanBase-community-stable-el7 found pkg: obproxy-ce-4.2.1.0-11.el7.x86_64.rpm
[2023-11-06 16:10:39.080] [DEBUG] - md5 is None
[2023-11-06 16:10:39.080] [DEBUG] - name is obproxy-ce
[2023-11-06 16:10:39.080] [DEBUG] - arch is ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch']
[2023-11-06 16:10:39.080] [DEBUG] - release is None
[2023-11-06 16:10:39.080] [DEBUG] - version is None
[2023-11-06 16:10:39.082] [DEBUG] - load /root/.obd/mirror/remote/OceanBase-development-kit-el7/.db
[2023-11-06 16:10:39.083] [DEBUG] - MirrorRepositoryType.REMOTE mirror OceanBase-development-kit-el7 found pkg: None
[2023-11-06 16:10:39.083] [DEBUG] - md5 is None
[2023-11-06 16:10:39.083] [DEBUG] - name is obproxy-ce
[2023-11-06 16:10:39.083] [DEBUG] - arch is ['ia32e', 'x86_64', 'athlon', 'i686', 'i586', 'i486', 'i386', 'noarch']
[2023-11-06 16:10:39.083] [DEBUG] - release is None
[2023-11-06 16:10:39.083] [DEBUG] - version is None
[2023-11-06 16:10:39.083] [DEBUG] - MirrorRepositoryType.LOCAL mirror local found pkg: None
[2023-11-06 16:10:39.083] [DEBUG] - get RPM package by obproxy-ce-4.2.1.0-11.el7.x86_64.rpm
[2023-11-06 16:10:55.208] [INFO] Download obproxy-ce-4.2.1.0-11.el7.x86_64.rpm (117.69 M)
[2023-11-06 16:10:55.209] [DEBUG] - open /root/.obd/mirror/remote/OceanBase-community-stable-el7/obproxy-ce-4.2.1.0-11.el7.x86_64.rpm for wb
[2023-11-06 16:10:55.209] [DEBUG] - mkdir /root/.obd/mirror/remote/OceanBase-community-stable-el7
[2023-11-06 16:13:50.080] [DEBUG] - Found Package obproxy-ce-4.2.1.0-11.el7-0aed4b782120e4248b749f67be3d2cc82cdcb70d
[2023-11-06 16:13:50.080] [INFO] Package obproxy-ce-4.2.1.0-11.el7 is available.
[2023-11-06 16:13:50.081] [DEBUG] - Search repository obproxy-ce version: 0aed4b782120e4248b749f67be3d2cc82cdcb70d, tag: None, release: None, package_hash: None
[2023-11-06 16:13:50.081] [DEBUG] - Searching install plugin for components ...
[2023-11-06 16:13:50.082] [DEBUG] - Searching install plugin for components ...
[2023-11-06 16:13:50.082] [DEBUG] - Search install plugin for oceanbase-ce
[2023-11-06 16:13:50.083] [DEBUG] - mkdir /root/.obd/plugins
[2023-11-06 16:13:50.084] [CRITICAL] [ERROR] No such install plugin for oceanbase-ce-4.2.1.1
[2023-11-06 16:13:50.084] [INFO] Trace ID: a8f63fca-7c7b-11ee-9e04-0050569ddf56
[2023-11-06 16:13:50.085] [INFO] If you want to view detailed obd logs, please run: obd display-trace a8f63fca-7c7b-11ee-9e04-0050569ddf56
[2023-11-06 16:13:50.085] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo release, count 5
[2023-11-06 16:13:50.085] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo release, count 4
[2023-11-06 16:13:50.085] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo release, count 3
[2023-11-06 16:13:50.085] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 1
[2023-11-06 16:13:50.085] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo release, count 2
[2023-11-06 16:13:50.085] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo release, count 1
[2023-11-06 16:13:50.085] [DEBUG] - exclusive lock /root/.obd/lock/mirror_and_repo release, count 0
[2023-11-06 16:13:50.086] [DEBUG] - try to get share lock /root/.obd/lock/mirror_and_repo
[2023-11-06 16:13:50.086] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 0
[2023-11-06 16:13:50.086] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo
[2023-11-06 16:13:50.086] [DEBUG] - exclusive lock /root/.obd/lock/deploy_obcedemo release, count 1
[2023-11-06 16:13:50.086] [DEBUG] - exclusive lock /root/.obd/lock/deploy_obcedemo release, count 0
[2023-11-06 16:13:50.086] [DEBUG] - unlock /root/.obd/lock/deploy_obcedemo
[2023-11-06 16:13:50.086] [DEBUG] - share lock /root/.obd/lock/global release, count 0
[2023-11-06 16:13:50.087] [DEBUG] - unlock /root/.obd/lock/global

配置文件

[root@server066 example]$cat single-with-obproxy.yaml|grep . |grep -v '^ *#'                                                                                                                                                                                                
user:
   username: admin
oceanbase-ce:                                                                                                                                                                                                                                                               
  servers:                                                                                                                                                                                                                                                                  
    - 10.0.0.66                                                                                                                                                                                                                                                             
  global:
production_mode: false                                                                                                                                                                                                                                                                   
    home_path: /home/admin/oceanbase                                                                                                                                                                                                                                        
    data_dir: /data/1/obcedemo                                                                                                                                                                                                                                              
    redo_dir: /data/log1/obcedemo                                                                                                                                                                                                                                           
    devname: ens192                                                                                                                                                                                                                                                         
    mysql_port: 2881 # External port for OceanBase Database. The default value is 2881. DO NOT change this value after the cluster is started.                                                                                                                              
    rpc_port: 2882 # Internal port for OceanBase Database. The default value is 2882. DO NOT change this value after the cluster is started.                                                                                                                                
    zone: zone1                                                                                                                                                                                                                                                             
    memory_limit: 8G # The maximum running memory for an observer                                                                                                                                                                                                           
    system_memory: 1G                                                                                                                                                                                                                                                       
    datafile_size: 50G # Size of the data file.                                                                                                                                                                                                                             
    log_disk_size: 20G # The size of disk space used by the clog files.                                                                                                                                                                                                     
    enable_syslog_wf: false # Print system logs whose levels are higher than WARNING to a separate log file. The default value is true.                                                                                                                                     
    enable_syslog_recycle: true # Enable auto system log recycling or not. The default value is false.                                                                                                                                                                      
    max_syslog_file_count: 5 # The maximum number of reserved log files before enabling auto recycling. The default value is 0.                                                                                                                                             
    appname: obcedemo                                                                                                                                                                                                                                                       
    root_password: aaAA11__  # root user password, can be empty                                                                                                                                                                                                             
    proxyro_password: proxyRO123 # proxyro user pasword, consistent with obproxy's observer_sys_password, can be empty                                                                                                                                                      
obproxy-ce:                                                                                                                                                                                                                                                                 
  depends:                                                                                                                                                                                                                                                                  
    - oceanbase-ce                                                                                                                                                                                                                                                          
  servers:                                                                                                                                                                                                                                                                  
    - 10.0.0.66                                                                                                                                                                                                                                                             
  global:                                                                                                                                                                                                                                                                   
    listen_port: 2883 # External port. The default value is 2883.                                                                                                                                                                                                           
    prometheus_listen_port: 2884 # The Prometheus port. The default value is 2884.                                                                                                                                                                                          
    home_path: /home/admin/obproxy                                                                                                                                                                                                                                          
    enable_cluster_checkout: false                                                                                                                                                                                                                                          
    skip_proxy_sys_private_check: true                                                                                                                                                                                                                                      
    enable_strict_kernel_release: false                                                                                                                                                                                                                                     
    obproxy_sys_password: proxySYS123 # obproxy sys user password, can be empty. When a depends exists, OBD gets this value from the oceanbase-ce of the depends.  

其他信息

  • 软件版本:

下载地址: Releases · oceanbase/obdeploy (github.com)

[root@server066 ~]$rpm -qa|grep ob-deploy
ob-deploy-2.3.1-2.el7.x86_64

1.是否用 all in one 安装过obd ,可以通过command -v obd 查看一下 obd 来源
如果用all in one 安装过可以被污染,因为我看你这还有rpm 包安装的 应该是:/usr/bin/obd

1、 如果command -v obd 指向的all in one 的路径 可以去环境变量里面删除这个记录 继续执行

2.如果command -v obd 是 :/usr/bin/obd, 可能是插件生成时候被污染了

  1. 删除obd 版本标识 rm -rf ~/.obd/version
  2. obd cluster list 会更新插件 有报错可以直接忽略
    3.正常执行的你的操作
2 个赞

谢谢!
确实是多个版本软件冲突了。

感谢,也遇到这个问题,删除掉文件 ~/.obd/version 解决