OCP启动失败,如何查看失败的具体原因呢

我看到日志里面有类似的一些异常

Error creating bean with name ‘metaDataSource’ defined in class path resource

2025-05-16 16:39:57.982 INFO 5255 — [sharding-metric-collect1,] c.o.o.c.sharding.registry.ShardingTask : Sharding failed.

Caused by: java.lang.IllegalStateException: org.springframework.context.annotation.AnnotationConfigApplicationContext@3aa078fd has been closed already

你用上面的 命令方式启动一下看看吧

1 个赞

好的,我先试试上面的命令手动启动,我这个启动报错情况,您也帮我们再看看,麻烦您了~~

1 个赞

ps-ef|grep observer看一下ob集群启动成功没,然后黑屏化登录一下meta集群测试下是否正常
mysql -h10.10.100.20 -uroot@ocp_meta#集群名 -P2881 -p -Ac
mysql -h10.10.100.20 -uroot@ocp_meta#集群名 -P2883 -p -Ac

1 个赞

ps -ef|grep observer结果

下面两个命令都连接不了呢
obclient -h10.10.100.11 -uroot@ocp_meta#myocp -P2881 -pcpl_xxxxx -Ac
obclient -h10.10.100.11 -uroot@ocp_meta#myocp -P2883 -pcpl_xxxxx -Ac

1 个赞

用obd3.2.2重启集群,也还是一样提示的1005错误码,我试试上面的脚本命令

1 个赞

不大好分析问题啊

1 个赞

老师您好,上面有重启失败的日志,这个能看出来是什么原因失败的吗

1 个赞

老师您好,通过上面的命令启动,提示下面的错误呢,11080端口是昨天开启的

error.txt (27.0 KB)

1 个赞

我刚才重新启动了一下ocp集群,还是没有启动成功,下面是ocp-server.log日志文件,我们目前的工作已经因为这个停摆了,急~麻烦官方帮我看看

ocp-server.rar (58.2 KB)

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dataSourceScriptDatabaseInitializer’ defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Unsatisfied dependency expressed through method ‘dataSourceScriptDatabaseInitializer’ parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘metaDataSource’ defined in class path resource [com/oceanbase/ocp/server/common/config/MetadbConfiguration.class]: Unsatisfied dependency expressed through method ‘metaDataSource’ parameter 0; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name ‘spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties’: Could not bind properties to ‘DataSourceProperties’ : prefix=spring.datasource, ignoreInvalidFields=false, ignoreUnknownFields=true; nested exception is java.lang.IllegalStateException: org.springframework.context.annotation.AnnotationConfigApplicationContext@75db5df9 has been closed already
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:801)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:536)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.be

1 个赞

老师您好,我们OCP应用还是没有启动成功,挺着急的,麻烦您帮我们指导下分析呢

执行obd cluster start -c oceanbase-ce
看看能不能先拉起ob数据库

收到,我试下

您好,已执行,下面是执行的结果

黑屏化登录测试下是否可以正常登录。
再启动ocp组件试试

1 个赞

您好,应该使用哪个账号做黑屏化登录呢,启动ocp组件的命令能否也帮我发一下,这些命令我还不熟悉

2 个赞

image
启动ocp组件的命令能否也帮我发一下 obd cluster start -c ocp-server

2 个赞

围观

1 个赞

收到,正在尝试

1 个赞

老师您好,黑屏化登录结果:

启动ocp组件执行结果:

1 个赞