gliffcheung opened a new issue, #10532:
URL: https://github.com/apache/apisix/issues/10532

   ### Description
   
   I want to cherry-pick some commit from newer version of apisix to the 
version i am using for some new feature.
   After do that, I found I need to upgrade dependencies. ( 
lua-resty-healthcheck-api7 from version 2.2.2 to 2.2.3 )
   I am a rookie of apisix and lua, there are the steps of what I have done:
   - the apisix is installed by RPM, so I install luarocks firstly.
   - update the version of dependency in 
`/usr/local/apisix/deps/lib/luarocks/rocks-5.1/apisix/master-0/apisix-master-0.rockspec`
   - exec `luarocks install apisix-master-0.rockspec 
--tree=/usr/local/apisix/deps --only-deps --local`
   - exec `apisix reload`
   
   And some thing goes wrong, here is the `error.log`. Appreciate on any help!
   ```
   2023/11/22 17:23:52 [error] 97011#97011: *241050 lua entry thread aborted: 
runtime error: /usr/local/apisix/apisix/upstream.lua:98: module 
'resty.healthcheck' not found:
           no field package.preload['resty.healthcheck']
           no file '/usr/local/apisix//deps/share/lua/5.1/resty/healthcheck.lua'
           no file 
'/usr/local/apisix//deps/share/lua/5.1/resty/healthcheck/init.lua'
           no file '/usr/local/apisix/resty/healthcheck.lua'
           no file '/usr/local/apisix/resty/healthcheck/init.lua'
           no file '/usr/local/openresty/site/lualib/resty/healthcheck.ljbc'
           no file 
'/usr/local/openresty/site/lualib/resty/healthcheck/init.ljbc'
           no file '/usr/local/openresty/lualib/resty/healthcheck.ljbc'
           no file '/usr/local/openresty/lualib/resty/healthcheck/init.ljbc'
           no file '/usr/local/openresty/site/lualib/resty/healthcheck.lua'
           no file '/usr/local/openresty/site/lualib/resty/healthcheck/init.lua'
           no file '/usr/local/openresty/lualib/resty/healthcheck.lua'
           no file '/usr/local/openresty/lualib/resty/healthcheck/init.lua'
           no file './resty/healthcheck.lua'
           no file 
'/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/healthcheck.lua'
           no file '/usr/local/share/lua/5.1/resty/healthcheck.lua'
           no file '/usr/local/share/lua/5.1/resty/healthcheck/init.lua'
           no file 
'/usr/local/openresty/luajit/share/lua/5.1/resty/healthcheck.lua'
           no file 
'/usr/local/openresty/luajit/share/lua/5.1/resty/healthcheck/init.lua'
           no file '/usr/local/apisix/resty/healthcheck.lua'
           no file './resty/healthcheck.lua'
           no file 
'/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/healthcheck.lua'
           no file '/usr/local/share/lua/5.1/resty/healthcheck.lua'
           no file '/usr/local/share/lua/5.1/resty/healthcheck/init.lua'
           no file 
'/usr/local/openresty/luajit/share/lua/5.1/resty/healthcheck.lua'
           no file 
'/usr/local/openresty/luajit/share/lua/5.1/resty/healthcheck/init.lua'
           no file '/usr/local/openresty/site/lualib/resty/healthcheck.ljbc'
           no file 
'/usr/local/openresty/site/lualib/resty/healthcheck/init.ljbc'
           no file '/usr/local/openresty/lualib/resty/healthcheck.ljbc'
           no file '/usr/local/openresty/lualib/resty/healthcheck/init.ljbc'
           no file '/usr/local/openresty/site/lualib/resty/healthcheck.lua'
           no file '/usr/local/openresty/site/lualib/resty/healthcheck/init.lua'
           no file '/usr/local/openresty/lualib/resty/healthcheck.lua'
           no file '/usr/local/openresty/lualib/resty/healthcheck/init.lua'
           no file './resty/healthcheck.lua'
           no file 
'/usr/local/openresty/luajit/share/luajit-2.1.0-beta3/resty/healthcheck.lua'
           no file '/usr/local/share/lua/5.1/resty/healthcheck.lua'
           no file '/usr/local/share/lua/5.1/resty/healthcheck/init.lua'
           no file 
'/usr/local/openresty/luajit/share/lua/5.1/resty/healthcheck.lua'
           no file 
'/usr/local/openresty/luajit/share/lua/5.1/resty/healthcheck/init.lua'
           no file '/usr/local/apisix//deps/lib64/lua/5.1/resty/healthcheck.so'
           no file '/usr/local/apisix//deps/lib/lua/5.1/resty/healthcheck.so'
           no file '/usr/local/openresty/site/lualib/resty/healthcheck.so'
           no file '/usr/local/openresty/lualib/resty/healthcheck.so'
           no file './resty/healthcheck.so'
           no file '/usr/local/lib/lua/5.1/resty/healthcheck.so'
           no file 
'/usr/local/openresty/luajit/lib/lua/5.1/resty/healthcheck.so'
           no file '/usr/local/lib/lua/5.1/loadall.so'
           no file './resty/healthcheck.so'
           no file '/usr/local/lib/lua/5.1/resty/healthcheck.so'
           no file 
'/usr/local/openresty/luajit/lib/lua/5.1/resty/healthcheck.so'
           no file '/usr/local/lib/lua/5.1/loadall.so'
           no file '/usr/local/apisix//deps/lib64/lua/5.1/resty.so'
           no file '/usr/local/apisix//deps/lib/lua/5.1/resty.so'
           no file '/usr/local/openresty/site/lualib/resty.so'
           no file '/usr/local/openresty/lualib/resty.so'
           no file './resty.so'
           no file '/usr/local/lib/lua/5.1/resty.so'
           no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so'
           no file '/usr/local/lib/lua/5.1/loadall.so'
           no file './resty.so'
           no file '/usr/local/lib/lua/5.1/resty.so'
           no file '/usr/local/openresty/luajit/lib/lua/5.1/resty.so'
           no file '/usr/local/lib/lua/5.1/loadall.so'
   stack traceback:
   coroutine 0:
           [C]: in function 'require'
           /usr/local/apisix/apisix/upst
   ``` 
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.2.0
   - Operating system (run `uname -a`): Linux
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): 1.21.4.1
   - 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`): 3.8.0
   


-- 
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