Skip to content

Creating a custom plugin fails with an error #1862

Answered by shaneutt
shahamit asked this question in Q&A
Discussion options

You must be logged in to vote

The problem you're having would seem to be because the plugin isn't in the search path:

 2021/09/27 12:39:28 [error] 1#0: init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:515: error loading plugin schemas: on plugin 'myheader': myheader plugin is enabled but not installed;

This means that the plugin file is not in the lua path or otherwise findable by Kong.

The standard location for plugins is /usr/local/share/lua/5.1/kong/plugins but this guide has you use /opt/kong/plugins and change the search path to include it. Double check the following:

  • configmap creation
  • volume mount
  • setting KONG_LUA_PACKAGE_PATH

I can't be sure from just the describe output you provided but it would s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shahamit
Comment options

Answer selected by shahamit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants