I have a custom plugin for Kong which worked fine for Kong v0.14.1 but after I upgraded to v.1.0.2 it's throwing an error.
OS used: macOS Mojave
In kong.conf file I have this code:
log_level = debug
plugins=my-custom-plugin
I try to start Kong with this command:
kong start -c kong.conf
and I get this error:
Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:50: nginx: [error] init_by_lua
error: /usr/local/share/lua/5.1/kong/init.lua:344: my-custom-plugin plugin is enabled but not installed;
module 'kong.plugins.my-custom-plugin.handler' not found:No LuaRocks module found for kong.plugins.my-custom-plugin.handler
no field package.preload['kong.plugins.my-custom-plugin.handler']
no file './kong/plugins/kong-my-custom-plugin/handler.lua'...
I installed the plugin using this command:
luarocks make
which gave the following output:
my-custom-plugin 1.0-1 is now installed in /usr/local/opt/kong (license: MIT)
Somehow, it appears that Kong is unable to find my installed custom plugin. Any idea why this happens?