Closed timelyRain666 closed 2 months ago
/triage duplicate
Duplicates of https://github.com/halo-dev/halo/issues/5322
See https://github.com/r2dbc/r2dbc-h2/issues/247 for more
另外,在发起 Issue 之前,建议先搜索一下相关的 Issue。
/close
@JohnNiang: Closing this issue.
/triage duplicate
Duplicates of #5322
See r2dbc/r2dbc-h2#247 for more
另外,在发起 Issue 之前,建议先搜索一下相关的 Issue。
/close
谢谢回复,https://github.com/halo-dev/halo/issues/5322 这个之前搜到issue看过了,排查过不是插件的问题,也不是内存的问题,有部分日志没发完整,我这里提示很多地方间断提示H2Connection的警告过后,服务就突然Current command vanished from the unit file, execution of the command list won't be resumed.
挂了。
解决办法是,使用jar部署并使用systemd作为服务运行时,在/etc/systemd/system/halo.service
的ExecStart中--spring.config.additional-location=optional:file:
后面指定好application.yaml
修改文档这里的提供配置,例如:--spring.config.additional-location=optional:file:/root/halo/application.yaml
日志看起来 halo 是正常停止的,建议检查一下你的 halo.service 是否正确,你可以先不配置 halo.service 来启动并指定你自己的配置文件--spring.config.additional-location
试试就知道了
系统信息
使用的哪种方式运行?
Fat Jar
发生了什么?
文件和系统版本: application.yaml配置:
直接使用
java -jar halo.jar --spring.config.additional-location=optional:file:/root/halo --halo.external-url=https://blog.barbell.pro
,能正常运行。但是根据文档使用systemctl运行不了,以下是
/etc/systemd/system/halo.service
文件内容:已反复
systemctl daemon-reload
,运行报[main] io.r2dbc.h2.H2Connection : Option{name='readOnly', sensitive=false} + isn't supported in H2 at the transaction level. You must set it on conenction URL. See http://www.h2database.com/html/features.html#read_only
主页和console界面都无法访问,下面有一部分日志,完整日志文件在附件相关日志输出
附加信息
命令正常运行日志: halo-log-2024-07-25 09_21.log systemctl运行错误日志: halo.log