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.15.1 在数据初始化时,无法正常启动预设插件 #5867

Closed
ruibaby opened this issue May 7, 2024 · 2 comments · Fixed by #5874
Closed

2.15.1 在数据初始化时,无法正常启动预设插件 #5867

ruibaby opened this issue May 7, 2024 · 2 comments · Fixed by #5874
Labels
area/core Issues or PRs related to the Halo Core kind/bug Categorizes issue or PR as related to a bug. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now.
Milestone

Comments

@ruibaby
Copy link
Member

ruibaby commented May 7, 2024

系统信息

  • 外部访问地址: http://localhost:8090/
  • 启动时间: 2024-05-07 15:12
  • 版本: 2.15.1
  • 构建时间: 2024-05-07 11:51
  • Git Commit: 7c90ed5
  • Java: IBM Semeru Runtime Open Edition / 21.0.2+13-LTS
  • 数据库: PostgreSQL / 15.4 (Debian 15.4-2.pgdg120+1)
  • 操作系统: Linux / 6.7.11-orbstack-00143-ge6b82e26cd22
  • 已激活主题: Earth
  • 已启动插件:

使用的哪种方式运行?

Docker

发生了什么?

image

如图,第一个插件无法正常启动,接口一直处于 pending 状态,然后刷新页面之后仅安装了一个插件且没有启动。再次启动可以正常启动插件。

日志:halo-log-2024-05-07 15_14.log

/kind bug
/area core
/priority critical-urgent

相关日志输出

No response

附加信息

No response

@JohnNiang
Copy link
Member

/assign

@ruibaby ruibaby added area/core Issues or PRs related to the Halo Core priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. kind/bug Categorizes issue or PR as related to a bug. labels May 7, 2024
@JohnNiang
Copy link
Member

经过排查,主要是因为安装好插件后,立即启用了插件,此时插件正在被解析并禁用,禁用的时候会自动设置 plugin.spec.enabled 为 false,这也就导致启动插件接口会一直等待插件启动成功,直到等待超时。

目前,我的解决方案就是在启用插件的重试逻辑中尝试重新设置插件状态,这可能是当前修改最小的解决方案。

@JohnNiang JohnNiang modified the milestones: 2.15.x, 2.16.x May 9, 2024
f2c-ci-robot bot pushed a commit that referenced this issue May 10, 2024
#### What type of PR is this?

/kind bug
/area core
/area plugin
/milestone 2.16.x

#### What this PR does / why we need it:

This PR refactors plugin running state change method to resolve the problem of not being able to initialize preset plugins due to too small gap between installation and enabling.

#### Which issue(s) this PR fixes:

Fixes #5867

#### Does this PR introduce a user-facing change?

```release-note
解决初始化时无法正常启用插件的问题
```
@ruibaby ruibaby modified the milestones: 2.16.x, 2.16.0 May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issues or PRs related to the Halo Core kind/bug Categorizes issue or PR as related to a bug. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants