OceanBase 4.2.1版本容器启动后一直报obagent start failed

【 使用环境 】测试环境
【obagent 】
【 4.2.1】
【问题描述】清晰明确描述问题
【复现路径】重启DB容器
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):

【SOP系列 22 】——故障诊断第一步(自助诊断和诊断信息收集)

1 个赞

错误信息提供下呢。日志也提供下

[2024-05-22 02:22:10.213] [DEBUG] – execute sql: select * from oceanbase.__all_server. args: None
[2024-05-22 02:22:10.217] [DEBUG] – OBD-5000: select * from oceanbase.__all_server execute failed
[2024-05-22 02:22:10.218] [ERROR] Traceback (most recent call last):
[2024-05-22 02:22:10.218] [ERROR] File “core.py”, line 1592, in start_cluster
[2024-05-22 02:22:10.218] [ERROR] File “core.py”, line 1713, in _start_cluster
[2024-05-22 02:22:10.218] [ERROR] File “core.py”, line 184, in call_plugin
[2024-05-22 02:22:10.218] [ERROR] File “_plugin.py”, line 324, in call
[2024-05-22 02:22:10.218] [ERROR] File “_plugin.py”, line 286, in _new_func
[2024-05-22 02:22:10.218] [ERROR] File “/root/.obd/plugins/oceanbase-ce/3.1.0/display.py”, line 37, in display
[2024-05-22 02:22:10.218] [ERROR] servers = cursor.fetchall(‘select * from oceanbase.__all_server’, raise_exception=True, exc_level=‘verbose’)
[2024-05-22 02:22:10.218] [ERROR] File “_stdio.py”, line 888, in func_wrapper
[2024-05-22 02:22:10.218] [ERROR] File “/root/.obd/plugins/oceanbase-ce/3.1.0/connect.py”, line 110, in fetchall
[2024-05-22 02:22:10.219] [ERROR] return self.execute(sql, args=args, execute_func=‘fetchall’, raise_exception=raise_exception, exc_level=exc_level, stdio=stdio)
[2024-05-22 02:22:10.219] [ERROR] File “_stdio.py”, line 888, in func_wrapper
[2024-05-22 02:22:10.219] [ERROR] File “/root/.obd/plugins/oceanbase-ce/3.1.0/connect.py”, line 93, in execute
[2024-05-22 02:22:10.219] [ERROR] self.cursor.execute(sql, args)
[2024-05-22 02:22:10.219] [ERROR] File “/usr/obd/lib/site-packages/pymysql/cursors.py”, line 148, in execute
[2024-05-22 02:22:10.219] [ERROR] result = self._query(query)
[2024-05-22 02:22:10.219] [ERROR] File “/usr/obd/lib/site-packages/pymysql/cursors.py”, line 310, in _query
[2024-05-22 02:22:10.219] [ERROR] conn.query(q)
[2024-05-22 02:22:10.219] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 548, in query
[2024-05-22 02:22:10.219] [ERROR] self._affected_rows = self._read_query_result(unbuffered=unbuffered)
[2024-05-22 02:22:10.219] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 775, in _read_query_result
[2024-05-22 02:22:10.219] [ERROR] result.read()
[2024-05-22 02:22:10.219] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 1156, in read
[2024-05-22 02:22:10.219] [ERROR] first_packet = self.connection._read_packet()
[2024-05-22 02:22:10.219] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 725, in _read_packet
[2024-05-22 02:22:10.219] [ERROR] packet.raise_for_error()
[2024-05-22 02:22:10.219] [ERROR] File “/usr/obd/lib/site-packages/pymysql/protocol.py”, line 221, in raise_for_error
[2024-05-22 02:22:10.219] [ERROR] err.raise_mysql_exception(self._data)
[2024-05-22 02:22:10.219] [ERROR] File “/usr/obd/lib/site-packages/pymysql/err.py”, line 143, in raise_mysql_exception
[2024-05-22 02:22:10.219] [ERROR] raise errorclass(errno, errval)
[2024-05-22 02:22:10.219] [ERROR] pymysql.err.ProgrammingError: (1146, “Table ‘oceanbase.__all_server’ doesn’t exist”)
[2024-05-22 02:22:10.219] [ERROR]
[2024-05-22 02:22:13.224] [DEBUG] – execute sql: select * from oceanbase.__all_server. args: None
[2024-05-22 02:22:13.234] [DEBUG] – OBD-5000: select * from oceanbase.__all_server execute failed
[2024-05-22 02:22:13.235] [ERROR] Traceback (most recent call last):
[2024-05-22 02:22:13.235] [ERROR] File “core.py”, line 1592, in start_cluster
[2024-05-22 02:22:13.235] [ERROR] File “core.py”, line 1713, in _start_cluster
[2024-05-22 02:22:13.235] [ERROR] File “core.py”, line 184, in call_plugin
[2024-05-22 02:22:13.235] [ERROR] File “_plugin.py”, line 324, in call
[2024-05-22 02:22:13.235] [ERROR] File “_plugin.py”, line 286, in _new_func
[2024-05-22 02:22:13.235] [ERROR] File “/root/.obd/plugins/oceanbase-ce/3.1.0/display.py”, line 37, in display
[2024-05-22 02:22:13.235] [ERROR] servers = cursor.fetchall(‘select * from oceanbase.__all_server’, raise_exception=True, exc_level=‘verbose’)
[2024-05-22 02:22:13.235] [ERROR] File “_stdio.py”, line 888, in func_wrapper
[2024-05-22 02:22:13.235] [ERROR] File “/root/.obd/plugins/oceanbase-ce/3.1.0/connect.py”, line 110, in fetchall
[2024-05-22 02:22:13.235] [ERROR] return self.execute(sql, args=args, execute_func=‘fetchall’, raise_exception=raise_exception, exc_level=exc_level, stdio=stdio)
[2024-05-22 02:22:13.235] [ERROR] File “_stdio.py”, line 888, in func_wrapper
[2024-05-22 02:22:13.235] [ERROR] File “/root/.obd/plugins/oceanbase-ce/3.1.0/connect.py”, line 93, in execute
[2024-05-22 02:22:13.235] [ERROR] self.cursor.execute(sql, args)
[2024-05-22 02:22:13.235] [ERROR] File “/usr/obd/lib/site-packages/pymysql/cursors.py”, line 148, in execute
[2024-05-22 02:22:13.235] [ERROR] result = self._query(query)
[2024-05-22 02:22:13.235] [ERROR] File “/usr/obd/lib/site-packages/pymysql/cursors.py”, line 310, in _query
[2024-05-22 02:22:13.236] [ERROR] conn.query(q)
[2024-05-22 02:22:13.236] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 548, in query
[2024-05-22 02:22:13.236] [ERROR] self._affected_rows = self._read_query_result(unbuffered=unbuffered)
[2024-05-22 02:22:13.236] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 775, in _read_query_result
[2024-05-22 02:22:13.236] [ERROR] result.read()
[2024-05-22 02:22:13.236] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 1156, in read
[2024-05-22 02:22:13.236] [ERROR] first_packet = self.connection._read_packet()
[2024-05-22 02:22:13.236] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 725, in _read_packet
[2024-05-22 02:22:13.236] [ERROR] packet.raise_for_error()
[2024-05-22 02:22:13.236] [ERROR] File “/usr/obd/lib/site-packages/pymysql/protocol.py”, line 221, in raise_for_error
[2024-05-22 02:22:13.236] [ERROR] err.raise_mysql_exception(self._data)
[2024-05-22 02:22:13.236] [ERROR] File “/usr/obd/lib/site-packages/pymysql/err.py”, line 143, in raise_mysql_exception
[2024-05-22 02:22:13.236] [ERROR] raise errorclass(errno, errval)
[2024-05-22 02:22:13.236] [ERROR] pymysql.err.ProgrammingError: (1146, “Table ‘oceanbase.__all_server’ doesn’t exist”)
[2024-05-22 02:22:13.236] [ERROR]
[2024-05-22 02:22:16.242] [DEBUG] – execute sql: select * from oceanbase.__all_server. args: None
[2024-05-22 02:22:18.456] [DEBUG] – OBD-5000: select * from oceanbase.__all_server execute failed
[2024-05-22 02:22:18.457] [ERROR] Traceback (most recent call last):
[2024-05-22 02:22:18.457] [ERROR] File “core.py”, line 1592, in start_cluster
[2024-05-22 02:22:18.457] [ERROR] File “core.py”, line 1713, in _start_cluster
[2024-05-22 02:22:18.457] [ERROR] File “core.py”, line 184, in call_plugin
[2024-05-22 02:22:18.457] [ERROR] File “_plugin.py”, line 324, in call
[2024-05-22 02:22:18.457] [ERROR] File “_plugin.py”, line 286, in _new_func
[2024-05-22 02:22:18.457] [ERROR] File “/root/.obd/plugins/oceanbase-ce/3.1.0/display.py”, line 37, in display
[2024-05-22 02:22:18.457] [ERROR] servers = cursor.fetchall(‘select * from oceanbase.__all_server’, raise_exception=True, exc_level=‘verbose’)
[2024-05-22 02:22:18.457] [ERROR] File “_stdio.py”, line 888, in func_wrapper
[2024-05-22 02:22:18.457] [ERROR] File “/root/.obd/plugins/oceanbase-ce/3.1.0/connect.py”, line 110, in fetchall
[2024-05-22 02:22:18.457] [ERROR] return self.execute(sql, args=args, execute_func=‘fetchall’, raise_exception=raise_exception, exc_level=exc_level, stdio=stdio)
[2024-05-22 02:22:18.457] [ERROR] File “_stdio.py”, line 888, in func_wrapper
[2024-05-22 02:22:18.457] [ERROR] File “/root/.obd/plugins/oceanbase-ce/3.1.0/connect.py”, line 93, in execute
[2024-05-22 02:22:18.458] [ERROR] self.cursor.execute(sql, args)
[2024-05-22 02:22:18.458] [ERROR] File “/usr/obd/lib/site-packages/pymysql/cursors.py”, line 148, in execute
[2024-05-22 02:22:18.458] [ERROR] result = self._query(query)
[2024-05-22 02:22:18.458] [ERROR] File “/usr/obd/lib/site-packages/pymysql/cursors.py”, line 310, in _query
[2024-05-22 02:22:18.458] [ERROR] conn.query(q)
[2024-05-22 02:22:18.458] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 548, in query
[2024-05-22 02:22:18.458] [ERROR] self._affected_rows = self._read_query_result(unbuffered=unbuffered)
[2024-05-22 02:22:18.458] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 775, in _read_query_result
[2024-05-22 02:22:18.458] [ERROR] result.read()
[2024-05-22 02:22:18.458] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 1156, in read
[2024-05-22 02:22:18.458] [ERROR] first_packet = self.connection._read_packet()
[2024-05-22 02:22:18.458] [ERROR] File “/usr/obd/lib/site-packages/pymysql/connections.py”, line 725, in _read_packet
[2024-05-22 02:22:18.458] [ERROR] packet.raise_for_error()
[2024-05-22 02:22:18.458] [ERROR] File “/usr/obd/lib/site-packages/pymysql/protocol.py”, line 221, in raise_for_error
[2024-05-22 02:22:18.458] [ERROR] err.raise_mysql_exception(self._data)
[2024-05-22 02:22:18.458] [ERROR] File “/usr/obd/lib/site-packages/pymysql/err.py”, line 143, in raise_mysql_exception
[2024-05-22 02:22:18.458] [ERROR] raise errorclass(errno, errval)
[2024-05-22 02:22:18.458] [ERROR] pymysql.err.OperationalError: (4013, ‘No memory or reach tenant memory limit’)
[2024-05-22 02:22:18.458] [ERROR]
[2024-05-22 02:22:18.459] [INFO] [ERROR] failed to start 127.0.0.1 obagent.
[2024-05-22 02:22:18.460] [INFO] [ERROR] obagent start failed
[2024-05-22 02:22:18.460] [INFO]
[2024-05-22 02:22:18.460] [DEBUG] - sub display ref count to 0
[2024-05-22 02:22:18.460] [DEBUG] - export display
[2024-05-22 02:22:18.525] [INFO] See OceanBase分布式数据库-海量数据 笔笔算数 .
[2024-05-22 02:22:18.525] [INFO] Trace ID: a12d248c-17e1-11ef-a038-0242ac110002
[2024-05-22 02:22:18.525] [INFO] If you want to view detailed obd logs, please run: obd display-trace a12d248c-17e1-11ef-a038-0242ac110002
[2024-05-22 02:22:18.525] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 1
[2024-05-22 02:22:18.526] [DEBUG] - share lock /root/.obd/lock/mirror_and_repo release, count 0
[2024-05-22 02:22:18.526] [DEBUG] - unlock /root/.obd/lock/mirror_and_repo
[2024-05-22 02:22:18.526] [DEBUG] - exclusive lock /root/.obd/lock/deploy_obcluster release, count 0
[2024-05-22 02:22:18.526] [DEBUG] - unlock /root/.obd/lock/deploy_obcluster
[2024-05-22 02:22:18.526] [DEBUG] - share lock /root/.obd/lock/global release, count 0
[2024-05-22 02:22:18.526] [DEBUG] - unlock /root/.obd/lock/global

启动时扩下内存试试看


generate boot.yaml …
oceanbase-ce docker in mini mode
create boot dirs and deploy ob cluster …
name: obagent
version: 4.2.1
release:100000092023101717.el7
arch: x86_64
md5: 94a73176810c14d456be27bbffa257759425e1d1
add /root/pkg/obagent-4.2.1-100000092023101717.el7.x86_64.rpm to local mirror
name: oceanbase-ce
version: 4.2.1.0
release:100000102023092807.el7
arch: x86_64
md5: a8b9979de1f2809d74de71b2a536cff8aab15bff
add /root/pkg/oceanbase-ce-4.2.1.0-100000102023092807.el7.x86_64.rpm to local mirror
name: oceanbase-ce-libs
version: 4.2.1.0
release:100000102023092807.el7
arch: x86_64
md5: c440e2a7f36297521a108c2316ef0e35ce1251f7
add /root/pkg/oceanbase-ce-libs-4.2.1.0-100000102023092807.el7.x86_64.rpm to local mirror
Trace ID: 321c51e2-fec5-11ee-b7e0-0242ac110002
If you want to view detailed obd logs, please run: obd display-trace 321c51e2-fec5-11ee-b7e0-0242ac110002
±---------------------------------------------------------------------------------------------------------+
| local Package List |
±------------------±--------±-----------------------±-------±-----------------------------------------+
| name | version | release | arch | md5 |
±------------------±--------±-----------------------±-------±-----------------------------------------+
| obagent | 4.2.1 | 100000092023101717.el7 | x86_64 | 94a73176810c14d456be27bbffa257759425e1d1 |
| oceanbase-ce | 4.2.1.0 | 100000102023092807.el7 | x86_64 | a8b9979de1f2809d74de71b2a536cff8aab15bff |
| oceanbase-ce-libs | 4.2.1.0 | 100000102023092807.el7 | x86_64 | c440e2a7f36297521a108c2316ef0e35ce1251f7 |
±------------------±--------±-----------------------±-------±-----------------------------------------+
Trace ID: 32b5bcd8-fec5-11ee-ba4f-0242ac110002
If you want to view detailed obd logs, please run: obd display-trace 32b5bcd8-fec5-11ee-ba4f-0242ac110002
Local deploy is empty
Trace ID: 333947e2-fec5-11ee-8afb-0242ac110002
If you want to view detailed obd logs, please run: obd display-trace 333947e2-fec5-11ee-8afb-0242ac110002
Dev Mode: ON
Trace ID: 33bde484-fec5-11ee-b640-0242ac110002
If you want to view detailed obd logs, please run: obd display-trace 33bde484-fec5-11ee-b640-0242ac110002
[WARN] Use centos 7 remote mirror repository for anolis 8.8
Package oceanbase-ce-4.2.1.0-100000102023092807.el7 is available.
[WARN] Use centos 7 remote mirror repository for anolis 8.8
Package obagent-4.2.1-100000092023101717.el7 is available.
install oceanbase-ce-4.2.1.0 for local ok
install obagent-4.2.1 for local ok
Cluster param config check ok
Open ssh connection ok
Generate observer configuration ok
Generate obagent configuration ok
[WARN] Use centos 7 remote mirror repository for anolis 8.8
[WARN] Use centos 7 remote mirror repository for anolis 8.8
±-------------------------------------------------------------------------------------------+
| Packages |
±-------------±--------±-----------------------±-----------------------------------------+
| Repository | Version | Release | Md5 |
±-------------±--------±-----------------------±-----------------------------------------+
| oceanbase-ce | 4.2.1.0 | 100000102023092807.el7 | a8b9979de1f2809d74de71b2a536cff8aab15bff |
| obagent | 4.2.1 | 100000092023101717.el7 | 94a73176810c14d456be27bbffa257759425e1d1 |
±-------------±--------±-----------------------±-----------------------------------------+
Repository integrity check ok
Parameter check ok
Cluster status check ok
Initializes observer work home ok
Initializes obagent work home ok
Remote oceanbase-ce-4.2.1.0-100000102023092807.el7-a8b9979de1f2809d74de71b2a536cff8aab15bff repository install ok
Remote oceanbase-ce-4.2.1.0-100000102023092807.el7-a8b9979de1f2809d74de71b2a536cff8aab15bff repository lib check !!
Remote obagent-4.2.1-100000092023101717.el7-94a73176810c14d456be27bbffa257759425e1d1 repository install ok
Remote obagent-4.2.1-100000092023101717.el7-94a73176810c14d456be27bbffa257759425e1d1 repository lib check ok
Try to get lib-repository
[WARN] Use centos 7 remote mirror repository for anolis 8.8
Package oceanbase-ce-libs-4.2.1.0-100000102023092807.el7 is available.
install oceanbase-ce-libs-4.2.1.0 for local ok
Remote oceanbase-ce-libs-4.2.1.0-100000102023092807.el7-c440e2a7f36297521a108c2316ef0e35ce1251f7 repository install ok
Remote oceanbase-ce-4.2.1.0-100000102023092807.el7-a8b9979de1f2809d74de71b2a536cff8aab15bff repository lib check ok
obcluster deployed
Get local repositories ok
Search plugins ok
Open ssh connection ok
Load cluster param plugin ok
Check before start observer ok
[WARN] OBD-1011: (127.0.0.1) The recommended value of fs.aio-max-nr is 1048576 (Current value: 65536)
[WARN] OBD-1012: (127.0.0.1) clog and data use the same disk (/)

Check before start obagent ok
Start observer ok
observer program health check ok
Connect to observer ok
Initialize oceanbase-ce ok
Start obagent ok
obagent program health check ok
Connect to Obagent ok
Wait for observer init ok
±--------------------------------------------+
| observer |
±----------±--------±-----±------±-------+
| ip | version | port | zone | status |
±----------±--------±-----±------±-------+
| 127.0.0.1 | 4.2.1.0 | 2881 | zone1 | ACTIVE |
±----------±--------±-----±------±-------+
obclient -h127.0.0.1 -P2881 -uroot -Doceanbase -A

±--------------------------------------------------------------+
| obagent |
±-----------±-------------------±-------------------±-------+
| ip | mgragent_http_port | monagent_http_port | status |
±-----------±-------------------±-------------------±-------+
| 172.17.0.2 | 8089 | 8088 | active |
±-----------±-------------------±-------------------±-------+
obcluster running
Trace ID: 34402bc4-fec5-11ee-ac07-0242ac110002
If you want to view detailed obd logs, please run: obd display-trace 34402bc4-fec5-11ee-ac07-0242ac110002
Get local repositories and plugins ok
Open ssh connection ok
Connect to observer ok
Create tenant test ok
Trace ID: 6b332500-fec5-11ee-92c7-0242ac110002
If you want to view detailed obd logs, please run: obd display-trace 6b332500-fec5-11ee-92c7-0242ac110002
deploy success!
boot success!
find obd deploy information, skip configuring…
start ob cluster …
Get local repositories ok
Search plugins ok
Open ssh connection ok
Load cluster param plugin ok
Cluster status check ok
Check before start observer ok
[WARN] OBD-1011: (127.0.0.1) The recommended value of fs.aio-max-nr is 1048576 (Current value: 65536)

Check before start obagent ok
Start observer ok
observer program health check ok
Connect to observer ok
Start obagent ok
obagent program health check x
[WARN] failed to start 127.0.0.1 obagent
[ERROR] obagent start failed

可以参考下这个https://ask.oceanbase.com/t/topic/35604546 是否可以

经过多次测试,找到临时解决方案了,除了挂载/root/ob和/root/.obd外,还要把/root/obagent挂载,然后rm -rf /root/obagent/run/*就能成功重启,100%成功。这个在哪里操作呢?按照你们官方默认docker方式部署的

老版本docker的已知问题,没有1号进程回收obagent的僵尸进程导致

可使用新的docker版本

图片
需要升级到哪个版本,请说明下


已经更新最新版本,还是一样的起不来报
Check before start obagent ok
Start observer ok
observer program health check ok
Connect to observer ok
Start obagent ok
obagent program health check x
[WARN] failed to start 127.0.0.1 obagent
[ERROR] obagent start failed
Wait for observer init x
See OceanBase分布式数据库-海量数据 笔笔算数 .
Trace ID: dc4a426a-180a-11ef-a65e-0242ac110003
If you want to view detailed obd logs, please run: obd display-trace dc4a426a-180a-11ef-a65e-0242ac110003
boot failed!

我的说法有点问题

升级oceanbase的docker镜像版本,用4.3以后的吧

也就是要做版本升级,麻烦发下升级方式

docker没有版本升级,因为docker不是为生产环境准备的

我是开发环境,目前版本是4.2.1的版本,你说要做4.3的版本才行,是的否?那你们是否支持一键升级呢?我要保留以前容器的DB数据的,还有升级版本的方式发下,谢谢。

很抱歉,docker暂时不支持一键升级,暂时没有方法能连带镜像一起升级的

有没有临时处理方法?我大概知道你的意思就是要用你们4.3上的版本,那我用了这个版本,我以前配置租户还有租户下面的库表这些信息呢?怎么迁移过去?

有挂载这些出来吗/root/ob和/root/.obd

我按照你们官网知道docker run装的
这个是容器的全部信息,如下:
[
{
“Id”: “6277358170ce073773763ac29ca75aabe12459577daae663ecd89fb75cb4cdc7”,
“Created”: “2024-04-20T03:22:18.165999154Z”,
“Path”: “/bin/sh”,
“Args”: [
“-c”,
“_boot”
],
“State”: {
“Status”: “exited”,
“Running”: false,
“Paused”: false,
“Restarting”: false,
“OOMKilled”: false,
“Dead”: false,
“Pid”: 0,
“ExitCode”: 1,
“Error”: “”,
“StartedAt”: “2024-05-22T07:13:58.834580214Z”,
“FinishedAt”: “2024-05-22T07:17:13.871566054Z”
},
“Image”: “sha256:9e4b2bffa3e9778739b4922e11ce08896af324a2fc04cb65d1b63b5047d61dbb”,
“ResolvConfPath”: “/var/lib/docker/containers/6277358170ce073773763ac29ca75aabe12459577daae663ecd89fb75cb4cdc7/resolv.conf”,
“HostnamePath”: “/var/lib/docker/containers/6277358170ce073773763ac29ca75aabe12459577daae663ecd89fb75cb4cdc7/hostname”,
“HostsPath”: “/var/lib/docker/containers/6277358170ce073773763ac29ca75aabe12459577daae663ecd89fb75cb4cdc7/hosts”,
“LogPath”: “/var/lib/docker/containers/6277358170ce073773763ac29ca75aabe12459577daae663ecd89fb75cb4cdc7/6277358170ce073773763ac29ca75aabe12459577daae663ecd89fb75cb4cdc7-json.log”,
“Name”: “/obstandalone”,
“RestartCount”: 0,
“Driver”: “overlay2”,
“Platform”: “linux”,
“MountLabel”: “”,
“ProcessLabel”: “”,
“AppArmorProfile”: “”,
“ExecIDs”: null,
“HostConfig”: {
“Binds”: null,
“ContainerIDFile”: “”,
“LogConfig”: {
“Type”: “json-file”,
“Config”: {}
},
“NetworkMode”: “bridge”,
“PortBindings”: {
“2881/tcp”: [
{
“HostIp”: “”,
“HostPort”: “2881”
}
]
},
“RestartPolicy”: {
“Name”: “no”,
“MaximumRetryCount”: 0
},
“AutoRemove”: false,
“VolumeDriver”: “”,
“VolumesFrom”: null,
“ConsoleSize”: [
0,
0
],
“CapAdd”: null,
“CapDrop”: null,
“CgroupnsMode”: “host”,
“Dns”: [],
“DnsOptions”: [],
“DnsSearch”: [],
“ExtraHosts”: null,
“GroupAdd”: null,
“IpcMode”: “private”,
“Cgroup”: “”,
“Links”: null,
“OomScoreAdj”: 0,
“PidMode”: “”,
“Privileged”: false,
“PublishAllPorts”: false,
“ReadonlyRootfs”: false,
“SecurityOpt”: null,
“UTSMode”: “”,
“UsernsMode”: “”,
“ShmSize”: 67108864,
“Runtime”: “runc”,
“Isolation”: “”,
“CpuShares”: 0,
“Memory”: 0,
“NanoCpus”: 0,
“CgroupParent”: “”,
“BlkioWeight”: 0,
“BlkioWeightDevice”: [],
“BlkioDeviceReadBps”: null,
“BlkioDeviceWriteBps”: null,
“BlkioDeviceReadIOps”: null,
“BlkioDeviceWriteIOps”: null,
“CpuPeriod”: 0,
“CpuQuota”: 0,
“CpuRealtimePeriod”: 0,
“CpuRealtimeRuntime”: 0,
“CpusetCpus”: “”,
“CpusetMems”: “”,
“Devices”: [],
“DeviceCgroupRules”: null,
“DeviceRequests”: null,
“MemoryReservation”: 0,
“MemorySwap”: 0,
“MemorySwappiness”: null,
“OomKillDisable”: false,
“PidsLimit”: null,
“Ulimits”: null,
“CpuCount”: 0,
“CpuPercent”: 0,
“IOMaximumIOps”: 0,
“IOMaximumBandwidth”: 0,
“MaskedPaths”: [
“/proc/asound”,
“/proc/acpi”,
“/proc/kcore”,
“/proc/keys”,
“/proc/latency_stats”,
“/proc/timer_list”,
“/proc/timer_stats”,
“/proc/sched_debug”,
“/proc/scsi”,
“/sys/firmware”
],
“ReadonlyPaths”: [
“/proc/bus”,
“/proc/fs”,
“/proc/irq”,
“/proc/sys”,
“/proc/sysrq-trigger”
]
},
“GraphDriver”: {
“Data”: {
“LowerDir”: “/var/lib/docker/overlay2/e31744a1fdbdbe20142f4563980671f34a26a46f1a541f2b019bd353283aa251-init/diff:/var/lib/docker/overlay2/7ad94bdfa07d4fd3843436ab6a3885989563ddd21644667cb74b24df81360fb4/diff:/var/lib/docker/overlay2/2c1dfddde3d949c4c6b3135b16bf00e0fd1169b8c977a6a591451e84858b86ae/diff:/var/lib/docker/overlay2/c2cb774f6697ce72e517a658823d0c5423ae8c3c77d41d522c983073a199803a/diff:/var/lib/docker/overlay2/e0f4ff2f201d00ea8fb869cb940b34390b2fdf392264b3751e68c5dc1cf353f3/diff:/var/lib/docker/overlay2/e9b7dc44ed1099a7631680341dfa3cf236986d8fa02a37a2dcea92f9c08b5701/diff”,
“MergedDir”: “/var/lib/docker/overlay2/e31744a1fdbdbe20142f4563980671f34a26a46f1a541f2b019bd353283aa251/merged”,
“UpperDir”: “/var/lib/docker/overlay2/e31744a1fdbdbe20142f4563980671f34a26a46f1a541f2b019bd353283aa251/diff”,
“WorkDir”: “/var/lib/docker/overlay2/e31744a1fdbdbe20142f4563980671f34a26a46f1a541f2b019bd353283aa251/work”
},
“Name”: “overlay2”
},
“Mounts”: [],
“Config”: {
“Hostname”: “6277358170ce”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“ExposedPorts”: {
“2881/tcp”: {}
},
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“MINI_MODE=0”,
“PATH=/root/boot:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”
],
“Cmd”: [
“/bin/sh”,
“-c”,
“_boot”
],
“Image”: “9e4b2bffa3e9”,
“Volumes”: null,
“WorkingDir”: “/root”,
“Entrypoint”: null,
“OnBuild”: null,
“Labels”: {
“maintainer”: “OpenAnolis Cloud Native SIG”,
“org.opencontainers.image.created”: “2023-03-24 10:49:55+0800”,
“org.opencontainers.image.licenses”: “Mulan PSL v2”,
“org.opencontainers.image.title”: “Anolis OS Base Image”,
“org.opencontainers.image.vendor”: “Anolis OS”
}
},
“NetworkSettings”: {
“Bridge”: “”,
“SandboxID”: “1adc6c2f5babf99626344f54a44eef8de377be72cbf1fcc860e8339c8cb316e3”,
“SandboxKey”: “/var/run/docker/netns/1adc6c2f5bab”,
“Ports”: {},
“HairpinMode”: false,
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null,
“EndpointID”: “”,
“Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “”,
“IPPrefixLen”: 0,
“IPv6Gateway”: “”,
“MacAddress”: “”,
“Networks”: {
“bridge”: {
“IPAMConfig”: null,
“Links”: null,
“Aliases”: null,
“MacAddress”: “”,
“NetworkID”: “6b620dabf34c9d6fdda31ff91020d0c378cd1ba738b645371db38a7386c9a8dc”,
“EndpointID”: “”,
“Gateway”: “”,
“IPAddress”: “”,
“IPPrefixLen”: 0,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“DriverOpts”: null,
“DNSNames”: null
}
}
}
}
]

有没有什么方式将这个容器的数据拿出来?或者让这个容器重新跑起来?

挂盘可以通过nfs方式: 部署 NFS

容器起不来,可以先试着挂载下着三个盘/root/ob和/root/.obd、/root/obagent,然后rm -rf /root/obagent/run/*就能成功重启

如果不可以推荐重新部署一下。使用obd web 部署方式: 通过 OBD 白屏部署 OceanBase 集群