使用1Panel的方式部署了Halo,一开始能够正常访问,在安装主题做了一些设置后,昨天开始发现网站每隔一小段时间就访问不了,状态码500。
有大佬能帮忙看看的话太感谢了。我感觉是主题存在一些报错。以下是一些信息
1Panel版本:v1.9.6
最近一次Halo容器的日志截图:
<details>
<summary class=details>
日志文本
</summary>
GET /bad-request HTTP/1.0
2024-02-24T22:31:21.888+08:00 WARN 7 --- [or-http-epoll-4] r.n.http.server.HttpServerOperations : [bea72964, L:/172.18.0.3:8090 - R:/163.172.29.227:33628] 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
2024-02-24T22:31:24.138+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [c9b3f390, L:/172.18.0.3:8090 - R:/163.172.29.227:33636] 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
2024-02-24T22:32:35.552+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [6fc8bbd5, L:/172.18.0.3:8090 ! R:/51.15.0.249:42796] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET
http://156.59.150.194:37615 HTTP/1.1
Host: <filtered>
2024-02-24T22:32:39.622+08:00 WARN 7 --- [or-http-epoll-3] r.n.http.server.HttpServerOperations : [dffee2b8-1, L:/172.18.0.3:8090 ! R:/163.172.111.251:42428] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET
http://154.12.25.221:80 HTTP/1.1
Host: <filtered>
2024-02-24T22:32:59.280+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [b04e26e1, L:/172.18.0.3:8090 ! R:/163.172.111.251:59518] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET
http://156.59.150.194:37615 HTTP/1.1
Host: <filtered>
2024-02-24T22:33:23.338+08:00 ERROR 7 --- [ndedElastic-699] org.thymeleaf.TemplateEngine : [THYMELEAF][boundedElastic-699] Exception processing template "error/404": Error during execution of processor 'run.halo.app.theme.dialect.CommentEnabledVariableProcessor'
org.thymeleaf.exceptions.TemplateProcessingException: Error during execution of processor 'run.halo.app.theme.dialect.CommentEnabledVariableProcessor'
at org.thymeleaf.processor.templateboundaries.AbstractTemplateBoundariesProcessor.processTemplateStart(AbstractTemplateBoundariesProcessor.java:76) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.util.ProcessorConfigurationUtils$TemplateBoundariesProcessorWrapper.processTemplateStart(ProcessorConfigurationUtils.java:729) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.engine.ProcessorTemplateHandler.handleTemplateStart(ProcessorTemplateHandler.java:328) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.engine.TemplateStart.beHandled(TemplateStart.java:70) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.engine.TemplateModel.process(TemplateModel.java:136) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:592) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1103) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1077) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.spring6.SpringWebFluxTemplateEngine.lambda$createFullStream$0(SpringWebFluxTemplateEngine.java:198) ~[thymeleaf-spring6-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at reactor.core.publisher.MonoCreate.subscribe(MonoCreate.java:61) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.publisher.Mono.subscribe(Mono.java:4512) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:126) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.6.2.jar:3.6.2]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
Caused by: reactor.core.Exceptions$ReactiveException: java.lang.InterruptedException
at reactor.core.Exceptions$ReactiveException.fillInStackTrace(Exceptions.java:734) ~[reactor-core-3.6.2.jar:3.6.2]
at java.base/java.lang.Throwable.<init>(Unknown Source) ~[na:na]
at java.base/java.lang.Throwable.<init>(Unknown Source) ~[na:na]
at java.base/java.lang.Exception.<init>(Unknown Source) ~[na:na]
at java.base/java.lang.RuntimeException.<init>(Unknown Source) ~[na:na]
at reactor.core.Exceptions$ReactiveException.<init>(Exceptions.java:724) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.Exceptions.propagate(Exceptions.java:408) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.publisher.BlockingOptionalMonoSubscriber.blockingGet(BlockingOptionalMonoSubscriber.java:115) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.publisher.Mono.blockOptional(Mono.java:1778) ~[reactor-core-3.6.2.jar:3.6.2]
at run.halo.app.theme.dialect.CommentEnabledVariableProcessor.getCommentWidget(CommentEnabledVariableProcessor.java:68) ~[classes/:2.12.2]
at run.halo.app.theme.dialect.CommentEnabledVariableProcessor.doProcessTemplateStart(CommentEnabledVariableProcessor.java:43) ~[classes/:2.12.2]
at org.thymeleaf.processor.templateboundaries.AbstractTemplateBoundariesProcessor.processTemplateStart(AbstractTemplateBoundariesProcessor.java:61) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
... 18 common frames omitted
Suppressed: java.lang.Exception: #blockOptional() has been interrupted
at reactor.core.publisher.BlockingOptionalMonoSubscriber.blockingGet(BlockingOptionalMonoSubscriber.java:117) ~[reactor-core-3.6.2.jar:3.6.2]
... 22 common frames omitted
Caused by: java.lang.InterruptedException: null
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.CountDownLatch.await(Unknown Source) ~[na:na]
at reactor.core.publisher.BlockingOptionalMonoSubscriber.blockingGet(BlockingOptionalMonoSubscriber.java:111) ~[reactor-core-3.6.2.jar:3.6.2]
... 22 common frames omitted
2024-02-24T22:33:23.339+08:00 ERROR 7 --- [ndedElastic-699] o.t.spring6.SpringWebFluxTemplateEngine : [THYMELEAF][boundedElastic-699] Exception processing template "error/404": Error during execution of processor 'run.halo.app.theme.dialect.CommentEnabledVariableProcessor'
org.thymeleaf.exceptions.TemplateProcessingException: Error during execution of processor 'run.halo.app.theme.dialect.CommentEnabledVariableProcessor'
at org.thymeleaf.processor.templateboundaries.AbstractTemplateBoundariesProcessor.processTemplateStart(AbstractTemplateBoundariesProcessor.java:76) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.util.ProcessorConfigurationUtils$TemplateBoundariesProcessorWrapper.processTemplateStart(ProcessorConfigurationUtils.java:729) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.engine.ProcessorTemplateHandler.handleTemplateStart(ProcessorTemplateHandler.java:328) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.engine.TemplateStart.beHandled(TemplateStart.java:70) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.engine.TemplateModel.process(TemplateModel.java:136) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:592) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1103) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1077) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.thymeleaf.spring6.SpringWebFluxTemplateEngine.lambda$createFullStream$0(SpringWebFluxTemplateEngine.java:198) ~[thymeleaf-spring6-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at reactor.core.publisher.MonoCreate.subscribe(MonoCreate.java:61) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.publisher.Mono.subscribe(Mono.java:4512) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:126) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.6.2.jar:3.6.2]
at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
Caused by: reactor.core.Exceptions$ReactiveException: java.lang.InterruptedException
at reactor.core.Exceptions$ReactiveException.fillInStackTrace(Exceptions.java:734) ~[reactor-core-3.6.2.jar:3.6.2]
at java.base/java.lang.Throwable.<init>(Unknown Source) ~[na:na]
at java.base/java.lang.Throwable.<init>(Unknown Source) ~[na:na]
at java.base/java.lang.Exception.<init>(Unknown Source) ~[na:na]
at java.base/java.lang.RuntimeException.<init>(Unknown Source) ~[na:na]
at reactor.core.Exceptions$ReactiveException.<init>(Exceptions.java:724) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.Exceptions.propagate(Exceptions.java:408) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.publisher.BlockingOptionalMonoSubscriber.blockingGet(BlockingOptionalMonoSubscriber.java:115) ~[reactor-core-3.6.2.jar:3.6.2]
at reactor.core.publisher.Mono.blockOptional(Mono.java:1778) ~[reactor-core-3.6.2.jar:3.6.2]
at run.halo.app.theme.dialect.CommentEnabledVariableProcessor.getCommentWidget(CommentEnabledVariableProcessor.java:68) ~[classes/:2.12.2]
at run.halo.app.theme.dialect.CommentEnabledVariableProcessor.doProcessTemplateStart(CommentEnabledVariableProcessor.java:43) ~[classes/:2.12.2]
at org.thymeleaf.processor.templateboundaries.AbstractTemplateBoundariesProcessor.processTemplateStart(AbstractTemplateBoundariesProcessor.java:61) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
... 18 common frames omitted
Suppressed: java.lang.Exception: #blockOptional() has been interrupted
at reactor.core.publisher.BlockingOptionalMonoSubscriber.blockingGet(BlockingOptionalMonoSubscriber.java:117) ~[reactor-core-3.6.2.jar:3.6.2]
... 22 common frames omitted
Caused by: java.lang.InterruptedException: null
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(Unknown Source) ~[na:na]
at java.base/java.util.concurrent.CountDownLatch.await(Unknown Source) ~[na:na]
at reactor.core.publisher.BlockingOptionalMonoSubscriber.blockingGet(BlockingOptionalMonoSubscriber.java:111) ~[reactor-core-3.6.2.jar:3.6.2]
... 22 common frames omitted
2024-02-24T22:33:42.959+08:00 WARN 7 --- [or-http-epoll-4] r.n.http.server.HttpServerOperations : [9a446e56, L:/172.18.0.3:8090 - R:/194.26.135.66:63497] 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
2024-02-24T22:34:37.121+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [177ba36b, L:/172.18.0.3:8090 ! R:/163.172.111.251:60174] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET http://156.59.150.194:37615 HTTP/1.1
Host: <filtered>
2024-02-24T22:35:04.635+08:00 WARN 7 --- [or-http-epoll-2] r.n.http.server.HttpServerOperations : [1145e2ca, L:/172.18.0.3:8090 ! R:/163.172.111.251:39634] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET http://156.59.150.194:37615 HTTP/1.1
Host: <filtered>
2024-02-24T22:35:25.504+08:00 WARN 7 --- [or-http-epoll-2] r.n.http.server.HttpServerOperations : [d3bdcba4, L:/172.18.0.3:8090 ! R:/163.172.111.251:54654] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET http://156.59.150.194:37615 HTTP/1.1
Host: <filtered>
2024-02-24T22:35:25.781+08:00 WARN 7 --- [or-http-epoll-3] r.n.http.server.HttpServerOperations : [6c527264, L:/172.18.0.3:8090 ! R:/163.172.111.251:54664] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET http://156.59.150.194:37615 HTTP/1.1
Host: <filtered>
2024-02-24T22:35:29.190+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [de9b8dd6-1, L:/172.18.0.3:8090 ! R:/163.172.111.251:54696] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET http://156.59.150.194:37615 HTTP/1.1
Host: <filtered>
2024-02-24T22:35:32.628+08:00 WARN 7 --- [or-http-epoll-1] r.n.http.server.HttpServerOperations : [3ace896b, L:/172.18.0.3:8090 ! R:/163.172.111.251:43632] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET http://156.59.150.194:37615 HTTP/1.1
Host: <filtered>
2024-02-24T22:35:35.821+08:00 WARN 7 --- [or-http-epoll-3] r.n.http.server.HttpServerOperations : [c080d4f0, L:/172.18.0.3:8090 ! R:/163.172.111.251:43614] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET http://156.59.150.194:37615 HTTP/1.1
Host: <filtered>
2024-02-24T22:35:37.930+08:00 WARN 7 --- [or-http-epoll-4] r.n.http.server.HttpServerOperations : [f4bbe4e5, L:/172.18.0.3:8090 ! R:/163.172.111.251:43622] Decoding failed: REQUEST(decodeResult: failure(io.netty.handler.codec.PrematureChannelClosureException: Connection closed before received headers), version: HTTP/1.1)
GET http://156.59.150.194:37615 HTTP/1.1
Host: <filtered>
2024-02-24T22:36:13.105+08:00 ERROR 7 --- [ndedElastic-702] org.thymeleaf.TemplateEngine : [THYMELEAF][boundedElastic-702] Exception processing template "error/404": Error during execution of processor 'run.halo.app.theme.dialect.GlobalHeadInjectionProcessor' (template: "error/404" - line 3, col 1)
</details>