Warning: read_debug_yaml(): missing valid end flag in debug.yaml keeps appearing, unable to disable it #12419
Replies: 2 comments
-
The warning appears because APISIX expects a To stop the warning, either (a) add To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
I added the tag at the end of the debug file and the error stopped appearing. It doesn't really make sense, but well:
I think it's something that slows down the system. But this triggered another issue with ngx:
Note: In the latest version it requires debug.yaml. If the file is missing, it throws an error. my image in Dockerfile: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I keep seeing this warning continuously in my APISIX logs, and I don’t know how to stop it. In theory, it shouldn’t appear because I have disabled the related hooks in my configuration:
pgsql
Copiar
Editar
[warn] 42#42: *4558 [lua] debug.lua:124: read_debug_yaml(): missing valid end flag in file /usr/local/apisix/conf/debug.yaml, context: ngx.timer
My config.yaml (APISIX main config) looks like this:
My debug.yaml is:
I also run APISIX inside Docker with this setup:
I have tried:
Disabling hooks in debug.yaml
Removing or renaming debug.yaml (though sometimes it reappears)
Checking file permissions and formats (no BOM, proper YAML formatting)
Restarting APISIX container multiple times
But the warning still repeats constantly.
Could anyone help me understand:
What causes this warning exactly?
Why does APISIX keep reading this debug.yaml file if hooks are disabled?
How can I properly stop APISIX from printing this warning?
Is there a way to disable the debug hooks or the Lua code that reads this file without editing core APISIX source?
Any known bugs or issues with recent APISIX versions related to this?
Thank you very much in advance!
Beta Was this translation helpful? Give feedback.
All reactions