Coder Social home page Coder Social logo

Error "error loading plugin schemas: on plugin <my-plugin>: <my-plugin> plugin is enabled but not installed" with Python plugin for kong about kong HOT 8 CLOSED

AlleMartins avatar AlleMartins commented on September 25, 2024
Error "error loading plugin schemas: on plugin : plugin is enabled but not installed" with Python plugin for kong

from kong.

Comments (8)

Smuggla avatar Smuggla commented on September 25, 2024

The plugin server is just an instance that runs your python. In your config it is python_plugin but also config'd a server named py.
Two fixes are

KONG_PLUGINSERVER_NAMES: py
KONG_PLUGINSERVER_PY_START_CMD: >-
/usr/local/bin/kong-python-pluginserver
--plugins-directory /usr/local/share/lua/5.1/kong/plugins/python_plugin
--dump
KONG_PLUGINSERVER_PY_QUERY_CMD: >-
/usr/local/bin/kong-python-pluginserver
--plugins-directory /usr/local/share/lua/5.1/kong/plugins/python_plugin
--dump

or

KONG_PLUGINSERVER_NAMES: python_plugin
KONG_PLUGINSERVER_PYTHON_PLUGIN_START_CMD: >-
/usr/local/bin/kong-python-pluginserver
--plugins-directory /usr/local/share/lua/5.1/kong/plugins/python_plugin
--dump
KONG_PLUGINSERVER_PYTHON_PLUGIN_QUERY_CMD: >-
/usr/local/bin/kong-python-pluginserver
--plugins-directory /usr/local/share/lua/5.1/kong/plugins/python_plugin
--dump

Kong will get the plugin name when the pluginserver starts.

from kong.

AlleMartins avatar AlleMartins commented on September 25, 2024

After applying your change, therefore changing the name of the embedded server, with py, I get this error: "[error] init_by_lua error: ...al/share/lua/5.1/kong/runloop/plugin_servers/ process.lua:145: Not a plugin info table:
kong-1 | /usr/local/bin/kong-python-pluginserver --plugins-directory /usr/local/share/lua/5.1/kong/plugins/python_plugin --dump" I will now attach the important codes of the project, and the logs error (the unspecified settings are like the previous ones said, in the previous commit)
docker-compose-1
docker-compose-2
DockerFile-conf
info_error
plugin-python
plugin-python2

from kong.

AlleMartins avatar AlleMartins commented on September 25, 2024

I also add on-board information which may be relevant: my version of kong is the community version, not the enterprise version, I also looked at this link, because it dealt with a similar problem but with the Go programming language: https://support. konghq.com/support/s/article/Golang-custom-plugin-throwing-not-a-plugin-info-table-and-error-loading-plugin-schemas-no-plugin-found, also I changed the name of the my python plugin from "prova_plugin.py" to "python_plugin.py"

from kong.

fffonion avatar fffonion commented on September 25, 2024

Use --dump-all-plugins instead of --dump if you are using embedded plugin server (i.e. not dedicated server).

from kong.

AlleMartins avatar AlleMartins commented on September 25, 2024

After I apply your change, this "info" appears, the image continues to run, but if I try to access the website (I created a small server with Flask) it doesn't work, so I assume it's an error. The image continues to work, in fact if I do: curl -i GET http://localhost:8001/plugins/enabled it is present, and if I try to activate it it works too
error
log

from kong.

StarlightIbuki avatar StarlightIbuki commented on September 25, 2024

Please ensure you have py-pdk correctly installed. pip3 install kong-pdk in case it's not installed.

from kong.

github-actions avatar github-actions commented on September 25, 2024

This issue is marked as stale because it has been open for 14 days with no activity.

from kong.

github-actions avatar github-actions commented on September 25, 2024

Dear contributor,

We are automatically closing this issue because it has not seen any activity for three weeks.
We're sorry that your issue could not be resolved. If any new information comes up that could
help resolving it, please feel free to reopen it.

Your contribution is greatly appreciated!

Please have a look
our pledge to the community
for more information.

Sincerely,
Your Kong Gateway team

from kong.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.