下载的halo源码,打包成jar包,部署到winserver启动。
初始化HALO后无法打开控制台,提示500报错。
控制台提示没有console/index.html
请问怎样解决啊?
日志如下:
`2025-11-14T02:59:59.850+08:00 INFO 7004 --- [scheduling-2343] r.h.a.s.a.r.RememberTokenCleaner : Expired remember me tokens have been cleaned up.
2025-11-14T04:21:22.746+08:00 WARN 7004 --- [reactor-http-nio-2] r.n.http.server.HttpServerOperations : [3d18a908, L:/172.10.10.19:8090 - R:/79.124.59.86:65141] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
GET /bad-request HTTP/1.0
2025-11-14T06:28:05.905+08:00 WARN 7004 --- [reactor-http-nio-5] r.n.http.server.HttpServerOperations : [ce4a2e18, L:/172.10.10.19:8090 - R:/66.228.53.46:4924] Decoding failed: FULL_REQUEST(decodeResult: failure(java.lang.IllegalArgumentException: text is empty (possibly HTTP/0.9)), version: HTTP/1.0, content: UnpooledByteBufAllocator$InstrumentedUnpooledUnsafeHeapByteBuf(ridx: 0, widx: 0, cap: 0))
GET /bad-request HTTP/1.0
2025-11-14T09:05:29.161+08:00 WARN 7004 --- [run.halo.app.core.reconciler.PostReconciler-1] r.h.a.e.controller.DefaultController : Optimistic locking failure when reconciling request: run.halo.app.core.reconciler.PostReconciler-worker-1/Request[name=5152aea5-c2e8-4717-8bba-2263d46e19d5]
2025-11-14T09:05:29.472+08:00 WARN 7004 --- [task-1] o.a.l.i.v.VectorizationProvider : Java vector incubator module is not readable. For optimal vector performance, pass '--add-modules jdk.incubator.vector' to enable Vector API.
2025-11-14T09:05:38.572+08:00 INFO 7004 --- [run.halo.app.notification.NotificationTrigger-1] r.h.a.notification.NotificationTrigger : Sending notification for reason: reason-szclkozm
2025-11-14T09:05:38.557+08:00 ERROR 7004 --- [loomBoundedElastic-197] a.w.r.e.AbstractErrorWebExceptionHandler : [1954bb91-59] 500 Server Error for HTTP GET "/console"
java.io.FileNotFoundException: class path resource [console/index.html] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:215) ~[spring-core-6.2.9.jar!/:6.2.9]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
*checkpoint ⇢ Handler run.halo.app.infra.config.WebFluxConfig$$Lambda/0x0000020d368edab87e5ae01 [DispatcherHandler]
*checkpoint ⇢ run.halo.app.security.InitializeRedirectionWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ run.halo.app.security.device.DeviceSessionFilter [DefaultWebFilterChain]
*checkpoint ⇢ SecurityWebFilterChainProxy [DefaultWebFilterChain]
*checkpoint ⇢ SwitchUserWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ AuthorizationWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ ExceptionTranslationWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ LogoutWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ ServerRequestCacheWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ SecurityContextServerWebExchangeWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ SecurityWebFilterChainProxy [DefaultWebFilterChain]
*checkpoint ⇢ AnonymousAuthenticationWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ SecurityWebFilterChainProxy [DefaultWebFilterChain]
*checkpoint ⇢ SecurityWebFilterChainProxy [DefaultWebFilterChain]
*checkpoint ⇢ AuthenticationWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ AuthenticationWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ AuthenticationWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ MapOAuth2AuthenticationFilter [DefaultWebFilterChain]
*checkpoint ⇢ SecurityWebFilterChainProxy [DefaultWebFilterChain]
*checkpoint ⇢ [DefaultWebFilterChain]
*checkpoint ⇢ SecurityWebFilterChainProxy [DefaultWebFilterChain]
*checkpoint ⇢ ReactorContextWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ CsrfWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ CorsWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ HttpHeaderWriterWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ SecurityWebFilterChainProxy [DefaultWebFilterChain]
*checkpoint ⇢ ServerWebExchangeReactorContextWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ org.springframework.security.web.server.WebFilterChainProxy [DefaultWebFilterChain]
*checkpoint ⇢ run.halo.app.infra.webfilter.AdditionalWebFilterChainProxy [DefaultWebFilterChain]
*checkpoint ⇢ org.springframework.web.filter.reactive.ServerWebExchangeContextFilter [DefaultWebFilterChain]
*checkpoint ⇢ run.halo.app.infra.webfilter.LocaleChangeWebFilter [DefaultWebFilterChain]
*checkpoint ⇢ org.springframework.web.filter.reactive.UrlHandlerFilter [DefaultWebFilterChain]
*checkpoint ⇢ run.halo.app.theme.UserLocaleRequestAttributeWriteFilter [DefaultWebFilterChain]
*checkpoint ⇢ HTTP GET "/console" [ExceptionHandlingWebHandler]
Original Stack Trace:
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:215) ~[spring-core-6.2.9.jar!/:6.2.9]
at org.springframework.core.io.AbstractResource.readableChannel(AbstractResource.java:143) ~[spring-core-6.2.9.jar!/:6.2.9]
at org.springframework.core.io.AbstractFileResolvingResource.readableChannel(AbstractFileResolvingResource.java:280) ~[spring-core-6.2.9.jar!/:6.2.9]
at reactor.core.publisher.FluxUsing.subscribe(FluxUsing.java:75) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.Flux.subscribe(Flux.java:8891) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxConcatMapNoPrefetch$FluxConcatMapNoPrefetchSubscriber.onNext(FluxConcatMapNoPrefetch.java:207) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxLimitRequest$FluxLimitRequestSubscriber.onNext(FluxLimitRequest.java:99) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.Operators$ScalarSubscription.request(Operators.java:2570) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxLimitRequest$FluxLimitRequestSubscriber.request(FluxLimitRequest.java:149) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxConcatMapNoPrefetch$FluxConcatMapNoPrefetchSubscriber.request(FluxConcatMapNoPrefetch.java:337) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.request(FluxContextWrite.java:136) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.requestUpstream(FluxSubscribeOn.java:131) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.onSubscribe(FluxSubscribeOn.java:124) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onSubscribe(FluxContextWrite.java:101) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxConcatMapNoPrefetch$FluxConcatMapNoPrefetchSubscriber.onSubscribe(FluxConcatMapNoPrefetch.java:164) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxLimitRequest$FluxLimitRequestSubscriber.onSubscribe(FluxLimitRequest.java:132) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxJust.subscribe(FluxJust.java:68) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:68) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194) ~[reactor-core-3.7.8.jar!/:3.7.8]
at reactor.core.scheduler.BoundedElasticThreadPerTaskScheduler$SchedulerTask.run(BoundedElasticThreadPerTaskScheduler.java:1013) ~[reactor-core-3.7.8.jar!/:3.7.8]
at java.base/java.lang.VirtualThread.run(VirtualThread.java:329) ~[na:na]
2025-11-14T09:05:38.697+08:00 INFO 7004 --- [run.halo.app.notification.NotificationTrigger-1] r.h.a.notification.NotificationTrigger : Notification sent for reason: reason-szclkozm
2025-11-14T09:05:49.448+08:00 ERROR 7004 --- [loomBoundedElastic-203] a.w.r.e.AbstractErrorWebExceptionHandler : [374ef9e9-64] 500 Server Error for HTTP GET "/console"
`