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
使用docker-compose部署启动报错 Plugin PluginCommentWidget not found in plugin manager #4071
Comments
建议提供完整的复现步骤。 /triage needs-information |
部署环境: version: "3"
services:
halo:
image: halohub/halo:2.6
container_name: halo
restart: on-failure:3
network_mode: "host"
volumes:
- ./:/root/.halo2
command:
# 修改为自己已有的 MySQL 配置
- --spring.r2dbc.url=
- --spring.r2dbc.username=
- --spring.r2dbc.password=
- --spring.r2dbc.useSSL=false
- --spring.r2dbc.allowPublicKeyRetrieval=true
- --spring.sql.init.platform=mysql
# 外部访问地址,请根据实际需要修改
- --halo.external-url=
# 初始化的超级管理员用户名
- --halo.security.initializer.superadminusername=
# 初始化的超级管理员密码
- --halo.security.initializer.superadminpassword=
# 端口号 默认8090
- --server. Port=8090 部署步骤是参考官网的部署文档进行的,没有其他步骤。多次重新部署,启动都会报错 |
从日志中显示,你安装了 PluginFeed、PluginPrismJS 等插件,这个在复现步骤中并没有体现。通过已提供的复现步骤,无法复现该问题。 |
我也遇到了这个问题,centos8.2, |
@allinprogram 建议提供近期的日志。尽量提供完整,不要截取。 |
@JohnNiang Thanks for your reply. log
configversion: "3"
services:
halo:
image: halohub/halo:2.10
container_name: halo
restart: on-failure:3
network_mode: "host"
volumes:
- ./:/root/.halo2
command:
# 修改为自己已有的 MySQL 配置
- --spring.r2dbc.url=r2dbc:pool:mysql://halo/halo
- --spring.r2dbc.username=asinixchbf
- --spring.r2dbc.password=asdjina*&sasnbz.
- --spring.sql.init.platform=mysql
# 外部访问地址,请根据实际需要修改
- --halo.external-url=https://allinprogram.com/
# 端口号 默认8090
- --server.port=8090 |
Hi @allinprogram ,需要确认一下:Halo 是全新安装的,还是经历过恢复后的。通过日志我只能进行以下猜测:之前是在 Windows 上进行过备份,接着讲备份文件恢复在了通过 Docker 运行的 Halo 中。 |
我能确认该应用起初是我在全新Linux服务器使用compose部署安装的。 整个期间未有任何从Windows系统备份/恢复的行为。 唯一可能涉及到win系统的数据,便是我使用了自己制作的主题: 值得一提的是,在测试主题过程中,也遇到了棘手的问题:生产环境重载主题后,主题样式不生效,本地测试则没有改文题。
|
评论插件的问题,我在自己的生产环境下也无法复现。建议检查一下评论插件是否为最新版,如果不是建议升级。 如果在本地开发主题遇到修改不生效的问题,建议在启动 Halo 时关闭模板缓存,具体请参考:https://docs.halo.run/developer-guide/theme/prepare#%E6%90%AD%E5%BB%BA%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83。 如果在生产环境下,主题样式不生效,可能的原因是更新时主题版本未变更。建议修改主题版本后重试。 |
根据建议,刚才更新了插件version,并重新打包引用到了系统内,halo后台已经识别到新的版本号。 对此很是疑惑,并且我昨天尝试更新其他的thymeleaf文件,是能够生效的,只有css文件不生效。 我也尝试切换到默认主题,删除并重置我自己的主题,然后重新安装,依然是该问题,很是费解。 请问有什么办法可检查数据库数据吗?希望验证一下。 |
Hi @halo-dev/sig-halo ,这里需要你们的帮助。 |
针对第一个问题,我重新翻阅了文档,是我理解错了这句话意思,造成错误:
第二个问题,对比过程是这样的:
我现在怀疑是我的LINUX或者反向代理存在缓存,我再重新起个新服务器研究看下,感谢你的回复。 如果后续还有问题我新开一个ISSUE,这个问题可以不用再跟进了。 |
找到解决办法,引用CSS文件的时候加上版本号 |
当前 Issue 即将被关闭。如果有任何相同问题请随时重新打开。 /close |
@JohnNiang: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What is version of Halo has the issue?
2.6
What database are you using?
MySQL 8.x
What is your deployment method?
Docker Compose
Your site address.
No response
What happened?
使用外部数据库部署,部署启动报错。
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: