-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
使用 MariaDB 有几率无法正常初始化 Halo #5534
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/needs-information
Indicates an issue needs more information in order to work on it.
Milestone
Comments
也可能会遇到: URL: http://127.0.0.1:8090/apis/api.console.halo.run/v1alpha1/system/initialize Response Body:
无异常日志。 |
从日志来看,大概率是 MariaDB Connector/R2DBC 的问题,近期他们已经发布了 1.2.0,可以尝试升级后再测试一下问题是否还存在。如果仍旧存在,我们可以向 MariaDB Connector/R2DBC 提交 Issue。 测试方法: 在文件 r2dbc-mariadb.version=1.2.0 |
JohnNiang
added
kind/bug
Categorizes issue or PR as related to a bug.
triage/needs-information
Indicates an issue needs more information in order to work on it.
labels
Mar 21, 2024
升级到 1.2.0 之后会无法启动:
|
目前可以确认是 MariaDB 的驱动问题,临时解决方案是使用 mysql 的驱动,因为 MariaDB 和 MySQL 兼容,使用方式为: - --spring.r2dbc.url=r2dbc:pool:mariadb://halodb:3306/halo
+ --spring.r2dbc.url=r2dbc:pool:mysql://halodb:3306/halo 也就是将连接地址的 mariadb 改为 mysql。 |
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/needs-information
Indicates an issue needs more information in order to work on it.
系统信息
None
使用的哪种方式运行?
Docker
发生了什么?
在初始化数据时,会遇到接口一直 pending 的问题。
Ref https://bbs.halo.run/d/5193-docker-compose-部署初始化时提示网络错误/12
日志:halo.log
相关日志输出
No response
附加信息
我的 Docker Compose 文件:
The text was updated successfully, but these errors were encountered: