Closed AMomentOfClarity closed 2 years ago
Greetings,
I'm having trouble installing this Plugin with Kong running on Kubernetes. I can, however, install other community plugins without any problem.
I created a ConfigMap with the plugin code, like so:
kubectl create configmap jwt-crafter-cm --from-file=./kong-plugin-jwt-crafter
plugin section on values.yaml:
plugins: configMaps: - name: jwt-claim-headers-cm pluginName: jwt-claim-headers - name: jwt-crafter-cm pluginName: jwt-crafter
When I install the Chart I have an error saying "error loading plugin schemas: on plugin 'jwt-crafter': jwt-crafter plugin is enabled but not installed;".
Logs (debug):
Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:64: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /tmp/tmp.FIcHDo/nginx.conf:6 nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:543: error loading plugin schemas: on plugin 'jwt-crafter': jwt-crafter plugin is enabled but not installed; no plugin found stack traceback: [C]: in function 'assert' /usr/local/share/lua/5.1/kong/init.lua:543: in function 'init' init_by_lua:3: in main chunk 469: init(): [dns-client] noSynchronisation = nil 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:488: init(): [dns-client] query order = LAST, SRV, A, AAAA, CNAME 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:528: init(): [dns-client] adding A-record from 'hosts' file: kong-kong-64b94769fb-8phj6 = 10.1.2.224 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-localnet = [fe00::0] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:528: init(): [dns-client] adding A-record from 'hosts' file: localhost = 127.0.0.1 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: localhost = [::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-allnodes = [fe00::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-mcastprefix = [fe00::0] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-allrouters = [fe00::2] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-localhost = [::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-loopback = [::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:552: init(): [dns-client] validTtl = nil 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:593: init(): [dns-client] nameserver 10.96.0.10 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:598: init(): [dns-client] attempts = 5 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:605: init(): [dns-client] no_random = true 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:614: init(): [dns-client] timeout = 2000 ms 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:618: init(): [dns-client] ndots = 5 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:620: init(): [dns-client] search = default.svc.cluster.local, svc.cluster.local, cluster.local 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:633: init(): [dns-client] badTtl = 1 s 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:635: init(): [dns-client] emptyTtl = 30 s 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:460: init(): [dns-client] (re)configuring dns client 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:465: init(): [dns-client] staleTtl = 4 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:469: init(): [dns-client] noSynchronisation = false 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:488: init(): [dns-client] query order = LAST, SRV, A, CNAME 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:528: init(): [dns-client] adding A-record from 'hosts' file: kong-kong-64b94769fb-8phj6 = 10.1.2.224 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-localnet = [fe00::0] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:528: init(): [dns-client] adding A-record from 'hosts' file: localhost = 127.0.0.1 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: localhost = [::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-allnodes = [fe00::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-mcastprefix = [fe00::0] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-allrouters = [fe00::2] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-localhost = [::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-loopback = [::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:552: init(): [dns-client] validTtl = nil 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:593: init(): [dns-client] nameserver 10.96.0.10 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:598: init(): [dns-client] attempts = 5 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:605: init(): [dns-client] no_random = true 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:614: init(): [dns-client] timeout = 2000 ms 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:618: init(): [dns-client] ndots = 5 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:620: init(): [dns-client] search = default.svc.cluster.local, svc.cluster.local, cluster.local 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:633: init(): [dns-client] badTtl = 1 s 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:635: init(): [dns-client] emptyTtl = 30 s 2022/07/28 10:05:25 [debug] 39#0: [lua] globalpatches.lua:270: randomseed(): seeding PRNG from OpenSSL RAND_bytes() 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:460: init(): [dns-client] (re)configuring dns client 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:465: init(): [dns-client] staleTtl = 4 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:469: init(): [dns-client] noSynchronisation = false 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:488: init(): [dns-client] query order = LAST, SRV, A, CNAME 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:528: init(): [dns-client] adding A-record from 'hosts' file: kong-kong-64b94769fb-8phj6 = 10.1.2.224 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-localnet = [fe00::0] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:528: init(): [dns-client] adding A-record from 'hosts' file: localhost = 127.0.0.1 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: localhost = [::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-allnodes = [fe00::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-mcastprefix = [fe00::0] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-allrouters = [fe00::2] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-localhost = [::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:543: init(): [dns-client] adding AAAA-record from 'hosts' file: ip6-loopback = [::1] 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:552: init(): [dns-client] validTtl = nil 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:593: init(): [dns-client] nameserver 10.96.0.10 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:598: init(): [dns-client] attempts = 5 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:605: init(): [dns-client] no_random = true 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:614: init(): [dns-client] timeout = 2000 ms 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:618: init(): [dns-client] ndots = 5 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:620: init(): [dns-client] search = default.svc.cluster.local, svc.cluster.local, cluster.local 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:633: init(): [dns-client] badTtl = 1 s 2022/07/28 10:05:25 [debug] 39#0: [lua] client.lua:635: init(): [dns-client] emptyTtl = 30 s 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: grpc-gateway 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: grpc-web 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: pre-function 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: post-function 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: azure-functions 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: zipkin 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: jwt-claim-headers 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: jwt 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'jwt.jwt_secrets' 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: acl 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'acl.acls' 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: correlation-id 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: cors 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: oauth2 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'oauth2.oauth2_credentials' 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'oauth2.oauth2_authorization_codes' 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'oauth2.oauth2_tokens' 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: tcp-log 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: udp-log 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: file-log 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: http-log 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: key-auth 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'key-auth.keyauth_credentials' 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: hmac-auth 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'hmac-auth.hmacauth_credentials' 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: basic-auth 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'basic-auth.basicauth_credentials' 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: ip-restriction 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: request-transformer 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: response-transformer 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: request-size-limiting 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: rate-limiting 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'rate-limiting.ratelimiting_metrics' 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: response-ratelimiting 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: syslog 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: loggly 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: datadog 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: ldap-auth 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: statsd 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: bot-detection 2022/07/28 10:05:25 [debug] 39#0: [kong] iam-ecs-credentials.lua:40 No ECS environment variables found for IAM 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: aws-lambda 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: request-termination 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: prometheus 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: proxy-cache 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: session 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'session.sessions' 2022/07/28 10:05:25 [debug] 39#0: [lua] openssl.lua:5: [acme] using ffi, OpenSSL version linked: 101010ef 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:245: load_plugin(): Loading plugin: acme 2022/07/28 10:05:25 [debug] 39#0: [lua] plugins.lua:203: loader_fn(): Loading custom plugin entity: 'acme.acme_storage' 2022/07/28 10:05:25 [error] 39#0: init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:543: error loading plugin schemas: on plugin 'jwt-crafter': jwt-crafter plugin is enabled but not installed; no plugin found stack traceback: [C]: in function 'assert' /usr/local/share/lua/5.1/kong/init.lua:543: in function 'init' init_by_lua:3: in main chunk
Appreciate any help.
Resolved on Kong's repo.
Greetings,
I'm having trouble installing this Plugin with Kong running on Kubernetes. I can, however, install other community plugins without any problem.
I created a ConfigMap with the plugin code, like so:
plugin section on values.yaml:
When I install the Chart I have an error saying "error loading plugin schemas: on plugin 'jwt-crafter': jwt-crafter plugin is enabled but not installed;".
Logs (debug):
Appreciate any help.