Start observer failed, exit status 240

帮看看如下错误,可能是什么问题啊?

2025/09/15 09:45:32 Backup config file not found, start with parameter

2025/09/15 09:45:32 Start commands: cd /home/admin/oceanbase && /home/admin/oceanbase/bin/observer --nodaemon --appname metadb --cluster_id 1 --zone zone3 -i eth0 -p 2881 -P 2882 -d /home/admin/oceanbase/store -l info -o config_additional_dir=/home/admin/oceanbase/store/etc,cpu_count=16,datafile_size=10G,log_disk_size=47G,enable_syslog_recycle=true,max_syslog_file_count=4,system_memory=‘2G’,obconfig_url=‘http://svc-ob-configserver.oceanbase.svc:8080/services?Action=ObRootServiceInfo&ObCluster=metadb’,memory_limit=‘7372M’,datafile_maxsize=‘47G’,datafile_next='5G

Start observer failed, exit status 240

2 个赞

看看240这个错误码

obd启动的么 ,为什么你这里只有一个zone3

2025/09/15 14:36:16 Backup config file not found, start with parameter
2025/09/15 14:36:16 Start commands: cd /home/admin/oceanbase && /home/admin/oceanbase/bin/observer --nodaemon --appname metadb --cluster_id 1 --zone zone1 -i eth0 -p 2881 -P 2882 -d /home/admin/oceanbase/store -l info -o config_additional_dir=/home/admin/oceanbase/store/etc,cpu_count=16,datafile_size=10G,log_disk_size=47G,enable_syslog_recycle=true,max_syslog_file_count=4,memory_limit=‘7372M’,datafile_maxsize=‘47G’,datafile_next=‘5G’,system_memory=‘2G’,obconfig_url=‘http://svc-ob-configserver.oceanbase.svc:8080/services?Action=ObRootServiceInfo&ObCluster=metadb
Start observer failed, exit status 240
嗯,其它2个zone也同样的错误

麻烦先提供一份obd日志

k8s里,pod没起来,进不去不知道怎么用obd

还有什么办法吗

提供一份observer日志看看吧。在 ~/oceanbase/log下

10m Normal ExternalProvisioning persistentvolumeclaim/obcluster-1757927076-zone3-42p426-log waiting for a volume to be created, either by external provisioner “rancher.io/local-path” or manually created by system administrator

10m Normal ExternalProvisioning persistentvolumeclaim/obcluster-1757927076-zone3-42p426-data-log waiting for a volume to be created, either by external provisioner “rancher.io/local-path” or manually created by system administrator

10m Normal ExternalProvisioning persistentvolumeclaim/obcluster-1757927076-zone3-42p426-data-file waiting for a volume to be created, either by external provisioner “rancher.io/local-path” or manually created by system administrator

10m Normal ExternalProvisioning persistentvolumeclaim/obcluster-1757927076-zone2-gqzhfl-log waiting for a volume to be created, either by external provisioner “rancher.io/local-path” or manually created by system administrator

10m Normal Provisioning persistentvolumeclaim/obcluster-1757927076-zone2-gqzhfl-data-log External provisioner is provisioning volume for claim “oceanbase/obcluster-1757927076-zone2-gqzhfl-data-log”

10m Normal ExternalProvisioning persistentvolumeclaim/obcluster-1757927076-zone2-gqzhfl-data-log waiting for a volume to be created, either by external provisioner “rancher.io/local-path” or manually created by system administrator

10m Normal ProvisioningSucceeded persistentvolumeclaim/obcluster-1757927076-zone2-gqzhfl-data-file Successfully provisioned volume pvc-ad9a890c-d5dc-48bc-a758-e6505c1ffb71

10m Normal Provisioning persistentvolumeclaim/obcluster-1757927076-zone3-42p426-data-file External provisioner is provisioning volume for claim “oceanbase/obcluster-1757927076-zone3-42p426-data-file”

10m Normal ProvisioningSucceeded persistentvolumeclaim/obcluster-1757927076-zone2-gqzhfl-log Successfully provisioned volume pvc-6464137d-1609-4d47-849e-0b6abc824f9f

10m Normal Provisioning persistentvolumeclaim/obcluster-1757927076-zone3-42p426-data-log External provisioner is provisioning volume for claim “oceanbase/obcluster-1757927076-zone3-42p426-data-log”

9m58s Normal ProvisioningSucceeded persistentvolumeclaim/obcluster-1757927076-zone3-42p426-log Successfully provisioned volume pvc-04e941b6-8548-49db-ac05-02152ece8440

9m56s Normal ProvisioningSucceeded persistentvolumeclaim/obcluster-1757927076-zone2-gqzhfl-data-log Successfully provisioned volume pvc-8617eca7-e3ee-471c-ab53-7cc86e1d671b

9m55s Normal ProvisioningSucceeded persistentvolumeclaim/obcluster-1757927076-zone3-42p426-data-file Successfully provisioned volume pvc-5d8bdc13-e151-4adb-ae90-043837deba8c

9m53s Normal ProvisioningSucceeded persistentvolumeclaim/obcluster-1757927076-zone3-42p426-data-log Successfully provisioned volume pvc-1970d091-eeaf-4e27-85d8-20dc8b88e22e

8m40s Warning Task failed obcluster/obcluster get oceanbase operation manager: Can not get oceanbase operation manager of obcluster obcluster after checked all servers

8m30s Normal Started pod/obcluster-1757927076-zone1-4jtgjw Started container observer

8m20s Normal Started pod/obcluster-1757927076-zone2-gqzhfl Started container observer

8m17s Warning Unhealthy pod/obcluster-1757927076-zone1-4jtgjw Readiness probe failed: dial tcp 30.0.1.84:2881: connect: connection refused

8m2s Warning Unhealthy pod/obcluster-1757927076-zone2-gqzhfl Readiness probe failed: dial tcp 30.0.2.74:2881: connect: connection refused

7m35s Normal Created pod/obcluster-1757927076-zone1-4jtgjw Created container observer

7m35s Normal Pulled pod/obcluster-1757927076-zone1-4jtgjw Container image “harbor.local/comp/oceanbase/oceanbase-cloud-native:4.2.1.6-106000012024042515” already present on machine

7m34s Normal Started pod/obcluster-1757927076-zone3-42p426 Started container observer

7m34s Normal Created pod/obcluster-1757927076-zone3-42p426 Created container observer

7m34s Normal Pulled pod/obcluster-1757927076-zone3-42p426 Container image “harbor.local/comp/oceanbase/oceanbase-cloud-native:4.2.1.6-106000012024042515” already present on machine

7m20s Normal Created pod/obcluster-1757927076-zone2-gqzhfl Created container observer

7m20s Normal Pulled pod/obcluster-1757927076-zone2-gqzhfl Container image “harbor.local/comp/oceanbase/oceanbase-cloud-native:4.2.1.6-106000012024042515” already present on machine

4m52s Warning BackOff pod/obcluster-1757927076-zone2-gqzhfl Back-off restarting failed container

4m49s Warning BackOff pod/obcluster-1757927076-zone3-42p426 Back-off restarting failed container

2s Warning BackOff pod/obcluster-1757927076-zone1-4jtgjw Back-off restarting failed container

这个看着不像是ob的日志 :joy:

[2025-09-16 18:04:08.304404] INFO [SERVER] start (ob_server.cpp:1022) [27][observer][T0][Y0-0000000000000000-0-0] [lt=23] check if multi tenant synced(ret=-4624, ret=“OB_MACHINE_RESOURCE_NO
T_ENOUGH”, stop_=true, synced=false)
[2025-09-16 18:04:08.304412] INFO [SERVER] start (ob_server.cpp:1031) [27][observer][T0][Y0-0000000000000000-0-0] [lt=8] check if schema ready(ret=-4624, ret="OB_MACHINE_RESOURCE_NOT_ENOUGH
", stop_=true, schema_ready=false)
[2025-09-16 18:04:08.304418] INFO [SERVER] start (ob_server.cpp:1045) [27][observer][T0][Y0-0000000000000000-0-0] [lt=5] check if timezone usable(ret=-4624, ret=“OB_MACHINE_RESOURCE_NOT_ENO
UGH”, stop_=true, timezone_usable=false)
[2025-09-16 18:04:08.304433] ERROR issue_dba_error (ob_log.cpp:1875) [27][observer][T0][Y0-0000000000000000-0-0] [lt=13][errcode=-4388] Unexpected internal error happen, please checkout the
internal errcode(errcode=-4624, file=“ob_server.cpp”, line_no=1081, info=“failure occurs, try to set stop and wait”)
[2025-09-16 18:04:08.304441] EDIAG [SERVER] start (ob_server.cpp:1081) [27][observer][T0][Y0-0000000000000000-0-0] [lt=8][errcode=-4624] failure occurs, try to set stop and wait(ret=-4624, r
et=“OB_MACHINE_RESOURCE_NOT_ENOUGH”) BACKTRACE:0x11c44b1d 0x6ba2cd2 0x6ba2794 0x6ba2422 0x6b8131b 0x9dbbbcc 0x9db69ee 0x6b737fb 0x7f071aa3acf3 0x4f2fcee
[2025-09-16 18:04:08.304501] ERROR start (ob_server.cpp:1082) [27][observer][T0][Y0-0000000000000000-0-0] [lt=58][errcode=-4393] observer start process failure(msg=“observer start() has fail
ure”, ret=-4624, ret=“OB_MACHINE_RESOURCE_NOT_ENOUGH”)

有更详细点的日志吗

稍等 有输出

感觉你遇到的问题好多啊,这样也好,遇到问题才能成长,学习一下