tail -f bare-metal-server日志文件,看重复报错:
常见:IPMI/Redfish 和 BMC 通信异常、裸金属节点状态反复轮询、驱动报错、消息队列 rabbitmq 断连、裸金属定时巡检死循环。很多局点没有在用裸金属业务,但 bare-metal-server 服务默认开机自启,BMC 不通就疯狂重试刷日志。
一句话:先看日志内重复报错;不用裸金属业务直接停掉 bare-metal-server;要用裸金属,优先排查 BMC 连通 / 账号,其次调整日志级别、配置 logrotate 轮转。
bare-metal-server 频繁重启日志文件内部分内容如下:Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parameterMapper' defined in URL [jar:file:/var/lib/bare-metal-server/bare-metal-server.jar!/BOOT-INF/classes!/com/h3c/h3cloud/bare/metal/mapper/ParameterMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactoryPlat' defined in class path resource [com/h3c/h3cloud/bare/metal/config/MybatisPlusConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sessionFactoryPlat' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' defined in class path resource [com/h3c/h3cloud/bare/metal/config/MybatisPlusConfig.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource
bare-metal-server 频繁重启日志文件内部分内容如下:Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parameterMapper' defined in URL [jar:file:/var/lib/bare-metal-server/bare-metal-server.jar!/BOOT-INF/classes!/com/h3c/h3cloud/bare/metal/mapper/ParameterMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactoryPlat' defined in class path resource [com/h3c/h3cloud/bare/metal/config/MybatisPlusConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sessionFactoryPlat' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' defined in class path resource [com/h3c/h3cloud/bare/metal/config/MybatisPlusConfig.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource
bare-metal-server 频繁重启日志文件内部分内容如下:Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'parameterMapper' defined in URL [jar:file:/var/lib/bare-metal-server/bare-metal-server.jar!/BOOT-INF/classes!/com/h3c/h3cloud/bare/metal/mapper/ParameterMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactoryPlat' defined in class path resource [com/h3c/h3cloud/bare/metal/config/MybatisPlusConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sessionFactoryPlat' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flyway' defined in class path resource [com/h3c/h3cloud/bare/metal/config/MybatisPlusConfig.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明