obd 2.9.1 搭建obagent 4.2.2 配置文件不生效

【 使用环境 】生产环境
【 其他组件 】obd 2.9.1 与obagent 4.2.2
【 使用版本 】obd 2.9.1 obagent 4.2.2
【问题描述】使用obd搭建obagent deploy集群后发现yaml中配置的参数并未生效
【复现路径】
obd cluster deploy ob_nj1_obkv_2_agent_only -c -f ob_nj1_obkv_agent_only.yaml

[WARN] Failed to download http://mirrors.aliyun.com/oceanbase/community/stable/el/7/x86_64///repodata/repomd.xml to /root/.obd/mirror/remote/OceanBase-community-stable-el7/repomd.xml
[WARN] Failed to download http://mirrors.aliyun.com/oceanbase/development-kit/el/7/x86_64///repodata/repomd.xml to /root/.obd/mirror/remote/OceanBase-development-kit-el7/repomd.xml
±-----------------------------------------------------------------------------------------+
| Packages |
±-----------±--------±-----------------------±-----------------------------------------+
| Repository | Version | Release | Md5 |
±-----------±--------±-----------------------±-----------------------------------------+
| obagent | 4.2.2 | 100000042024011120.el7 | 19739a07a12eab736aff86ecf357b1ae660b554e |
±-----------±--------±-----------------------±-----------------------------------------+
Repository integrity check ok
Load param plugin ok
Open ssh connection ok
Parameter check ok
Cluster status check ok
Initializes obagent work home ok
Remote obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e repository install ok
Remote obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e repository lib check ok
ob_nj1_obkv_2_agent_only deployed
Please execute obd cluster start ob_nj1_obkv_2_agent_only to start
Trace ID: 9d596332-2de1-11ef-ab90-58c7acca34ba
If you want to view detailed obd logs, please run: obd display-trace 9d596332-2de1-11ef-ab90-58c7acca34ba
[root@a30505u10-65-128 ob_nj1_obkv]# ll
total 4
-rw-r–r-- 1 root root 1018 Jun 19 10:14 ob_nj1_obkv_agent_only.yaml
[root@a30505u10-65-128 ob_nj1_obkv]# cat ob_nj1_obkv_agent_only.yaml
user:
username: admin
password: xxx
obagent:
version: 4.2.2
servers:
- xxx
- xxx
- xxx
xxx:
zone_name: zone1
xxx:
zone_name: zone2
xxx:
zone_name: zone3
global:
home_path: /home/admin/obagent
monagent_http_port: 18088
mgragent_http_port: 18089
mgragent_log_level: INFO
log_path: log/monagent.log
crypto_method: plain
mgragent_log_max_size: 30
mgragent_log_max_days: 7
log_file_count: 10
monagent_log_level: info
monagent_log_max_size: 30
monagent_log_max_days: 7
http_basic_auth_user: admin
http_basic_auth_password: root
pprof_basic_auth_user: admin
pprof_basic_auth_password: root
monitor_password: xxx
sql_port: 4881
rpc_port: 4882
cluster_name: ob_nj1_obkv
cluster_id: 20230732
ob_monitor_status: active
disable_http_basic_auth: false
disable_pprof_basic_auth: false
[root@a30505u10-65-128 ob_nj1_obkv]# obd cluster start ob_nj1_obkv_2_agent_only
Get local repositories ok
Search plugins ok
Load cluster param plugin ok
Open ssh connection ok
Check before start obagent ok
Start obagent x
[ERROR] failed to set config to 172.28.65.136 obagent.
[ERROR] obagent start failed
See OceanBase分布式数据库-海量数据 笔笔算数 .
Trace ID: bd4af53e-2de1-11ef-806c-58c7acca34ba
If you want to view detailed obd logs, please run: obd display-trace bd4af53e-2de1-11ef-806c-58c7acca34ba

去obsever节点上查看配置文件
/home/admin/obagent/conf
cat ./config_properties/monagent_pipeline.yaml
configVersion: “”
configs:
- key: monagent.ob.monitor.user
value: ocp_monitor
valueType: string
- key: monagent.ob.monitor.password
value:
valueType: string
encrypted: true
- key: monagent.ob.sql.port
value: 2881
valueType: int64
- key: monagent.ob.rpc.port
value: 2882
valueType: int64
- key: monagent.host.ip
value: 127.0.0.1
valueType: string
- key: monagent.cluster.id
value:
valueType: int64
- key: monagent.ob.cluster.name
value: “”
valueType: string
- key: monagent.ob.cluster.id
value: 0
valueType: int64
- key: monagent.ob.zone.name
value: “”
valueType: string
- key: monagent.pipeline.ob.status
value: inactive
valueType: string
- key: monagent.pipeline.node.status
value: active
valueType: string
- key: ob.log.path
value: /data/log1
valueType: string
- key: ob.data.path
value: /data/1
valueType: string
- key: ob.install.path
value: /home/admin/oceanbase
valueType: string
- key: host.check.readonly.mountpoint
value: /
valueType: string

- key: monagent.node.custom.interval
  value: 1s
  valueType: string
- key: monagent.node.ntp.server
  value: 127.0.0.1
  valueType: string
- key: observer.coredump.path
  value: /data/1
  valueType: string
- key: monagent.pipeline.ob.log.status
  value: inactive
  valueType: string
- key: monagent.pipeline.ob.trace.status
  value: inactive
  valueType: string
- key: es.client.addresses
  value: ""
  valueType: string
- key: es.client.auth.username
  value: ""
  valueType: string
- key: es.client.auth.password
  value:
  valueType: string
  encrypted: true

- key: observer.log.path
  value: /home/admin/oceanbase/log
  valueType: string
- key: agent.log.path
  value: /home/admin/obagent/log
  valueType: string
- key: os.log.path
  value: /var/log
  valueType: string

- key: monagent.second.metric.cache.update.interval
  value: 15s
  valueType: string

- key: monagent.mysql.monitor.user
  value: mysql_monitor_user
  valueType: string
- key: monagent.mysql.monitor.password
  value:
  valueType: string
  encrypted: true
- key: monagent.mysql.sql.port
  value: 3306
  valueType: int64
- key: monagent.mysql.host
  value: 127.0.0.1
  valueType: string
- key: monagent.alertmanager.address
  value:
  valueType: string
- key: monagent.pipeline.ob.alertmanager.status
  value: inactive
  valueType: string
- key: monagent.pipeline.mysql.status
  value: inactive

发现仍为默认文件 自定义设置并未生效

1 个赞
  1. obd cluster edit-config {deployname} 打码脱敏后可以发截图,或者直接发 ~/.obd/cluster/{deployname}/config.yaml 文件通过附件上传。 (现在直接贴的 格式全是乱的)
    2.根据截图提示 执行后把对应的日志上传

obd display-trace bd4af53e-2de1-11ef-806c-58c7acca34ba
[2024-06-19 10:15:03.848] [DEBUG] - cmd: [‘ob_nj1_obkv_2_agent_only’]
[2024-06-19 10:15:03.848] [DEBUG] - opts: {‘servers’: None, ‘components’: None, ‘force_delete’: None, ‘strict_check’: None, ‘without_parameter’: None}
[2024-06-19 10:15:03.848] [DEBUG] - mkdir /root/.obd/lock/
[2024-06-19 10:15:03.848] [DEBUG] - unknown lock mode
[2024-06-19 10:15:03.848] [DEBUG] - try to get share lock /root/.obd/lock/global
[2024-06-19 10:15:03.849] [DEBUG] - share lock /root/.obd/lock/global, count 1
[2024-06-19 10:15:03.849] [DEBUG] - Get Deploy by name
[2024-06-19 10:15:03.849] [DEBUG] - mkdir /root/.obd/cluster/
[2024-06-19 10:15:03.849] [DEBUG] - mkdir /root/.obd/config_parser/
[2024-06-19 10:15:03.849] [DEBUG] - try to get exclusive lock /root/.obd/lock/deploy_ob_nj1_obkv_2_agent_only
[2024-06-19 10:15:03.849] [DEBUG] - exclusive lock /root/.obd/lock/deploy_ob_nj1_obkv_2_agent_only, count 1
[2024-06-19 10:15:03.853] [DEBUG] - Deploy status judge
[2024-06-19 10:15:03.854] [INFO] Get local repositories
[2024-06-19 10:15:03.854] [DEBUG] - mkdir /root/.obd/repository
[2024-06-19 10:15:03.854] [DEBUG] - Get local repository obagent-4.2.2-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:03.855] [DEBUG] - Search repository obagent version: 4.2.2, tag: 19739a07a12eab736aff86ecf357b1ae660b554e, release: None, package_hash: None
[2024-06-19 10:15:03.855] [DEBUG] - try to get share lock /root/.obd/lock/mirror_and_repo
[2024-06-19 10:15:03.855] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo, count 1
[2024-06-19 10:15:03.855] [DEBUG] - mkdir /root/.obd/repository/obagent
[2024-06-19 10:15:03.857] [DEBUG] - Found repository obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:03.985] [DEBUG] - Get deploy config
[2024-06-19 10:15:03.998] [INFO] Search plugins
[2024-06-19 10:15:03.998] [DEBUG] - Searching start_check plugin for components …
[2024-06-19 10:15:03.998] [DEBUG] - Searching start_check plugin for obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:03.999] [DEBUG] - mkdir /root/.obd/plugins
[2024-06-19 10:15:04.000] [DEBUG] - Found for obagent-py_script_start_check-1.3.0 for obagent-4.2.2
[2024-06-19 10:15:04.000] [DEBUG] - Searching create_tenant plugin for components …
[2024-06-19 10:15:04.000] [DEBUG] - Searching create_tenant plugin for obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:04.000] [DEBUG] - No such create_tenant plugin for obagent-4.2.2
[2024-06-19 10:15:04.000] [DEBUG] - Searching tenant_optimize plugin for components …
[2024-06-19 10:15:04.000] [DEBUG] - Searching tenant_optimize plugin for obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:04.001] [DEBUG] - No such tenant_optimize plugin for obagent-4.2.2
[2024-06-19 10:15:04.001] [DEBUG] - Searching start plugin for components …
[2024-06-19 10:15:04.001] [DEBUG] - Searching start plugin for obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:04.001] [DEBUG] - Found for obagent-py_script_start-1.3.0 for obagent-4.2.2
[2024-06-19 10:15:04.001] [DEBUG] - Searching connect plugin for components …
[2024-06-19 10:15:04.001] [DEBUG] - Searching connect plugin for obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:04.002] [DEBUG] - Found for obagent-py_script_connect-1.3.0 for obagent-4.2.2
[2024-06-19 10:15:04.002] [DEBUG] - Searching bootstrap plugin for components …
[2024-06-19 10:15:04.002] [DEBUG] - Searching bootstrap plugin for obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:04.002] [DEBUG] - Found for obagent-py_script_bootstrap-0.1 for obagent-4.2.2
[2024-06-19 10:15:04.002] [DEBUG] - Searching display plugin for components …
[2024-06-19 10:15:04.002] [DEBUG] - Searching display plugin for obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:04.003] [DEBUG] - Found for obagent-py_script_display-1.3.0 for obagent-4.2.2
[2024-06-19 10:15:04.129] [INFO] Load cluster param plugin
[2024-06-19 10:15:04.129] [DEBUG] - Get local repository obagent-4.2.2-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:04.130] [DEBUG] - Searching param plugin for components …
[2024-06-19 10:15:04.130] [DEBUG] - Search param plugin for obagent
[2024-06-19 10:15:04.130] [DEBUG] - Found for obagent-param-1.3.0 for obagent-4.2.2
[2024-06-19 10:15:04.130] [DEBUG] - Applying obagent-param-1.3.0 for obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:04.260] [INFO] Open ssh connection
[2024-06-19 10:15:04.264] [DEBUG] - host: 172.28.65.xxx, port: 22, user: admin, password: xxxxxxxx
[2024-06-19 10:15:04.357] [DEBUG] - host: 172.28.65.xxx, port: 22, user: admin, password: xxxxxxxx
[2024-06-19 10:15:04.449] [DEBUG] - host: 172.28.65.xxx, port: 22, user: admin, password: xxxxxxxx
[2024-06-19 10:15:04.549] [DEBUG] - Call obagent-py_script_start_check-1.3.0 for obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:04.549] [DEBUG] - import start_check
[2024-06-19 10:15:04.551] [DEBUG] - add start_check ref count to 1
[2024-06-19 10:15:04.552] [INFO] Check before start obagent
[2024-06-19 10:15:04.553] [DEBUG] – admin@172.28.65.xxx execute: cat /home/admin/obagent/run/ob_agentd.pid
[2024-06-19 10:15:04.705] [DEBUG] – exited code 1, error output:
[2024-06-19 10:15:04.705] [DEBUG] cat: /home/admin/obagent/run/ob_agentd.pid: No such file or directory
[2024-06-19 10:15:04.706] [DEBUG]
[2024-06-19 10:15:04.706] [DEBUG] – 172.28.65.xxx port check
[2024-06-19 10:15:04.706] [DEBUG] – admin@172.28.65.xxx execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:46A9’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-06-19 10:15:04.901] [DEBUG] – exited code 0
[2024-06-19 10:15:04.902] [DEBUG] – admin@172.28.65.xxx execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:46A8’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-06-19 10:15:05.093] [DEBUG] – exited code 0
[2024-06-19 10:15:05.094] [DEBUG] – admin@172.28.65.xxx execute: cat /home/admin/obagent/run/ob_agentd.pid
[2024-06-19 10:15:05.237] [DEBUG] – exited code 1, error output:
[2024-06-19 10:15:05.237] [DEBUG] cat: /home/admin/obagent/run/ob_agentd.pid: No such file or directory
[2024-06-19 10:15:05.237] [DEBUG]
[2024-06-19 10:15:05.237] [DEBUG] – 172.28.65.xxx port check
[2024-06-19 10:15:05.237] [DEBUG] – admin@172.28.65.xxx execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:46A9’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-06-19 10:15:05.425] [DEBUG] – exited code 0
[2024-06-19 10:15:05.426] [DEBUG] – admin@172.28.65.xxx execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:46A8’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-06-19 10:15:05.615] [DEBUG] – exited code 0
[2024-06-19 10:15:05.615] [DEBUG] – admin@172.28.65.xxx execute: cat /home/admin/obagent/run/ob_agentd.pid
[2024-06-19 10:15:05.760] [DEBUG] – exited code 1, error output:
[2024-06-19 10:15:05.760] [DEBUG] cat: /home/admin/obagent/run/ob_agentd.pid: No such file or directory
[2024-06-19 10:15:05.761] [DEBUG]
[2024-06-19 10:15:05.761] [DEBUG] – 172.28.65.xxx port check
[2024-06-19 10:15:05.761] [DEBUG] – admin@172.28.65.xxx execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:46A9’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-06-19 10:15:05.949] [DEBUG] – exited code 0
[2024-06-19 10:15:05.949] [DEBUG] – admin@172.28.65.xxx execute: bash -c ‘cat /proc/net/{tcp*,udp*}’ | awk -F’ ’ ‘{if($4==“0A”) print $2,$4,$10}’ | grep ‘:46A8’ | awk -F’ ’ ‘{print $3}’ | uniq
[2024-06-19 10:15:06.134] [DEBUG] – exited code 0
[2024-06-19 10:15:06.249] [DEBUG] - sub start_check ref count to 0
[2024-06-19 10:15:06.249] [DEBUG] - export start_check
[2024-06-19 10:15:06.249] [DEBUG] - plugin obagent-py_script_start_check-1.3.0 result: True
[2024-06-19 10:15:06.249] [DEBUG] - Call obagent-py_script_start-1.3.0 for obagent-4.2.2-100000042024011120.el7-19739a07a12eab736aff86ecf357b1ae660b554e
[2024-06-19 10:15:06.249] [DEBUG] - import start
[2024-06-19 10:15:06.311] [DEBUG] - add start ref count to 1
[2024-06-19 10:15:06.320] [INFO] Start obagent
[2024-06-19 10:15:06.321] [DEBUG] – admin@172.28.65.xxx execute: cat /home/admin/obagent/run/ob_agentd.pid
[2024-06-19 10:15:06.473] [DEBUG] – exited code 1, error output:
[2024-06-19 10:15:06.473] [DEBUG] cat: /home/admin/obagent/run/ob_agentd.pid: No such file or directory
[2024-06-19 10:15:06.473] [DEBUG]
[2024-06-19 10:15:06.474] [DEBUG] – admin@172.28.65.xxx execute: cat /home/admin/obagent/conf/mgragent.yaml
[2024-06-19 10:15:06.664] [DEBUG] – exited code 0
[2024-06-19 10:15:06.665] [DEBUG] – write install:
[2024-06-19 10:15:06.665] [DEBUG] path: ${obagent.home.path}
[2024-06-19 10:15:06.665] [DEBUG] server:
[2024-06-19 10:15:06.665] [DEBUG] address: 0.0.0.0:${ocp.agent.manager.http.port}
[2024-06-19 10:15:06.665] [DEBUG] runDir: ${obagent.home.path}/run
[2024-06-19 10:15:06.665] [DEBUG] sdkConfig:
[2024-06-19 10:15:06.665] [DEBUG] configPropertiesDir: ${obagent.home.path}/conf/config_properties
[2024-06-19 10:15:06.665] [DEBUG] moduleConfigDir: ${obagent.home.path}/conf/module_config
[2024-06-19 10:15:06.665] [DEBUG] cryptoPath: ${obagent.home.path}/conf/.config_secret.key
[2024-06-19 10:15:06.665] [DEBUG] cryptoMethod: plain
[2024-06-19 10:15:06.665] [DEBUG] shellf:
[2024-06-19 10:15:06.665] [DEBUG] template: ${obagent.home.path}/conf/shell_templates/shell_template.yaml
[2024-06-19 10:15:06.665] [DEBUG] to admin@172.28.65.xxx:22: /home/admin/obagent/conf/mgragent.yaml
[2024-06-19 10:15:06.998] [DEBUG] - current remote_transporter RemoteTransporter.CLIENT
[2024-06-19 10:15:06.998] [DEBUG] – admin@172.28.65.xxx execute: mkdir -p /home/admin/obagent/conf && rm -fr /home/admin/obagent/conf/mgragent.yaml
[2024-06-19 10:15:07.143] [DEBUG] – exited code 0
[2024-06-19 10:15:07.143] [DEBUG] – send /tmp/tmp7whcmvwo to /home/admin/obagent/conf/mgragent.yaml
[2024-06-19 10:15:07.184] [DEBUG] - admin@172.28.65.xxx execute: chmod 600 /home/admin/obagent/conf/mgragent.yaml
[2024-06-19 10:15:07.327] [DEBUG] - exited code 0
[2024-06-19 10:15:07.327] [DEBUG] – admin@172.28.65.xxx execute: chmod 755 /home/admin/obagent/conf/mgragent.yaml
[2024-06-19 10:15:07.509] [DEBUG] – exited code 0
[2024-06-19 10:15:07.509] [DEBUG] – admin@172.28.65.xxx execute: cat /home/admin/obagent/conf/monagent.yaml
[2024-06-19 10:15:07.692] [DEBUG] – exited code 0
[2024-06-19 10:15:07.692] [DEBUG] – write server:
[2024-06-19 10:15:07.692] [DEBUG] address: 0.0.0.0:${ocp.agent.monitor.http.port}
[2024-06-19 10:15:07.692] [DEBUG] runDir: ${obagent.home.path}/run
[2024-06-19 10:15:07.692] [DEBUG]
[2024-06-19 10:15:07.692] [DEBUG] cryptoMethod: plain
[2024-06-19 10:15:07.692] [DEBUG] cryptoPath: ${obagent.home.path}/conf/.config_secret.key
[2024-06-19 10:15:07.692] [DEBUG] modulePath: ${obagent.home.path}/conf/module_config
[2024-06-19 10:15:07.692] [DEBUG] propertiesPath: ${obagent.home.path}/conf/config_properties
[2024-06-19 10:15:07.692] [DEBUG] to admin@172.28.65.xxx:22: /home/admin/obagent/conf/monagent.yaml
[2024-06-19 10:15:07.692] [DEBUG] – admin@172.28.65.xxx execute: mkdir -p /home/admin/obagent/conf && rm -fr /home/admin/obagent/conf/monagent.yaml
[2024-06-19 10:15:07.879] [DEBUG] – exited code 0
[2024-06-19 10:15:07.879] [DEBUG] – send /tmp/tmppjigl3po to /home/admin/obagent/conf/monagent.yaml
[2024-06-19 10:15:07.920] [DEBUG] - admin@172.28.65.xxx execute: chmod 600 /home/admin/obagent/conf/monagent.yaml
[2024-06-19 10:15:08.067] [DEBUG] - exited code 0
[2024-06-19 10:15:08.068] [DEBUG] – admin@172.28.65.xxx execute: chmod 755 /home/admin/obagent/conf/monagent.yaml
[2024-06-19 10:15:08.251] [DEBUG] – exited code 0
[2024-06-19 10:15:08.251] [DEBUG] – admin@172.28.65.xxx execute: cat /home/admin/obagent/conf/agentctl.yaml
[2024-06-19 10:15:08.434] [DEBUG] – exited code 0
[2024-06-19 10:15:08.434] [DEBUG] – write log:
[2024-06-19 10:15:08.434] [DEBUG] level: info
[2024-06-19 10:15:08.434] [DEBUG] filename: ${obagent.home.path}/log/agentctl.log
[2024-06-19 10:15:08.434] [DEBUG] maxsize: 30
[2024-06-19 10:15:08.434] [DEBUG] maxage: 30
[2024-06-19 10:15:08.434] [DEBUG] maxbackups: 10
[2024-06-19 10:15:08.434] [DEBUG] localtime: true
[2024-06-19 10:15:08.434] [DEBUG] compress: true
[2024-06-19 10:15:08.434] [DEBUG]
[2024-06-19 10:15:08.434] [DEBUG] runDir: ${obagent.home.path}/run
[2024-06-19 10:15:08.434] [DEBUG] confDir: ${obagent.home.path}/conf
[2024-06-19 10:15:08.434] [DEBUG] logDir: ${obagent.home.path}/log
[2024-06-19 10:15:08.434] [DEBUG] backupDir: ${obagent.home.path}/backup
[2024-06-19 10:15:08.434] [DEBUG] pkgStoreDir: ${obagent.home.path}/pkg_store
[2024-06-19 10:15:08.434] [DEBUG] taskStoreDir: ${obagent.home.path}/task_store
[2024-06-19 10:15:08.434] [DEBUG] agentPkgName: obagent
[2024-06-19 10:15:08.434] [DEBUG] pkgExt: rpm
[2024-06-19 10:15:08.434] [DEBUG]
[2024-06-19 10:15:08.434] [DEBUG] sdkConfig:
[2024-06-19 10:15:08.434] [DEBUG] configPropertiesDir: ${obagent.home.path}/conf/config_properties
[2024-06-19 10:15:08.434] [DEBUG] moduleConfigDir: ${obagent.home.path}/conf/module_config
[2024-06-19 10:15:08.434] [DEBUG] cryptoPath: ${obagent.home.path}/conf/.config_secret.key
[2024-06-19 10:15:08.435] [DEBUG] cryptoMethod: plain
[2024-06-19 10:15:08.435] [DEBUG] to admin@172.28.65.xxx:22: /home/admin/obagent/conf/agentctl.yaml
[2024-06-19 10:15:08.435] [DEBUG] – admin@172.28.65.xxx execute: mkdir -p /home/admin/obagent/conf && rm -fr /home/admin/obagent/conf/agentctl.yaml
[2024-06-19 10:15:08.621] [DEBUG] – exited code 0
[2024-06-19 10:15:08.621] [DEBUG] – send /tmp/tmp5chnyelo to /home/admin/obagent/conf/agentctl.yaml
[2024-06-19 10:15:08.661] [DEBUG] - admin@172.28.65.xxx execute: chmod 600 /home/admin/obagent/conf/agentctl.yaml
[2024-06-19 10:15:08.805] [DEBUG] - exited code 0
[2024-06-19 10:15:08.805] [DEBUG] – admin@172.28.65.xxx execute: chmod 755 /home/admin/obagent/conf/agentctl.yaml
[2024-06-19 10:15:08.989] [DEBUG] – exited code 0
[2024-06-19 10:15:08.989] [DEBUG] – admin@172.28.65.xxx execute: cd /home/admin/obagent;/home/admin/obagent/bin/ob_agentctl config -u agent.log.path=log/monagent.log,agent.http.basic.auth.username=admin,agent.http.basic.auth.password=root,ocp.agent.manager.http.port=18089,mgragent.log.maxsize.mb=30,ocp.agent.monitor.http.port=18088,monagent.ob.monitor.password=ThuL7FHdcEkuTO9Xm5kqCauh8h8e89CwF1ilCklEj/U=,monagent.ob.sql.port=4881,monagent.ob.rpc.port=4882,monagent.ob.cluster.name=ob_nj1_obkv,monagent.ob.cluster.id=20230732,monagent.ob.zone.name=zone1,monagent.log.level=info,monagent.pipeline.ob.status=active,obagent.home.path=/home/admin/obagent,mgragent.log.level=INFO,mgragent.log.maxage.days=7,monagent.log.maxsize.mb=30,monagent.log.maxage.days=7,monagent.host.ip=172.28.65.xxx && touch /home/admin/obagent/.configured
[2024-06-19 10:15:09.200] [DEBUG] – exited code 255, error output:
[2024-06-19 10:15:09.200] [DEBUG] {“successful”:false,“message”:null,“error”:“key-value pair monagent.ob.monitor.password=xxx is not a valid key=value formatted.”}
[2024-06-19 10:15:09.200] [ERROR] failed to set config to 172.28.65.xxx obagent.
[2024-06-19 10:15:09.200] [DEBUG] - sub start ref count to 0
[2024-06-19 10:15:09.201] [DEBUG] - export start
[2024-06-19 10:15:09.201] [DEBUG] - plugin obagent-py_script_start-1.3.0 result: False
[2024-06-19 10:15:09.201] [ERROR] obagent start failed
[2024-06-19 10:15:09.204] [INFO] See OceanBase分布式数据库-海量数据 笔笔算数 .
[2024-06-19 10:15:09.204] [INFO] Trace ID: bd4af53e-2de1-11ef-806c-58c7acca34ba
[2024-06-19 10:15:09.204] [INFO] If you want to view detailed obd logs, please run: obd display-trace bd4af53e-2de1-11ef-806c-58c7acca34ba
[2024-06-19 10:15:09.204] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 0
[2024-06-19 10:15:09.205] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo
[2024-06-19 10:15:09.205] [DEBUG] - exclusive lock /root/.obd/lock/deploy_ob_nj1_obkv_2_agent_only release, count 0
[2024-06-19 10:15:09.205] [DEBUG] - unlock /root/.obd/lock/deploy_ob_nj1_obkv_2_agent_only
[2024-06-19 10:15:09.205] [DEBUG] - share lock /root/.obd/lock/global release, count 0
[2024-06-19 10:15:09.205] [DEBUG] - unlock /root/.obd/lock/global
[2024-06-19 10:15:09.321] [INFO] [ERROR] failed to set config to 172.28.65.xxx obagent.
[2024-06-19 10:15:09.321] [INFO] [ERROR] obagent start failed
[2024-06-19 10:15:09.321] [INFO] See OceanBase分布式数据库-海量数据 笔笔算数 .
[2024-06-19 10:15:09.321] [INFO] Trace ID: bd4af53e-2de1-11ef-806c-58c7acca34ba
[2024-06-19 10:15:09.321] [INFO] If you want to view detailed obd logs, please run: obd display-trace bd4af53e-2de1-11ef-806c-58c7acca34ba
[2024-06-19 10:15:09.321] [INFO]

agent日志提供下看看呢。配置路径/oceanbase/ocp-agent/log/agentd.log

image
这里ip应该属于servers下一级
可以参考路径下的模版文件~/.oceanbase-all-in-one/obd/usr/obd/example/obagent

根据
obdeploy/example/obagent/obagent-only-example.yaml at master · oceanbase/obdeploy (github.com)

查看 是同级的 没有找到老师说的模板配置文件 可以发一下么

抱歉,这边看错了 :cold_sweat:

麻烦提供上传下完整的配置文件。和agentd.log日志。


看了一下 应该是你这个密码有问题, 这里面不能有,= 这个密码建议直接用obd 随机生成的。

obagent 会自动根据你的密码做加密的,不需要你做加密。所以这里配置直接用加密前的密码

这个密码就是ocp_monitor 用户的密码 从ocp_agent中取出来的 因为现在obagent不支持自定义监控用户了 只能用默认的用户与默认的密码

配置文件已经发了 里面有敏感信息只能截图发送

agentd.log日志呢,麻烦提供下完整的。