spring boot admin server 发送邮件提醒

[2021-04-30 08:55:51.234] [nothing.attdns.com] [parallel-7] INFO d.c.b.a.s.services.StatusUpdater@logError:127 - Couldn’t retrieve status for Instance(id=d152d04972d7, version=12, registration=Registration(name=spring-boot-application,

java.util.concurrent.TimeoutException: Did not observe any item or terminal signal within 10000ms in ‘map’ (and no fallback has been configured)
at reactor.core.publisher.FluxTimeout T i m e o u t M a i n S u b s c r i b e r . h a n d l e T i m e o u t ( F l u x T i m e o u t . j a v a : 288 ) S u p p r e s s e d : r e a c t o r . c o r e . p u b l i s h e r . F l u x O n A s s e m b l y TimeoutMainSubscriber.handleTimeout(FluxTimeout.java:288) Suppressed: reactor.core.publisher.FluxOnAssembly TimeoutMainSubscriber.handleTimeout(FluxTimeout.java:288)Suppressed:reactor.core.publisher.FluxOnAssemblyOnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ Request to GET health [DefaultWebClient]
Stack trace:
at reactor.core.publisher.FluxTimeout T i m e o u t M a i n S u b s c r i b e r . h a n d l e T i m e o u t ( F l u x T i m e o u t . j a v a : 288 ) a t r e a c t o r . c o r e . p u b l i s h e r . F l u x T i m e o u t TimeoutMainSubscriber.handleTimeout(FluxTimeout.java:288) at reactor.core.publisher.FluxTimeout TimeoutMainSubscriber.handleTimeout(FluxTimeout.java:288)atreactor.core.publisher.FluxTimeoutTimeoutMainSubscriber.doTimeout(FluxTimeout.java:273)
at reactor.core.publisher.FluxTimeout T i m e o u t T i m e o u t S u b s c r i b e r . o n N e x t ( F l u x T i m e o u t . j a v a : 395 ) a t r e a c t o r . c o r e . p u b l i s h e r . S t r i c t S u b s c r i b e r . o n N e x t ( S t r i c t S u b s c r i b e r . j a v a : 89 ) a t r e a c t o r . c o r e . p u b l i s h e r . F l u x O n E r r o r R e s u m e TimeoutTimeoutSubscriber.onNext(FluxTimeout.java:395) at reactor.core.publisher.StrictSubscriber.onNext(StrictSubscriber.java:89) at reactor.core.publisher.FluxOnErrorResume TimeoutTimeoutSubscriber.onNext(FluxTimeout.java:395)atreactor.core.publisher.StrictSubscriber.onNext(StrictSubscriber.java:89)atreactor.core.publisher.FluxOnErrorResumeResumeSubscriber.onNext(FluxOnErrorResume.java:73)
at reactor.core.publisher.MonoDelay M o n o D e l a y R u n n a b l e . r u n ( M o n o D e l a y . j a v a : 117 ) a t r e a c t o r . c o r e . s c h e d u l e r . S c h e d u l e r T a s k . c a l l ( S c h e d u l e r T a s k . j a v a : 68 ) a t r e a c t o r . c o r e . s c h e d u l e r . S c h e d u l e r T a s k . c a l l ( S c h e d u l e r T a s k . j a v a : 28 ) a t j a v a . b a s e / j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 264 ) a t j a v a . b a s e / j a v a . u t i l . c o n c u r r e n t . S c h e d u l e d T h r e a d P o o l E x e c u t o r MonoDelayRunnable.run(MonoDelay.java:117) at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor MonoDelayRunnable.run(MonoDelay.java:117)atreactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)atreactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)atjava.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)atjava.base/java.util.concurrent.ScheduledThreadPoolExecutorScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

超时时间设置为20s不管用
,最后找到解决方案

这个错误很恶心,其实就是版本的问题,作者测试过很多版本最后,在 2.3.0这个版本测试成功了,所以大家如果出现这个错误的话,就看看版本的问题吧
eactor-netty的版本有问题,直接把reactor-netty的升到0.9.10.RELEASE即可解决。

    <dependency>
        <groupId>de.codecentric</groupId>
        <artifactId>spring-boot-admin-starter-server</artifactId>
        <exclusions>
            <exclusion>
                <groupId>io.projectreactor.netty</groupId>
                <artifactId>reactor-netty</artifactId>
            </exclusion>
        </exclusions>
        <version>2.3.0</version>
    </dependency>

    <dependency>
        <groupId>io.projectreactor.netty</groupId>
        <artifactId>reactor-netty</artifactId>
        <version>0.9.10.RELEASE</version>
    </dependency>

参考 [springboot adminServer2.0+部署踩坑记]
(https://zhuanlan.zhihu.com/p/272902531)
SpringBootAdmin搭建教程一:入门SpringBootAdmin

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值