Comments (9)
Could you share the config of Kong for the plugin server?
from go-pdk.
the same question
from go-pdk.
The critical
message is emitted when Kong tries to test if the plugin server is ready (the socket is accessible) so it's expected. It cannot be silenced due to the limitation of OpenResty. You may try the latest version, which removes the detection logic.
The same question
@wangcong791510428 Are you using the same versions as @Kurosawa?
from go-pdk.
docker run --restart=always --network=kong-net -d --name kong --log-opt max-size=50m --log-opt max-file=3 --log-driver json-file
-e "KONG_DATABASE=postgres"
-e "KONG_PG_HOST=kong-database"
-e "KONG_PG_USER=kong"
-e "KONG_PG_DATABASE=kong"
-e "KONG_PG_PASSWORD=****"
-e "KONG_PROXY_ACCESS_LOG=/dev/stdout"
-e "KONG_ADMIN_ACCESS_LOG=/dev/stdout"
-e "KONG_PROXY_ERROR_LOG=/dev/stderr"
-e "KONG_ADMIN_ERROR_LOG=/dev/stderr"
-e "KONG_PLUGINS=bundled,ubm-auth-go"
-e "KONG_PLUGINSERVER_NAMES=ubm-auth-go"
-e "KONG_PLUGINSERVER_UBM_AUTH_GO_START_CMD=/usr/local/bin/ubm-auth-go"
-e "KONG_PLUGINSERVER_UBM_AUTH_GO_QUERY_CMD=/usr/local/bin/ubm-auth-go -dump"
-e "KONG_PLUGINSERVER_UBM_AUTH_GO_SOCK=/usr/local/kong/ubm-auth-go.sock"
-e "KONG_ADMIN_LISTEN=0.0.0.0:8002, 0.0.0.0:8444 ssl"
-v "/data/bigmodel/kong/make-image/kong-ratelimit-go/ubm-auth-go:/usr/local/bin/ubm-auth-go"
-p 8000:8000
-p 5001:8443
-p 8002:8002
-p 8444:8444 kong:3.4
the complete docker commond but i use kong:2.7 work ok
from go-pdk.
when i use kong:3.4 the result the same question kurosawa93
from go-pdk.
@wangcong791510428 Could you confirm if that socket file exists?
The auto-generated socket should be named with postfix ".socket":
Line 44 in 231514d
from go-pdk.
We have same issue with custom go-plugin
│ 2024/02/04 12:23:24 [crit] 1262#0: *302 connect() to unix:/usr/local/kong/okta-token-verifier-multi-auth.socket failed (2: No such file or directory), context: ngx.timer │
│ 2024/02/04 12:23:25 [notice] 1262#0: *157 [lua] warmup.lua:70: finished warming up DNS entries' into the cache (in 897ms), context: ngx.timer │
│ 2024/02/04 13:16:40 [warn] 1262#0: *5114 [kong] mp_rpc.lua:157 [okta-token-verifier-multi-auth] [OTV-GO-PLUGIN]
checked file
kong-app-v2-5f947879dc-mkjwb:/usr/local/opt/lua-plugins$ cd /usr/local/kong/
kong-app-v2-5f947879dc-mkjwb:/usr/local/kong$ ls -la | grep okta
srwxr-xr-x 1 kong nogroup 0 Feb 4 12:23 okta-token-verifier-multi-auth.socket
Seems kong checks, tries to connect to socket before plugin started
from go-pdk.
We have same issue with custom go-plugin
│ 2024/02/04 12:23:24 [crit] 1262#0: *302 connect() to unix:/usr/local/kong/okta-token-verifier-multi-auth.socket failed (2: No such file or directory), context: ngx.timer │ │ 2024/02/04 12:23:25 [notice] 1262#0: *157 [lua] warmup.lua:70: finished warming up DNS entries' into the cache (in 897ms), context: ngx.timer │ │ 2024/02/04 13:16:40 [warn] 1262#0: *5114 [kong] mp_rpc.lua:157 [okta-token-verifier-multi-auth] [OTV-GO-PLUGIN]
checked file
kong-app-v2-5f947879dc-mkjwb:/usr/local/opt/lua-plugins$ cd /usr/local/kong/ kong-app-v2-5f947879dc-mkjwb:/usr/local/kong$ ls -la | grep okta srwxr-xr-x 1 kong nogroup 0 Feb 4 12:23 okta-token-verifier-multi-auth.socket
Seems kong checks, tries to connect to socket before plugin started
It's expected for Kong to print error messages when starting plugin servers. As soon as the plugin server is started it should work.
from go-pdk.
As explained by @StarlightIbuki, notice that the errors stop after the plugin with its server is started. Closing this issue for now; if you encounter issues in more recent Kong versions, please open a new ticket, with logs, reproduction steps, Kong version, and configuration
from go-pdk.
Related Issues (20)
- kong.client.authenticate should support nil values for consumer and credential HOT 1
- Test package Race detected Warning when DoHttps HOT 1
- Add init handler and invoke it after config get deserialized HOT 6
- TestEnv.ClientRes.Status is not behaving as expected when ExitStatus is called. HOT 4
- kong.ServiceResponse.GetRawBody() is not working when trying to retrieve response body HOT 4
- Question: Consumer Group Plugin HOT 2
- How can I share a Golang object between different phases quickly? HOT 2
- Missing kong.client.tls package HOT 1
- kong.Response.Exit() Hanging HOT 1
- How to set a variable to Kong Context while doing unit tests? HOT 9
- Build example plugins in CI
- Need support for HeaderFilter and BodyFilter phases HOT 3
- Question: How to reload plugin configuration? HOT 2
- How can i use custom golang plugin on kong ingress controller?
- Apparently the data set into shared context is not being freed HOT 2
- Reference code for unit testing custom plugins HOT 1
- How to get Consumers List
- Feature request: Add SetHeader in Request
- Body always empty string
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 go-pdk.