部署方式:docker-compose
复现步骤:按照官方文档中更新容器的步骤操作
详细错误内容:通过 docker logs halo 命令查看
Version: 2.5.2
2023-05-11T11:20:18.639+08:00 INFO 8 --- [ main] run.halo.app.Application : Starting Application v2.5.2 using Java 17.0.7 with PID 8 (/application/BOOT-INF/classes started by root in /application)
2023-05-11T11:20:18.649+08:00 INFO 8 --- [ main] run.halo.app.Application : No active profile set, falling back to 1 default profile: "default"
2023-05-11T11:20:20.036+08:00 INFO 8 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
2023-05-11T11:20:20.038+08:00 INFO 8 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data R2DBC repositories in DEFAULT mode.
2023-05-11T11:20:20.210+08:00 INFO 8 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 161 ms. Found 1 R2DBC repository interfaces.
2023-05-11T11:20:21.717+08:00 WARN 8 --- [ main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'replyEndpoint' defined in class path resource [run/halo/app/core/extension/endpoint/ReplyEndpoint.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'replyServiceImpl' defined in class path resource [run/halo/app/content/comment/ReplyServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'userServiceImpl' defined in class path resource [run/halo/app/core/extension/service/UserServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'systemConfigurableEnvironmentFetcher' defined in class path resource [run/halo/app/infra/SystemConfigurableEnvironmentFetcher.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration$EnableWebFluxConfiguration': Unsatisfied dependency expressed through method 'setConfigurers' parameter 0: Error creating bean with name 'webFluxConfig' defined in class path resource [run/halo/app/config/WebFluxConfig.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'halo-run.halo.app.infra.properties.HaloProperties': Could not bind properties to 'HaloProperties' : prefix=halo, ignoreInvalidFields=false, ignoreUnknownFields=true
2023-05-11T11:20:21.741+08:00 INFO 8 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-05-11T11:20:21.755+08:00 ERROR 8 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Binding to target org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'halo' to run.halo.app.infra.properties.HaloProperties failed:
Property: halo.security.initializer.superAdminUsername
Value: "admin"
Reason: Super administrator username must be a valid subdomain name, the name must:
1. contain no more than 63 characters
2. contain only lowercase alphanumeric characters, '-' or '.'
3. start with an alphanumeric character
4. end with an alphanumeric character
Action:
Update your application's configuration
目前可以回退版本到2.4.3后正常