satishviswanathan commented on issue #10932: URL: https://github.com/apache/apisix/issues/10932#issuecomment-1948907347
@kayx23 - I tried that but still it didn't work, however I resolved that issue by copying the custom plugin under the plugins folder where all the plugins are residing (apisix/plugins/) and then updated the config-default.yaml with the new custom plugin. So I don't have the extra_lua_path any more. With these changes I was able to enable the custom plugin. However as soon as the plugin was enabled I can see the following logs from APISIX. Do you know what this error is ? Any help is appreciated 2024/02/16 17:05:39 [error] 212#212: *148682 [lua] config_etcd.lua:883: failed to fetch data from etcd: /usr/local/openresty/lualib/resty/lrucache.lua:229: table index is nil apisix_1 | stack traceback: apisix_1 | /usr/local/openresty/lualib/resty/lrucache.lua:229: in function 'set' apisix_1 | /usr/local/apisix/apisix/core/lrucache.lua:97: in function 'cached_validator' apisix_1 | /usr/local/apisix/apisix/core/schema.lua:49: in function 'get_validator' apisix_1 | /usr/local/apisix/apisix/core/schema.lua:60: in function 'check_schema' apisix_1 | /usr/local/apisix/apisix/plugin.lua:887: in function 'check_single_plugin_schema' apisix_1 | /usr/local/apisix/apisix/plugin.lua:1041: in function 'check_schema' apisix_1 | /usr/local/apisix/apisix/plugin.lua:1090: in function 'plugin_checker' apisix_1 | /usr/local/apisix/apisix/http/route.lua:122: in function 'checker' apisix_1 | /usr/local/apisix/apisix/core/config_etcd.lua:677: in function 'sync_data' apisix_1 | /usr/local/apisix/apisix/core/config_etcd.lua:827: in function </usr/local/apisix/apisix/core/config_etcd.lua:817> apisix_1 | [C]: in function 'xpcall' apisix_1 | /usr/local/apisix/apisix/core/config_etcd.lua:817: in function </usr/local/apisix/apisix/core/config_etcd.lua:795>, etcd key: /apisix/routes, context: ngx.timer -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
