Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

内部错误 #32

Open
hjun0907 opened this issue Nov 22, 2024 · 2 comments
Open

内部错误 #32

hjun0907 opened this issue Nov 22, 2024 · 2 comments

Comments

@hjun0907
Copy link

hjun0907 commented Nov 22, 2024

H2 数据库正常,切换到 mysql 就不能正常添加

一段日志

2024-11-22T12:24:05.937+08:00 ERROR 7 --- [ctor-http-nio-3] a.w.r.e.AbstractErrorWebExceptionHandler : [abaedc4e-1714] 500 Server Error for HTTP POST "/apis/alist.storage.halo.run/v1alpha1/configs/-/verify"

org.springframework.web.reactive.function.client.WebClientRequestException: Failed to resolve 'pan.xxxxxxx.xyz' [A(1)]
at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:137) ~[spring-webflux-6.2.0-RC3.jar:6.2.0-RC3]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
*__checkpointRequest to POST https://pan.xxxxxxx.xyz/api/auth/login [DefaultWebClient]
*__checkpointHandler run.halo.alist.controller.PolicyConfigValidationController#validatePolicyConfig(AListProperties) [DispatcherHandler]
*__checkpointrun.halo.app.security.InitializeRedirectionWebFilter [DefaultWebFilterChain]
*__checkpointrun.halo.app.infra.webfilter.LocaleChangeWebFilter [DefaultWebFilterChain]
*__checkpointrun.halo.app.security.device.DeviceSessionFilter [DefaultWebFilterChain]
*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
*__checkpointAuthorizationWebFilter [DefaultWebFilterChain]
*__checkpointExceptionTranslationWebFilter [DefaultWebFilterChain]
*__checkpointLogoutWebFilter [DefaultWebFilterChain]
*__checkpointServerRequestCacheWebFilter [DefaultWebFilterChain]
*__checkpointSecurityContextServerWebExchangeWebFilter [DefaultWebFilterChain]
*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
*__checkpointAnonymousAuthenticationWebFilter [DefaultWebFilterChain]
*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
*__checkpointAuthenticationWebFilter [DefaultWebFilterChain]
*__checkpointAuthenticationWebFilter [DefaultWebFilterChain]
*__checkpointAuthenticationWebFilter [DefaultWebFilterChain]
*__checkpointMapOAuth2AuthenticationFilter [DefaultWebFilterChain]
*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
*__checkpoint ⇢ [DefaultWebFilterChain]
*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
*__checkpointReactorContextWebFilter [DefaultWebFilterChain]
*__checkpointCsrfWebFilter [DefaultWebFilterChain]
*__checkpointCorsWebFilter [DefaultWebFilterChain]
*__checkpointHttpHeaderWriterWebFilter [DefaultWebFilterChain]
*__checkpointSecurityWebFilterChainProxy [DefaultWebFilterChain]
*__checkpointServerWebExchangeReactorContextWebFilter [DefaultWebFilterChain]
*__checkpointorg.springframework.security.web.server.WebFilterChainProxy [DefaultWebFilterChain]
*__checkpointrun.halo.comment.widget.captcha.CommentCaptchaFilter [DefaultWebFilterChain]
*__checkpointrun.halo.app.infra.webfilter.AdditionalWebFilterChainProxy [DefaultWebFilterChain]
*__checkpointorg.springframework.web.filter.reactive.ServerWebExchangeContextFilter [DefaultWebFilterChain]
*__checkpointHTTP POST "/apis/alist.storage.halo.run/v1alpha1/configs/-/verify" [ExceptionHandlingWebHandler]
Original Stack Trace:
at org.springframework.web.reactive.function.client.ExchangeFunctions$DefaultExchangeFunction.lambda$wrapException$9(ExchangeFunctions.java:137) ~[spring-webflux-6.2.0-RC3.jar:6.2.0-RC3]
at reactor.core.publisher.MonoErrorSupplied.subscribe(MonoErrorSupplied.java:55) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.Mono.subscribe(Mono.java:4576) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onError(FluxOnErrorResume.java:103) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:222) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:222) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxPeek$PeekSubscriber.onError(FluxPeek.java:222) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.MonoNext$NextSubscriber.onError(MonoNext.java:93) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.MonoFlatMapMany$FlatMapManyMain.onError(MonoFlatMapMany.java:205) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.SerializedSubscriber.onError(SerializedSubscriber.java:124) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxRetryWhen$RetryWhenMainSubscriber.whenError(FluxRetryWhen.java:229) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxRetryWhen$RetryWhenOtherSubscriber.onError(FluxRetryWhen.java:279) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onError(FluxContextWrite.java:121) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxConcatMapNoPrefetch$FluxConcatMapNoPrefetchSubscriber.maybeOnError(FluxConcatMapNoPrefetch.java:327) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxConcatMapNoPrefetch$FluxConcatMapNoPrefetchSubscriber.onNext(FluxConcatMapNoPrefetch.java:212) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext(FluxContextWrite.java:107) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.SinkManyEmitterProcessor.drain(SinkManyEmitterProcessor.java:476) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.SinkManyEmitterProcessor$EmitterInner.drainParent(SinkManyEmitterProcessor.java:620) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxPublish$PubSubInner.request(FluxPublish.java:874) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.request(FluxContextWrite.java:136) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxConcatMapNoPrefetch$FluxConcatMapNoPrefetchSubscriber.request(FluxConcatMapNoPrefetch.java:337) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.request(FluxContextWrite.java:136) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.Operators$DeferredSubscription.request(Operators.java:1743) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxRetryWhen$RetryWhenMainSubscriber.onError(FluxRetryWhen.java:196) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.MonoCreate$DefaultMonoSink.error(MonoCreate.java:205) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.netty.http.client.HttpClientConnect$MonoHttpConnect$ClientTransportSubscriber.onError(HttpClientConnect.java:302) ~[reactor-netty-http-1.2.0-RC1.jar:1.2.0-RC1]
at reactor.core.publisher.MonoCreate$DefaultMonoSink.error(MonoCreate.java:205) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.netty.resources.DefaultPooledConnectionProvider$DisposableAcquire.onError(DefaultPooledConnectionProvider.java:174) ~[reactor-netty-core-1.2.0-RC1.jar:1.2.0-RC1]
at reactor.netty.internal.shaded.reactor.pool.AbstractPool$Borrower.fail(AbstractPool.java:479) ~[reactor-netty-core-1.2.0-RC1.jar:1.2.0-RC1]
at reactor.netty.internal.shaded.reactor.pool.SimpleDequePool.lambda$drainLoop$9(SimpleDequePool.java:436) ~[reactor-netty-core-1.2.0-RC1.jar:1.2.0-RC1]
at reactor.core.publisher.FluxDoOnEach$DoOnEachSubscriber.onError(FluxDoOnEach.java:186) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.MonoCreate$DefaultMonoSink.error(MonoCreate.java:205) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.netty.resources.DefaultPooledConnectionProvider$PooledConnectionAllocator$PooledConnectionInitializer.onError(DefaultPooledConnectionProvider.java:593) ~[reactor-netty-core-1.2.0-RC1.jar:1.2.0-RC1]
at reactor.core.publisher.MonoFlatMap$FlatMapMain.secondError(MonoFlatMap.java:241) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.MonoFlatMap$FlatMapInner.onError(MonoFlatMap.java:315) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onError(FluxOnErrorResume.java:106) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.Operators.error(Operators.java:198) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.MonoError.subscribe(MonoError.java:53) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.Mono.subscribe(Mono.java:4576) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
at reactor.core.publisher.FluxOnErrorResume$ResumeSubscriber.onError(FluxOnErrorResume.java:103) ~[reactor-core-3.7.0-RC1.jar:3.7.0-RC1]
@JohnNiang
Copy link
Contributor

从日志看,Halo 所在容器无法解析域名 pan.xxxxxxx.xyz。建议好好排查一下容器的网络和 DNS 问题。

@hjun0907
Copy link
Author

从日志看,Halo 所在容器无法解析域名 pan.xxxxxxx.xyz。建议好好排查一下容器的网络和 DNS 问题。

好的👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants