inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Spring Cloud로 개발하는 마이크로서비스 애플리케이션(MSA)

Spring Cloud Bus 테스트

busrefresh 에러

794

이븐곰

작성한 질문수 3

0

안녕하세요. postman으로 busrefresh 전송할때 에러나서 어떻게 해결할 수 있을지 질문 드립니다.

127.0.0.1:8000/actuator/busrefresh

혹은

127.0.0.1:8000/user-service/actuator/busrefresh

로 전송하면 500 Internal Server Error 로 응답 받으면서 

 "org.springframework.messaging.MessageHandlingException: error occurred in message handler [org.springframework.integration.amqp.outbound.AmqpOutboundEndpoint@5c20f1e]; nested exception is org.springframework.amqp.AmqpConnectException: java.net.ConnectException: Connection refused: connect, failedMessage=GenericMessage [payload=byte[202], headers={id=673f43aa-6af0-73de-d386-1b08af6ed560, contentType=application/json, target-protocol=amqp, timestamp=1660318593074}]\r\n\tat org.springframework.integration.support.utils.IntegrationUtils.wrapInHandlingExceptionIfNecessary(IntegrationUtils.java:191)\r\n\tat org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:65)\r\n\tat org.springframework.cloud.stream.binder.
 
해당 에러메세지를 trace 값으로 내려받고 있습니다.
 
user-service에서도 로그를 보면 Connection refused: connect 로그가 찍힙니다.
 
application.yml에 management endpoint 부분에 busrefresh도 추가했습니다.
해당 설정에서 busrefresh를 제외한 다른 값들은 문제 없지 잘 작동하고 있습니다. 

architecture spring-cloud spring-boot JPA msa Kafka

답변 1

0

Dowon Lee

안녕하세요, 이도원입니다. 

Actuator의 busrefresh를 사용하기 위해서 강의에서는 AMQP를 사용하고 있습니다. AMQP 서버는 RabbirMQ를 설치해서 사용했고요. OS에 직접 RabbitMQ를 설치하거나 Docker로 설치해서 사용해 보시기 바랍니다. 

RabbitMQ 서버를 기동한 다음에도 오류가 발생하면 다시 질문 남겨 주세요. 

감사합니다. 

rabbitmq에 configservice 연결에 대해 질문있습니다.

0

16

1

kafka 업데이트 강의 듣고 시포요

0

118

2

강의 교안

0

108

2

마이크로서비스간 통신 시, 인증 처리

0

118

2

api gateway 에서 인증 처리

0

77

1

섹션 19 질문드립니다

0

87

2

강의 자료 업데이트

0

106

2

부하분산 강의 섹션

0

67

1

강의자료는 어디에서?

0

99

2

강의 자료는 어디서 다운 받을 수 있나요?

0

133

2

전체 사용자 조회시 오류

0

66

1

혹시 pk 외 별도의 id 를 부여한 이유가 있을까요 ??

0

122

2

학습 방향

0

107

2

카프카 커넥터 사용 목적 문의

0

93

2

kafka 강의

0

119

2

서비스 디스커버리 종류

0

91

2

강의 자료에 대해서 궁금해요

0

126

2

GlobalFilter, LoggingFilter가 동작하지 않습니다.

0

97

2

Kafka Source Connect 버전 에러

0

98

2

소스커넥터는 사용안한 거 맞죠?

0

86

2

강의자료 업데이트 문의

0

101

2

강의에서 BCryptPasswordEncoder 에 역할(5-2)

0

64

1

강의 업데이트 계획이 궁금합니다.

0

122

2

MSA 애플리케이션에 Spring Web과 Spring Data JPA를 사용하는 것이 바람직한지 궁금합니다. (MSA 설계와 관련된 질문입니다)

0

169

2