【产品名称】OceanBase
【产品版本】试用版
【问题描述】安装执行到初始化OceanBase实例时出错:
./hap.py ob1.reboot
执行完该命令后,会持续打印报错信息:
[2021-05-18 07:59:48.405306] ERROR [LIB] pidfile_test (utility.cpp:1168) [55][0][Y0-0000000000000000] [lt=0] fid file doesn’t exist(pidfile=“run/observer.pid”) BACKTRACE:0x80778ca 0x801e5c6 0x4628e5 0x46ec098 0x807b37c 0x4844719 0x7f6ca1b06555 0x48a3305
2021-05-18 07:59:48.407822 call.py:3 CALL: top.ob1 bootstrap
2021-05-18 07:59:48.414534 magic_ctrl.py:3 retry_loop: retryloop: timeout=864000 interval = 1
2021-05-18 07:59:48.421041 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####
2021-05-18 07:59:48.428387 call.py:3 CALL: top.ob1 obs0.bootstrap
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)
2021-05-18 07:59:48.448532 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./mysql --prompt “OceanBase(\u@\d)>” -h 127.0.0.1 -P 2881 -uroot input=“alter system bootstrap REGION ‘sys_region’ ZONE ‘test’ SERVER ‘127.0.0.1:2882’; # ExceptionOnFail DiscardXOutput” ret=1
2021-05-18 07:59:49.457252 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####
2021-05-18 07:59:49.463752 call.py:3 CALL: top.ob1 obs0.bootstrap
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)
2021-05-18 07:59:49.487777 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./mysql --prompt “OceanBase(\u@\d)>” -h 127.0.0.1 -P 2881 -uroot input=“alter system bootstrap REGION ‘sys_region’ ZONE ‘test’ SERVER ‘127.0.0.1:2882’; # ExceptionOnFail DiscardXOutput” ret=1
2021-05-18 07:59:50.496396 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####
2021-05-18 07:59:50.502224 call.py:3 CALL: top.ob1 obs0.bootstrap
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)
2021-05-18 07:59:50.520811 magic_ctrl.py:12 retry_loop: tryloop fail: Fail: shell fail: ./mysql --prompt “OceanBase(\u@\d)>” -h 127.0.0.1 -P 2881 -uroot input=“alter system bootstrap REGION ‘sys_region’ ZONE ‘test’ SERVER ‘127.0.0.1:2882’; # ExceptionOnFail DiscardXOutput” ret=1
2021-05-18 07:59:51.529301 magic_ctrl.py:6 retry_loop: #### tryloop obs0.bootstrap ####
2021-05-18 07:59:51.535224 call.py:3 CALL: top.ob1 obs0.bootstrap
====================================================
检查后发现,这里observer没有启动起来,并且在ob/ob1.obs0目录下产生了core文件,
gdb调试结果:
Core was generated by `/home/admin/ob/ob1.obs0/bin/observer -P 2882 -p 2881 -z test -n ob1.admin -c 1’.
Program terminated with signal 4, Illegal instruction.
#0 0x00000000079a0f8c in ?? ()
(gdb) bt
#0 0x00000000079a0f8c in ?? ()
#1 0x000000000799fa38 in ?? ()
#2 0x00000000079a1176 in ?? ()
#3 0x00000000079a34bd in ?? ()
#4 0x00000000079a4fb1 in ?? ()
#5 0x00007f47d3c9eea5 in start_thread (arg=0x7f47c8efe700) at pthread_create.c:307
#6 0x00007f47d36c59fd in clone () at …/sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) ’
========================================================
docker和脚本安装都是同样的结果,尝试了多个环境,内存>16g,磁盘>500G
[root@bigdata-1 ~]# free -h
total used free shared buff/cache available
Mem: 23G 4.0G 14G 8.6M 4.7G 18G
Swap: 15G 0B 15G
[root@bigdata-1 ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
devtmpfs 12G 0 12G 0% /dev
tmpfs 12G 0 12G 0% /dev/shm
tmpfs 12G 8.7M 12G 1% /run
tmpfs 12G 0 12G 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 4.2G 46G 9% /
/dev/sda1 1014M 151M 864M 15% /boot
/dev/mapper/centos-home 823G 2.3G 821G 1% /home
tmpfs 2.4G 0 2.4G 0% /run/user/0
请问该如何解决