昨天一早接到正在休假的领导的电话,我们部署在AWS上的核心业务进程挂了,原因是AWS的物理存储出问题了,正在紧急修复,已经从凌晨搞到了早上六七点,服务器是恢复了,但是我们的业务却一直起不起来,让赶紧看看什么情况。
登录到服务器,发现各个服务的异常都是因为无法连接到RabbitMQ导致的;
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rabbitMqInBoundAdapter': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.amqp.core.Queue com.nokia.app.datacollection.config.rabbitmq.RabbitMqInBoundAdapter.msmRequestQueue; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rabbitMqQueuesConfigurer': Invocation of init method failed; nested exception is org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
at org
RabbitMQ故障排查与解决

本文记录了一次AWS上核心业务因RabbitMQ服务异常引发的问题,详细描述了从发现服务异常、诊断问题原因到最终解决问题的全过程,包括修改配置、用户管理和权限设置等关键步骤。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



