satishviswanathan commented on issue #10932:
URL: https://github.com/apache/apisix/issues/10932#issuecomment-1949283669

   quick update I got the plugins loaded by settings the extra_lua_path 
"/opt/apisix/plugins/\?.lua" and in my apisix docker I gave it as follows.
   
   apisix:
       image: apache/apisix:${APISIX_IMAGE_TAG:-3.8.0-debian}
       restart: always
       volumes:
         - ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
         - ./auth:/usr/local/apisix/auth
         - ./custom-plugins:/opt/apisix/plugins/apisix/plugins:ro
   
   
   The change was I gave the path as "/opt/apisix/plugins/apisix/plugins". If I 
give anyother path it wouldn't work. For example initially I was giving it as 
"/opt/apisix/plugins/".
   
   Now apis six is running with the custom plugin enabled and I'm bale to hit 
by endpoint and get the response back. I'm not sure if the custom plugin got 
executed. However I'm still seeing that error in the background
   
   2024/02/16 20:24:40 [error] 63#63: *23912 [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]

Reply via email to