Comments (8)
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.
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)
from kong.
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.
Use --dump-all-plugins
instead of --dump
if you are using embedded plugin server (i.e. not dedicated server).
from kong.
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
from kong.
Please ensure you have py-pdk correctly installed. pip3 install kong-pdk
in case it's not installed.
from kong.
This issue is marked as stale because it has been open for 14 days with no activity.
from kong.
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)
- File named `api.lua` in the custom lua plugin directory causes 500 API Admin errors for kong manager HOT 4
- The available memory of the Kong machine suddenly dropped from 18G to 6.12G HOT 5
- Passive health checks not behaving as expected. HOT 19
- Kong opensource installation HOT 3
- rate-limiting error Redis timeout HOT 15
- bootstrap failure inside the container: migrations.lua:212: [PostgreSQL error] failed to retrieve PostgreSQL server_version_num: connection refused HOT 15
- abnormal route occurred on the kong upstream HOT 6
- Kong to backend FastAPI service: 405 Method Not Allowed HOT 6
- Building kong deb package failed behind proxy for version3.5.0 and above HOT 6
- Kong Gateway API with 104 Connection reset by peer message to OpenShift IngressController HOT 6
- How to store config info in kong HOT 3
- Strings in luajit are infinitely bloated, even if they are not rereferenced in the lua vm HOT 1
- Strings in luajit are infinitely bloated, even if they are not rereferenced in the lua vm HOT 3
- Kong 3.7.1 Exponential memory growth over time. HOT 16
- Failure to enable openid-connect plugin HOT 4
- Kong DP keep restarting HOT 3
- Error occurs on endpoints when `tags` parameter is empty HOT 1
- Postgres read/write primary node seeming timeouts led to runtime traffic failures on existing runtime proxies HOT 2
- ip address based rate-limiting does not use real client ip address but last proxy ip address HOT 3
- [healthchecks] failed setting peer status (upstream: 7b069e34-9542-48cb-8a16-15eb144a3e5d:rest-service-upstream): not a known address, context: ngx.timer HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kong.