Description
Under the directory /usr/local/apisix/conf/, there are two files named config.yaml and config-default.yaml. Modifying the configuration in config.yaml does not take effect, but modifying the configuration in config-default.yaml does. I have checked that the permissions of both files are the same, and the syntax of config.yaml is correct. Additionally, I have removed config-default.yaml from the current directory,and When running the command:
./apisix reload -c /usr/local/apisix/conf/config.yaml
The following output is generated:
/usr/local/openresty/luajit/bin/luajit /usr/local/apisix/apisix/cli/apisix.lua reload
failed to read local yaml config of apisix: failed to open file: /usr/local/apisix/conf/config-default.yaml, error info:/usr/local/apisix/conf/config-default.yaml: No such file or directory.
Environment
- APISIX version (run
apisix version):2.7
- Operating system (run
uname -a):x86_64 GNU/Linux
- OpenResty / Nginx version (run
openresty -V or nginx -V): openresty/1.19.3.2
- etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run
luarocks --version):luarocks 2.3.0
Description
Under the directory /usr/local/apisix/conf/, there are two files named config.yaml and config-default.yaml. Modifying the configuration in config.yaml does not take effect, but modifying the configuration in config-default.yaml does. I have checked that the permissions of both files are the same, and the syntax of config.yaml is correct. Additionally, I have removed config-default.yaml from the current directory,and When running the command:
./apisix reload -c /usr/local/apisix/conf/config.yaml
The following output is generated:
/usr/local/openresty/luajit/bin/luajit /usr/local/apisix/apisix/cli/apisix.lua reload
failed to read local yaml config of apisix: failed to open file: /usr/local/apisix/conf/config-default.yaml, error info:/usr/local/apisix/conf/config-default.yaml: No such file or directory.
Environment
apisix version):2.7uname -a):x86_64 GNU/Linuxopenresty -Vornginx -V): openresty/1.19.3.2curl http://127.0.0.1:9090/v1/server_info):luarocks --version):luarocks 2.3.0