You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GenerateConsoleCtrlEvent fails in the context of a Windows service. I believe, but have not tested, that the process is started in a detached console mode, which prevents GenerateConsoleCtrlEvent from succeeding.
A simple solution would be to use AllocConsole() when run as a Windows service.
The text was updated successfully, but these errors were encountered:
Bug Report
Describe the bug
When running fluent-bit as a Windows service, calls to http://localhost:2020/api/v2/reload fail with an HTTP status of 500.
To Reproduce
Expected behavior
Fluent-bit would respond with an HTTP status 200 OK and reload its configuration.
Your Environment
Version used: 3.2.4
Configuration:
Operating System and version: Windows 11 24H2
Filters and plugins: None
Additional context
This issue prevents reloading due to configuration changes. A simple workaround is the restart the fluent-bit service.
The issue appears to be:
fluent-bit/src/http_server/api/v2/reload.c
Line 70 in 417d129
GenerateConsoleCtrlEvent fails in the context of a Windows service. I believe, but have not tested, that the process is started in a detached console mode, which prevents GenerateConsoleCtrlEvent from succeeding.
A simple solution would be to use AllocConsole() when run as a Windows service.
The text was updated successfully, but these errors were encountered: