1Panel 升级 Halo报错
通过 1panel 升级 2.10.0 -> 2.10.1 后启动失败,出现 No value found for protocol 错误,
1Panel-halo-rzxY | Caused by: io.r2dbc.spi.NoSuchOptionException: No value found for protocol
1Panel-halo-rzxY | at io.r2dbc.spi.ConnectionFactoryOptions.getRequiredValue(ConnectionFactoryOptions.java:165) ~[r2dbc-spi-1.0.0.RELEASE.jar:na]
1Panel-halo-rzxY | at org.springframework.boot.r2dbc.ConnectionFactoryBuilder$PoolingAwareOptionsCapableWrapper.delegateFactoryOptions(ConnectionFactoryBuilder.java:214) ~[spring-boot-3.1.5.jar:3.1.5]
1Panel-halo-rzxY | at org.springframework.boot.r2dbc.ConnectionFactoryBuilder$PoolingAwareOptionsCapableWrapper.buildAndWrap(ConnectionFactoryBuilder.java:206) ~[spring-boot-3.1.5.jar:3.1.5]
1Panel-halo-rzxY | at org.springframework.boot.r2dbc.ConnectionFactoryBuilder.build(ConnectionFactoryBuilder.java:177) ~[spring-boot-3.1.5.jar:3.1.5]
1Panel-halo-rzxY | at org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryConfigurations.createConnectionFactory(ConnectionFactoryConfigurations.java:72) ~[spring-boot-autoconfigure-3.1.5.jar:3.1.5]
1Panel-halo-rzxY | at org.springframework.boot.autoconfigure.r2dbc.ConnectionFactoryConfigurations$GenericConfiguration.connectionFactory(ConnectionFactoryConfigurations.java:130) ~[spring-boot-autoconfigure-3.1.5.jar:3.1.5]
1Panel-halo-rzxY | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
1Panel-halo-rzxY | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
1Panel-halo-rzxY | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:na]
1Panel-halo-rzxY | at java.base/java.lang.reflect.Method.invoke(Unknown Source) ~[na:na]
1Panel-halo-rzxY | at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:139) ~[spring-beans-6.0.13.jar:6.0.13]
1Panel-halo-rzxY | ... 130 common frames omitted
1Panel-halo-rzxY |
解决方法
手动修改 .env 文件参数,步骤如下:
- 从 1Panel 应用商店-已安装页面 进入 Halo 的安装目录
- 修改 .env 文件
- 添加以下参数
PANEL_DB_PORT=3306 PANEL_DB_TYPE="mysql"
- 然后 ”重建“ Halo 应用
标签:java,rzxY,boot,报错,Halo,3.1,halo,1Panel From: https://www.cnblogs.com/icloud-cn/p/1panel-upgrade-halo-error-z1zzcvf.html