Pongo run timeout

Hi all!

I’m having some problems when executing pongo run. Firstly, I’m trying to execute the tests provided in the official repo , but I’m getting some timeouts.

I tried to execute it more than one Kong version, and in more than one computer, but the same timeout occurred. It appear to be in the external calls.

I see in the logs the error:0200100D:system library:fopen:Permission denied:fopen but even with sudo pongo run it still appearing.

$ pongo run
[pongo-INFO] auto-starting the test environment, use the 'pongo down' action to stop it

Stopping after installing dependencies for kong-plugin-myplugin 0.1.0-1

Kong version: 2.6.0
[==========] Running tests from scanned files.
[----------] Global test environment setup.
[----------] Running tests from /kong-plugin/spec/myplugin/01-unit_spec.lua
[ RUN      ] /kong-plugin/spec/myplugin/01-unit_spec.lua @ 18: myplugin: (schema) accepts distinct request_header and response_header
[       OK ] /kong-plugin/spec/myplugin/01-unit_spec.lua @ 18: myplugin: (schema) accepts distinct request_header and response_header (0.31 ms)
[ RUN      ] /kong-plugin/spec/myplugin/01-unit_spec.lua @ 28: myplugin: (schema) does not accept identical request_header and response_header
[       OK ] /kong-plugin/spec/myplugin/01-unit_spec.lua @ 28: myplugin: (schema) does not accept identical request_header and response_header (0.19 ms)
[----------] 2 tests from /kong-plugin/spec/myplugin/01-unit_spec.lua (159.33 ms total)

[----------] Running tests from /kong-plugin/spec/myplugin/02-integration_spec.lua
[ RUN      ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 55: myplugin: (access) [#postgres] request gets a 'hello-world' header
/kong-plugin/spec/myplugin/02-integration_spec.lua:56: timeout

stack traceback:
	/kong-plugin/spec/myplugin/02-integration_spec.lua:56: in function </kong-plugin/spec/myplugin/02-integration_spec.lua:55>

[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 55: myplugin: (access) [#postgres] request gets a 'hello-world' header (60059.46 ms)
[ RUN      ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 73: myplugin: (access) [#postgres] response gets a 'bye-world' header
/kong-plugin/spec/myplugin/02-integration_spec.lua:74: timeout

stack traceback:
	/kong-plugin/spec/myplugin/02-integration_spec.lua:74: in function </kong-plugin/spec/myplugin/02-integration_spec.lua:73>

[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 73: myplugin: (access) [#postgres] response gets a 'bye-world' header (60026.64 ms)
[ RUN      ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 55: myplugin: (access) [#cassandra] request gets a 'hello-world' header
/kong-plugin/spec/myplugin/02-integration_spec.lua:56: timeout

stack traceback:
	/kong-plugin/spec/myplugin/02-integration_spec.lua:56: in function </kong-plugin/spec/myplugin/02-integration_spec.lua:55>

[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 55: myplugin: (access) [#cassandra] request gets a 'hello-world' header (60048.85 ms)
[ RUN      ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 73: myplugin: (access) [#cassandra] response gets a 'bye-world' header
/kong-plugin/spec/myplugin/02-integration_spec.lua:74: timeout

stack traceback:
	/kong-plugin/spec/myplugin/02-integration_spec.lua:74: in function </kong-plugin/spec/myplugin/02-integration_spec.lua:73>

[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 73: myplugin: (access) [#cassandra] response gets a 'bye-world' header (60052.69 ms)
[ RUN      ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 55: myplugin: (access) [#off] request gets a 'hello-world' header
/kong-plugin/spec/myplugin/02-integration_spec.lua:56: timeout

stack traceback:
	/kong-plugin/spec/myplugin/02-integration_spec.lua:56: in function </kong-plugin/spec/myplugin/02-integration_spec.lua:55>

[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 55: myplugin: (access) [#off] request gets a 'hello-world' header (60017.37 ms)
[ RUN      ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 73: myplugin: (access) [#off] response gets a 'bye-world' header
/kong-plugin/spec/myplugin/02-integration_spec.lua:74: timeout

stack traceback:
	/kong-plugin/spec/myplugin/02-integration_spec.lua:74: in function </kong-plugin/spec/myplugin/02-integration_spec.lua:73>

[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 73: myplugin: (access) [#off] response gets a 'bye-world' header (60055.03 ms)
[----------] 6 tests from /kong-plugin/spec/myplugin/02-integration_spec.lua (386911.62 ms total)

[----------] Global test environment teardown.
[==========] 8 tests from 2 test files ran. (387071.16 ms total)
[  PASSED  ] 2 tests.
[  ERROR   ] 6 errors, listed below:
[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 55: myplugin: (access) [#postgres] request gets a 'hello-world' header
[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 73: myplugin: (access) [#postgres] response gets a 'bye-world' header
[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 55: myplugin: (access) [#cassandra] request gets a 'hello-world' header
[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 73: myplugin: (access) [#cassandra] response gets a 'bye-world' header
[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 55: myplugin: (access) [#off] request gets a 'hello-world' header
[  ERROR   ] /kong-plugin/spec/myplugin/02-integration_spec.lua @ 73: myplugin: (access) [#off] response gets a 'bye-world' header

 6 ERRORS

additional info:

$ docker -v
Docker version 20.10.11, build dea9396e18
  • the containers (postgres, cassandra) are created
$ docker ps
CONTAINER ID   IMAGE                   COMMAND                  CREATED              STATUS                          PORTS                                         NAMES
00c9534a9bb6   kong-pongo-test:2.6.0   "/pongo/pongo_entryp…"   About a minute ago   Up About a minute (unhealthy)   8000-8001/tcp, 8443-8444/tcp                  kong-pongo_kong_run_87712978652c
05b4ac724969   cassandra:3.9           "/docker-entrypoint.…"   2 minutes ago        Up 2 minutes (healthy)          7000-7001/tcp, 7199/tcp, 9042/tcp, 9160/tcp   kong-pongo-cassandra-1
e12453404bf2   postgres:9.5            "docker-entrypoint.s…"   2 minutes ago        Up 2 minutes (healthy)          5432/tcp                                      kong-pongo-postgres-1
$ pongo tail
2021/11/22 15:30:40 [notice] 242#0: openresty/1.19.9.1
2021/11/22 15:30:40 [notice] 242#0: built by gcc 10.3.1 20210424 (Alpine 10.3.1_git20210424)
2021/11/22 15:30:40 [notice] 242#0: OS: Linux 5.15.4-arch1-1
2021/11/22 15:30:40 [notice] 242#0: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2021/11/22 15:30:40 [notice] 247#0: start worker processes
2021/11/22 15:30:40 [notice] 247#0: start worker process 248
2021/11/22 15:30:40 [emerg] 248#0: SSL_CTX_load_verify_locations("/kong-plugin/servroot/.ca_combined") failed (SSL: error:0200100D:system library:fopen:Permission denied:fopen('/kong-plugin/servroot/.ca_combined','r') error:2006D002:BIO routines:BIO_new_file:system lib error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib)
2021/11/22 15:30:40 [notice] 247#0: signal 17 (SIGCHLD) received from 248
2021/11/22 15:30:40 [notice] 247#0: worker process 248 exited with code 2
2021/11/22 15:30:40 [alert] 247#0: worker process 248 exited with fatal code 2 and cannot be respawned

Any idea?

Thanks for attention.

Found it! It was due to my umask value: “0077” → permission denied in some folders and error in all locals.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ