Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.12.1 启动时出现大量关于 H2 相关的 WARN 级别日志 #5322

Closed
hb0730 opened this issue Feb 4, 2024 · 7 comments
Closed

2.12.1 启动时出现大量关于 H2 相关的 WARN 级别日志 #5322

hb0730 opened this issue Feb 4, 2024 · 7 comments
Labels
triage/unresolved Indicates an issue that can not or will not be resolved.

Comments

@hb0730
Copy link

hb0730 commented Feb 4, 2024

系统信息

使用的哪种方式运行?

Docker

在线站点地址

No response

发生了什么?

将halo升级2.12.1版本时发生了H2 相关错误

2024-02-04T14:30:08.296+08:00 WARN 7 --- [garbage-collector-controller-t-1] 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

即使初始化环境启动也是如此

version: "3"
services:
  halo_server:
    image: halohub/halo:2.12.1
    container_name: halo_server
    restart: unless-stopped
    volumes:
      - ./halo:/root/.halo2
    #ports:
      #- "8090:8090"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://xxxx/actuator/health/readiness"]
      interval: 30s
      timeout: 5s
      retries: 5
      start_period: 30s
    command:
      - --halo.external-url=https://xxxx/
      - --halo.security.initializer.superadminusername=xxxx
      - --halo.security.initializer.superadminpassword=xxxxx
      - --halo.cache.page.disabled=false
    networks:
      nginx-net:
        ipv4_address: 192.168.208.5
networks:
  nginx-net:
    external: true

相关日志输出

No response

附加信息

halo-log-2024-02-04 14_48.log

@JohnNiang
Copy link
Member

JohnNiang commented Feb 4, 2024

Hi @hb0730 , thank you for reaching out here!

这个日志的级别是 WARN,并非报错,目前可直接忽略。

/triage needs-information

@hb0730
Copy link
Author

hb0730 commented Feb 4, 2024

Hi @hb0730 , thank you for reaching out here!

这个日志的级别是 WARN,并非报错,目前可直接忽略。

/needs-information

大量的WARN导致小内存主机无法正常访问,或许与主机内存有关(并未排查)

@JohnNiang
Copy link
Member

Hi @hb0730 ,这个 WARN 应该是不会导致无法正常访问的。我在本地开发的时候也是用 H2 数据库(生产环境慎用),同样遇到了以上的 WARN 日志,但并不影响页面的渲染和其他逻辑。

/triage needs-information

@JohnNiang JohnNiang changed the title 版本2.12.2 H2启动BUG 2.12.2 启动时出现大量关于 H2 相关的 WARN 级别日志 Feb 4, 2024
@f2c-ci-robot f2c-ci-robot bot added the triage/needs-information Indicates an issue needs more information in order to work on it. label Feb 4, 2024
@hb0730
Copy link
Author

hb0730 commented Feb 4, 2024

初始化后 版本2.12.1
2ff9b641-e1f0-4e2b-a6f3-978825c1f6e1

恢复备份后
image

或许是某些插件原因,待排查一下

@hb0730
Copy link
Author

hb0730 commented Feb 4, 2024

初始化后版本2.12.1 2ff9b641-e1f0-4e2b-a6f3-978825c1f6e1

恢复备份后 图像

也许是某些插件原因,待排查一下

已排查是插件站点推送插件 引起的原因

--
升级前备份禁用插件

@hb0730 hb0730 closed this as completed Feb 4, 2024
@hb0730 hb0730 changed the title 2.12.2 启动时出现大量关于 H2 相关的 WARN 级别日志 2.12.1 启动时出现大量关于 H2 相关的 WARN 级别日志 Feb 4, 2024
@sunnywinds
Copy link

我已经是删除所有文件重新部署了,还是报错
2024-02-08T15:31:00.359+08:00 WARN 7 --- [ 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

@JohnNiang
Copy link
Member

Hi @sunnywinds , see #5322 (comment) for more.

@JohnNiang JohnNiang added triage/unresolved Indicates an issue that can not or will not be resolved. and removed triage/needs-information Indicates an issue needs more information in order to work on it. labels Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/unresolved Indicates an issue that can not or will not be resolved.
Projects
None yet
Development

No branches or pull requests

3 participants