apisix icon indicating copy to clipboard operation
apisix copied to clipboard

help request: config.yaml configuration not work

Open yuqiquan opened this issue 2 years ago • 4 comments

Description

我原先使用的是2.13.2版本 升到2.15.0 后在config.yaml中配置,apisix的部分没有效果,必须在config-default.yaml中进行配置

比如 image

启动后发现压根无效 image

在报错的路径中压根找不到/home/apisix/plugins/ 目录

而且我配置了control image

在lua中使用 image

它报错为nil image

由此可见我的config.yaml文件中有关apisix的配置失效了 但是我的另一台升完级后 这样配置是正常的

为什么!!!

Environment

  • APISIX version (2.15.0):

yuqiquan avatar Sep 13 '22 08:09 yuqiquan

Can you describe the steps to reproduce in detail? It seems that your custom plugin does not exist.

guitu168 avatar Sep 13 '22 10:09 guitu168

由此可见我的config.yaml文件中有关apisix的配置失效了 但是我的另一台升完级后 这样配置是正常的

You can look for the differences between the two server configurations. If I understand correctly, since it is normal for the other server to do the same operation, the problem may be the difference between the two.

tzssangglass avatar Sep 13 '22 10:09 tzssangglass

我自定义了一个info-report插件,文件放在/tmp/apisix/plugins/目录下 image 对config.yaml进行配置 image

启动出现错误 image

但是如果配置到config-default文件中就成功启动,不知道为什么

yuqiquan avatar Sep 13 '22 11:09 yuqiquan

try with

apisix:
    extra_lua_path: "/tmp/apisix/plugins/?.lua"

in config.yaml

You can locate the problem by searching the path.

tzssangglass avatar Sep 14 '22 01:09 tzssangglass

@yuqiquan any updates?

shreemaan-abhishek avatar Sep 06 '23 06:09 shreemaan-abhishek

Due to lack of the reporter's response this issue has been labeled with "no response". It will be close in 3 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Sep 20 '23 10:09 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Sep 23 '23 10:09 github-actions[bot]