【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】
【 使用版本 】oceanbsae 4.3.0
【问题描述】无法启动 通过systemctl status oceanbase 显示 daemon PID file not found。
【复现路径】完全按照官方文档进行。使用EXSI虚机部署,虚机使用镜像是Anolis8.6版本。
【附件及日志】
[admin@localhost oceanbase]$ sudo systemctl status oceanbase
● oceanbase.service - oceanbase
Loaded: loaded (/etc/systemd/system/oceanbase.service; disabled; vendor preset: disabled)
Active: failed (Result: protocol) since Tue 2024-05-21 00:35:13 CST; 1min 12s ago
Process: 19603 ExecStart=/bin/bash /home/admin/oceanbase/profile/oceanbase-service.sh start (code=exited, status=0/SUCCESS)
Main PID: 19603 (code=exited, status=0/SUCCESS)
5月 21 00:35:11 localhost.localdomain systemd[1]: Starting oceanbase…
5月 21 00:35:11 localhost.localdomain bash[19603]: oceanbase service started at 2024-05-21 00:35:11
5月 21 00:35:13 localhost.localdomain bash[19603]: daemon PID file not found.
5月 21 00:35:13 localhost.localdomain bash[19603]: start ob_agent failed
5月 21 00:35:13 localhost.localdomain systemd[1]: oceanbase.service: Failed with result ‘protocol’.
5月 21 00:35:13 localhost.localdomain systemd[1]: Failed to start oceanbase.
###############################################################
[admin@localhost oceanbase]$ sudo systemctl start oceanbase
Job for oceanbase.service failed because the service did not take the steps required by its unit configuration.
See “systemctl status oceanbase.service” and “journalctl -xe” for details.
###############################################################
5月 21 00:31:19 localhost.localdomain sudo[19029]: pam_unix(sudo:session): session closed for user root
5月 21 00:35:05 localhost.localdomain sudo[19594]: admin : TTY=pts/0 ; PWD=/home/admin/oceanbase ; USER=root ; COMMAND=/bin/systemct>
5月 21 00:35:05 localhost.localdomain sudo[19594]: pam_systemd(sudo:session): Cannot create session: Already running in a session or us>
5月 21 00:35:05 localhost.localdomain sudo[19594]: pam_unix(sudo:session): session opened for user root by root(uid=0)
5月 21 00:35:05 localhost.localdomain sudo[19594]: pam_unix(sudo:session): session closed for user root
5月 21 00:35:07 localhost.localdomain sudo[19597]: admin : TTY=pts/0 ; PWD=/home/admin/oceanbase ; USER=root ; COMMAND=/bin/systemct>
5月 21 00:35:07 localhost.localdomain sudo[19597]: pam_systemd(sudo:session): Cannot create session: Already running in a session or us>
5月 21 00:35:07 localhost.localdomain sudo[19597]: pam_unix(sudo:session): session opened for user root by root(uid=0)
5月 21 00:35:07 localhost.localdomain sudo[19597]: pam_unix(sudo:session): session closed for user root
5月 21 00:35:11 localhost.localdomain sudo[19600]: admin : TTY=pts/0 ; PWD=/home/admin/oceanbase ; USER=root ; COMMAND=/bin/systemct>
5月 21 00:35:11 localhost.localdomain sudo[19600]: pam_systemd(sudo:session): Cannot create session: Already running in a session or us>
5月 21 00:35:11 localhost.localdomain sudo[19600]: pam_unix(sudo:session): session opened for user root by root(uid=0)
5月 21 00:35:11 localhost.localdomain systemd[1]: Starting oceanbase…
5月 21 00:35:11 localhost.localdomain bash[19603]: oceanbase service started at 2024-05-21 00:35:11
5月 21 00:35:13 localhost.localdomain bash[19603]: daemon PID file not found.
5月 21 00:35:13 localhost.localdomain bash[19603]: start ob_agent failed
5月 21 00:35:13 localhost.localdomain systemd[1]: oceanbase.service: Failed with result ‘protocol’.
5月 21 00:35:13 localhost.localdomain systemd[1]: Failed to start oceanbase.
5月 21 00:35:13 localhost.localdomain sudo[19600]: pam_unix(sudo:session): session closed for user root
5月 21 00:36:26 localhost.localdomain sudo[20157]: admin : TTY=pts/0 ; PWD=/home/admin/oceanbase ; USER=root ; COMMAND=/bin/systemct>
5月 21 00:36:26 localhost.localdomain sudo[20157]: pam_systemd(sudo:session): Cannot create session: Already running in a session or us>
5月 21 00:36:26 localhost.localdomain sudo[20157]: pam_unix(sudo:session): session opened for user root by root(uid=0)
5月 21 00:36:26 localhost.localdomain sudo[20157]: pam_unix(sudo:session): session closed for user root
5月 21 00:42:00 localhost.localdomain su[17870]: pam_unix(su:session): session closed for user admin
5月 21 00:46:29 localhost.localdomain systemd[1]: Reloading.
5月 21 00:46:34 localhost.localdomain su[20187]: (to admin) root on pts/0
5月 21 00:46:34 localhost.localdomain su[20187]: pam_systemd(su:session): Cannot create session: Already running in a session or user s>
5月 21 00:46:34 localhost.localdomain su[20187]: pam_unix(su:session): session opened for user admin by root(uid=0)
5月 21 00:46:46 localhost.localdomain sudo[20211]: admin : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/bin/systemctl restart oceanb>
5月 21 00:46:46 localhost.localdomain sudo[20211]: pam_systemd(sudo:session): Cannot create session: Already running in a session or us>
5月 21 00:46:46 localhost.localdomain sudo[20211]: pam_unix(sudo:session): session opened for user root by root(uid=0)
5月 21 00:46:46 localhost.localdomain systemd[1]: Starting oceanbase…
5月 21 00:46:46 localhost.localdomain bash[20214]: oceanbase service started at 2024-05-21 00:46:46
5月 21 00:46:48 localhost.localdomain bash[20214]: daemon PID file not found.
5月 21 00:46:48 localhost.localdomain bash[20214]: start ob_agent failed
5月 21 00:46:48 localhost.localdomain systemd[1]: oceanbase.service: Failed with result ‘protocol’.
5月 21 00:46:48 localhost.localdomain systemd[1]: Failed to start oceanbase.
5月 21 00:46:48 localhost.localdomain sudo[20211]: pam_unix(sudo:session): session closed for user root
5月 21 00:47:20 localhost.localdomain su[20187]: pam_unix(su:session): session closed for user admin
lines 1866-1914/1914 (END)
5月 21 00:27:06 localhost.localdomain sudo[18460]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
5月 21 00:27:06 localhost.localdomain sudo[18460]: pam_unix(sudo:session): session opened for user root by root(uid=0)
5月 21 00:27:20 localhost.localdomain sudo[18460]: pam_unix(sudo:session): session closed for user root
5月 21 00:30:32 localhost.localdomain sudo[19029]: admin : TTY=pts/0 ; PWD=/home/admin/oceanbase/profile ; USER=root ; COMMAND=/bin/vi /etc/oceanbase.cnf
5月 21 00:30:32 localhost.localdomain sudo[19029]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
5月 21 00:30:32 localhost.localdomain sudo[19029]: pam_unix(sudo:session): session opened for user root by root(uid=0)
5月 21 00:31:01 localhost.localdomain anacron[16298]: Job cron.daily' started 5月 21 00:31:01 localhost.localdomain run-parts[19034]: (/etc/cron.daily) starting logrotate 5月 21 00:31:01 localhost.localdomain run-parts[19039]: (/etc/cron.daily) finished logrotate 5月 21 00:31:01 localhost.localdomain anacron[16298]: Job
cron.daily’ terminated
5月 21 00:31:19 localhost.localdomain sudo[19029]: pam_unix(sudo:session): session closed for user root
5月 21 00:35:05 localhost.localdomain sudo[19594]: admin : TTY=pts/0 ; PWD=/home/admin/oceanbase ; USER=root ; COMMAND=/bin/systemctl start oceandata
5月 21 00:35:05 localhost.localdomain sudo[19594]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
5月 21 00:35:05 localhost.localdomain sudo[19594]: pam_unix(sudo:session): session opened for user root by root(uid=0)
5月 21 00:35:05 localhost.localdomain sudo[19594]: pam_unix(sudo:session): session closed for user root
5月 21 00:35:07 localhost.localdomain sudo[19597]: admin : TTY=pts/0 ; PWD=/home/admin/oceanbase ; USER=root ; COMMAND=/bin/systemctl start oceandate
5月 21 00:35:07 localhost.localdomain sudo[19597]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
5月 21 00:35:07 localhost.localdomain sudo[19597]: pam_unix(sudo:session): session opened for user root by root(uid=0)
5月 21 00:35:07 localhost.localdomain sudo[19597]: pam_unix(sudo:session): session closed for user root
5月 21 00:35:11 localhost.localdomain sudo[19600]: admin : TTY=pts/0 ; PWD=/home/admin/oceanbase ; USER=root ; COMMAND=/bin/systemctl start oceanbase
5月 21 00:35:11 localhost.localdomain sudo[19600]: pam_systemd(sudo:session): Cannot create session: Already running in a session or user slice
5月 21 00:35:11 localhost.localdomain sudo[19600]: pam_unix(sudo:session): session opened for user root by root(uid=0)
5月 21 00:35:11 localhost.localdomain systemd[1]: Starting oceanbase…
5月 21 00:35:11 localhost.localdomain bash[19603]: oceanbase service started at 2024-05-21 00:35:11
5月 21 00:35:13 localhost.localdomain bash[19603]: daemon PID file not found.
5月 21 00:35:13 localhost.localdomain bash[19603]: start ob_agent failed
5月 21 00:35:13 localhost.localdomain systemd[1]: oceanbase.service: Failed with result ‘protocol’.
5月 21 00:35:13 localhost.localdomain systemd[1]: Failed to start oceanbase.
5月 21 00:35:13 localhost.localdomain sudo[19600]: pam_unix(sudo:session): session closed for user root