Skip to content

help request: Configuring config.yaml did not work, instead it is reading config-default.yaml. #10446

Description

@Routerch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions