halo-dev / halo

强大易用的开源建站工具。
https://www.halo.run
GNU General Public License v3.0
34.01k stars 9.7k forks source link

2.16.0-rc1升级后打不开主页 #5999

Closed Dev-Wiki closed 5 months ago

Dev-Wiki commented 5 months ago

System information

What is the project operation method?

Docker

What happened?

最新的Release 升级到 2.16.0-rc.1 必然出现

Relevant log output

blog-halo-halo-1    | 
blog-halo-halo-1    | 2024-05-28T10:03:38.260+08:00 ERROR 7 --- [oundedElastic-2] o.s.w.s.adapter.HttpWebHandlerAdapter    : [5be6fb77-150] 500 Server Error for HTTP GET "/"
blog-halo-halo-1    | 
blog-halo-halo-1    | org.thymeleaf.exceptions.TemplateProcessingException: Error during execution of processor 'run.halo.app.theme.dialect.GlobalHeadInjectionProcessor' (template: "error/error" - line 3, col 1)
blog-halo-halo-1    |   at org.thymeleaf.processor.element.AbstractElementModelProcessor.process(AbstractElementModelProcessor.java:141) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.util.ProcessorConfigurationUtils$ElementModelProcessorWrapper.process(ProcessorConfigurationUtils.java:649) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1510) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.engine.OpenElementTag.beHandled(OpenElementTag.java:205) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.engine.Model.process(Model.java:282) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.engine.Model.process(Model.java:290) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.engine.GatheringModelProcessable.process(GatheringModelProcessable.java:78) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.engine.ProcessorTemplateHandler.handleCloseElement(ProcessorTemplateHandler.java:1640) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.engine.CloseElementTag.beHandled(CloseElementTag.java:139) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.engine.TemplateModel.process(TemplateModel.java:136) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:592) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1103) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1077) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at org.thymeleaf.spring6.SpringWebFluxTemplateEngine.lambda$createFullStream$0(SpringWebFluxTemplateEngine.java:198) ~[thymeleaf-spring6-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   at reactor.core.publisher.MonoCreate.subscribe(MonoCreate.java:61) ~[reactor-core-3.6.6.jar:3.6.6]
blog-halo-halo-1    |   at reactor.core.publisher.Mono.subscribe(Mono.java:4568) ~[reactor-core-3.6.6.jar:3.6.6]
blog-halo-halo-1    |   at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:126) ~[reactor-core-3.6.6.jar:3.6.6]
blog-halo-halo-1    |   at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84) ~[reactor-core-3.6.6.jar:3.6.6]
blog-halo-halo-1    |   at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37) ~[reactor-core-3.6.6.jar:3.6.6]
blog-halo-halo-1    |   at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
blog-halo-halo-1    |   at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:na]
blog-halo-halo-1    |   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
blog-halo-halo-1    |   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
blog-halo-halo-1    |   at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]
blog-halo-halo-1    | Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'run.halo.search.widget.SearchWidgetHeadProcessor' available
blog-halo-halo-1    |   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:343) ~[spring-beans-6.1.8.jar:6.1.8]
blog-halo-halo-1    |   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:334) ~[spring-beans-6.1.8.jar:6.1.8]
blog-halo-halo-1    |   at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1252) ~[spring-context-6.1.8.jar:6.1.8]
blog-halo-halo-1    |   at run.halo.app.plugin.SpringExtensionFactory.lambda$create$0(SpringExtensionFactory.java:67) ~[classes/:2.16.0-rc.1]
blog-halo-halo-1    |   at java.base/java.util.Optional.map(Unknown Source) ~[na:na]
blog-halo-halo-1    |   at run.halo.app.plugin.SpringExtensionFactory.create(SpringExtensionFactory.java:67) ~[classes/:2.16.0-rc.1]
blog-halo-halo-1    |   at org.pf4j.ExtensionWrapper.getExtension(ExtensionWrapper.java:38) ~[pf4j-3.11.1.jar:3.11.1]
blog-halo-halo-1    |   at org.pf4j.AbstractPluginManager.getExtensions(AbstractPluginManager.java:1040) ~[pf4j-3.11.1.jar:3.11.1]
blog-halo-halo-1    |   at org.pf4j.AbstractPluginManager.getExtensions(AbstractPluginManager.java:617) ~[pf4j-3.11.1.jar:3.11.1]
blog-halo-halo-1    |   at run.halo.app.plugin.ExtensionComponentsFinder.getExtensions(ExtensionComponentsFinder.java:38) ~[classes/:2.16.0-rc.1]
blog-halo-halo-1    |   at run.halo.app.theme.dialect.GlobalHeadInjectionProcessor.getTemplateHeadProcessors(GlobalHeadInjectionProcessor.java:93) ~[classes/:2.16.0-rc.1]
blog-halo-halo-1    |   at run.halo.app.theme.dialect.GlobalHeadInjectionProcessor.doProcess(GlobalHeadInjectionProcessor.java:75) ~[classes/:2.16.0-rc.1]
blog-halo-halo-1    |   at org.thymeleaf.processor.element.AbstractElementModelProcessor.process(AbstractElementModelProcessor.java:98) ~[thymeleaf-3.1.2.RELEASE.jar:3.1.2.RELEASE]
blog-halo-halo-1    |   ... 23 common frames omitted
blog-halo-halo-1    |

Additional information

No response

JohnNiang commented 5 months ago

Hi @Dev-Wiki , thank you for reaching out here!

建议提供完整的错误日志。真正的错误应该发生在访问页面之前。

/triage needs-information

Dev-Wiki commented 5 months ago

Hi @Dev-Wiki , thank you for reaching out here!

建议提供完整的错误日志。真正的错误应该发生在访问页面之前。

/triage needs-information

已经回退版本了 我重新升级到2.16.0 测试一下

JohnNiang commented 5 months ago

我在开发过程中也遇到类似的问题了,因为不是必现,所以排查起来比较困难。目前你可以进入 Console,重新启动搜索插件即可。