WSL安装的Ubuntu 20.04虚拟机重启后,OceanBase_CE-v4.3.4.0 无法启动

【 使用环境 】测试环境
【 OB or 其他组件 】OceanBase_CE
【 使用版本 】OceanBase_CE-v4.3.4.0
【问题描述】

Windows 10 专业版(版本号:22H2)通过WSL安装的Ubuntu 20.04虚拟机,在虚拟机中使用RPM包安装的OceanBase_CE-v4.3.4.0【安装命令:sudo bash -c “$(curl -s https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/download-center/opensource/service/installer.sh)”】,安装完成后正常使用,但虚拟机关闭后重启,OceanBase无法启动

dahui@DH-ZHANG:/home/admin/oceanbase/log$ sudo systemctl status oceanbase.service
● oceanbase.service - oceanbase
Loaded: loaded (/etc/systemd/system/oceanbase.service; enabled; vendor preset: enabled)
Active: activating (start) since Fri 2025-03-28 10:55:08 CST; 6s ago
Cntrl PID: 21961 (bash)
Tasks: 28 (limit: 9388)
Memory: 86.3M
CGroup: /system.slice/oceanbase.service
├─ 992 /home/admin/oceanbase/bin/obshell daemon --ip 172.26.115.252 --port 2886
├─ 1036 /home/admin/oceanbase/bin/obshell server --ip 172.26.115.252 --port 2886
├─21961 /bin/bash /home/admin/oceanbase/profile/oceanbase-service.sh start
└─22525 sleep 6

Mar 28 10:55:08 DH-ZHANG systemd[1]: Starting oceanbase…
Mar 28 10:55:08 DH-ZHANG bash[21961]: oceanbase service started at 2025-03-28 10:55:08
Mar 28 10:55:09 DH-ZHANG bash[21961]: change etc owner to root
Mar 28 10:55:09 DH-ZHANG bash[21961]: daemon process with PID 992 is running.
Mar 28 10:55:09 DH-ZHANG bash[21961]: The agent service is exist
Mar 28 10:55:09 DH-ZHANG bash[21961]: The observer is already bootstrap, please start it immediately
Mar 28 10:55:09 DH-ZHANG bash[21961]: the start observer trace id is 228874147800288665
Mar 28 10:55:09 DH-ZHANG bash[21961]: the response state is READY
Mar 28 10:55:09 DH-ZHANG bash[21961]: wait 6s and the retry

dahui@DH-ZHANG:/home/admin/oceanbase/log$ journalctl -xe
– the configured Restart= setting for the unit.
Mar 28 10:56:17 DH-ZHANG systemd[1]: Stopped oceanbase.
– Subject: A stop job for unit oceanbase.service has finished
– Defined-By: systemd
– Support: http://www.ubuntu.com/support

– A stop job for unit oceanbase.service has finished.

– The job identifier is 3413 and the job result is done.
Mar 28 10:56:17 DH-ZHANG systemd[1]: oceanbase.service: Found left-over process 992 (obshell) in control group while starting unit. Ignoring.
Mar 28 10:56:17 DH-ZHANG systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Mar 28 10:56:17 DH-ZHANG systemd[1]: oceanbase.service: Found left-over process 1036 (obshell) in control group while starting unit. Ignoring.
Mar 28 10:56:17 DH-ZHANG systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Mar 28 10:56:17 DH-ZHANG systemd[1]: Starting oceanbase…
– Subject: A start job for unit oceanbase.service has begun execution
– Defined-By: systemd
– Support: http://www.ubuntu.com/support

– A start job for unit oceanbase.service has begun execution.

– The job identifier is 3413.
Mar 28 10:56:17 DH-ZHANG bash[24242]: oceanbase service started at 2025-03-28 10:56:17
Mar 28 10:56:18 DH-ZHANG bash[24242]: change etc owner to root
Mar 28 10:56:18 DH-ZHANG bash[24242]: daemon process with PID 992 is running.
Mar 28 10:56:18 DH-ZHANG bash[24242]: The agent service is exist
Mar 28 10:56:18 DH-ZHANG bash[24242]: The observer is already bootstrap, please start it immediately
Mar 28 10:56:18 DH-ZHANG bash[24242]: the start observer trace id is 228874147800288669
Mar 28 10:56:18 DH-ZHANG bash[24242]: the response state is READY
Mar 28 10:56:18 DH-ZHANG bash[24242]: wait 6s and the retry
Mar 28 10:56:24 DH-ZHANG bash[24242]: the response state is FAILED
Mar 28 10:56:24 DH-ZHANG bash[24242]: start observer request failed
Mar 28 10:56:24 DH-ZHANG systemd[1]: oceanbase.service: Control process exited, code=exited, status=1/FAILURE
– Subject: Unit process exited
– Defined-By: systemd
– Support: http://www.ubuntu.com/support

– An ExecStart= process belonging to unit oceanbase.service has exited.

– The process’ exit code is ‘exited’ and its exit status is 1.
Mar 28 10:56:24 DH-ZHANG systemd[1]: oceanbase.service: Failed with result ‘exit-code’.
– Subject: Unit failed
– Defined-By: systemd
– Support: http://www.ubuntu.com/support

– The unit oceanbase.service has entered the ‘failed’ state with result ‘exit-code’.
Mar 28 10:56:24 DH-ZHANG systemd[1]: Failed to start oceanbase.
– Subject: A start job for unit oceanbase.service has failed
– Defined-By: systemd
– Support: http://www.ubuntu.com/support

– A start job for unit oceanbase.service has finished with a failure.

– The job identifier is 3413 and the job result is failed.

observerlog.zip (15.0 MB)

ps -ef|grep observer看一下ob启动成功了么

可以看一下防火墙是否关闭着的