Skip to content

"getconf CLK_TCK" Error: spawn /bin/sh ENOENT #2

Description

@Abdullah438

Hi there. I've run into an issue while trying to run OpenFlow on my Linux system. When I run the command normal-up.sh everything looks fine. But, when I try to access Docker's logs for demo-api-1, I see the following problems, and if I try to access localhost.openiap.io, after configuring /etc/hosts. I see that it returns Bad Gateway error

Logs

api-1  | Debugger listening on ws://0.0.0.0:5858/9231b56f-edda-440d-b2a3-73a43202c7c0
api-1  | For help, see: https://nodejs.org/en/docs/inspector
api-1  | 5:44:20.466 Starting @openiap/core
api-1  | 5:44:20.495 Done loading imports
api-1  | 5:44:20.734  [otel                 ][setdefaultlabels]      ofid=46ce24eba84848dc077c9851ceeecdfc
api-1  | 5:44:20.744  [otel                 ][recheck]               Tracing initialized
api-1  | 5:44:20.805  [DatabaseConnection   ][connect]               Connecting to mongodb
api-1  | 5:44:20.855  [DatabaseConnection   ][connect]               Connected to mongodb
api-1  | 5:44:20.957  [amqpwrapper          ][connect]               Connecting to rabbitmq
api-1  | Error: connect ECONNREFUSED 172.31.0.4:5672
api-1  |     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) {
api-1  |   errno: -111,
api-1  |   code: 'ECONNREFUSED',
api-1  |   syscall: 'connect',
api-1  |   address: '172.31.0.4',
api-1  |   port: 5672
api-1  | }
api-1  | Error: connect ECONNREFUSED 172.31.0.4:5672
api-1  |     at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) {
api-1  |   errno: -111,
api-1  |   code: 'ECONNREFUSED',
api-1  |   syscall: 'connect',
api-1  |   address: '172.31.0.4',
api-1  |   port: 5672
api-1  | }
api-1  | 5:44:20.999  [index                ][init]                  VERSION: 1.5.11.121
api-1  | 5:44:21.78   [SamlProvider         ][configure]             SAML signing certificate is not configured, saml not possible
api-1  | Error: Cannot Add new Queue Consumer, not connected to rabbitmq
api-1  |     at amqpwrapper.AddQueueConsumer (file:///app/dist/amqpwrapper.js:320:23)
api-1  |     at OpenAPIProxy.configure (file:///app/dist/ee/OpenAPIProxy.js:64:53)
api-1  |     at file:///app/dist/index.js:276:60
api-1  | 5:44:21.998  [amqpwrapper          ][connect]               Connecting to rabbitmq
api-1  | 5:44:22.7    [Config               ][cleanAndApply]         Loaded config version 3
api-1  | TypeError: Cannot read properties of undefined (reading 'prefetch')
api-1  |     at amqpwrapper.setPrefetch (file:///app/dist/amqpwrapper.js:266:22)
api-1  |     at initDatabase (file:///app/dist/index.js:140:36)
api-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
api-1  |     at async file:///app/dist/index.js:295:14
api-1  | 5:44:22.8    [index                ][exit]                  404
api-1  | Debugger listening on ws://0.0.0.0:5858/3b411920-6393-40d8-8fe9-40aa425dd6ad
api-1  | For help, see: https://nodejs.org/en/docs/inspector
api-1  | 5:44:24.612 Starting @openiap/core
api-1  | 5:44:24.640 Done loading imports
api-1  | 5:44:24.840  [otel                 ][setdefaultlabels]      ofid=46ce24eba84848dc077c9851ceeecdfc
api-1  | 5:44:24.847  [otel                 ][recheck]               Tracing initialized
api-1  | 5:44:24.887  [DatabaseConnection   ][connect]               Connecting to mongodb
api-1  | 5:44:24.914  [DatabaseConnection   ][connect]               Connected to mongodb
api-1  | 5:44:24.971  [amqpwrapper          ][connect]               Connecting to rabbitmq
api-1  | 5:44:25.27   [amqpwrapper          ][connect]               Connected to rabbitmq
api-1  | 5:44:25.68   [index                ][init]                  VERSION: 1.5.11.121
api-1  | 5:44:25.119  [SamlProvider         ][configure]             SAML signing certificate is not configured, saml not possible
api-1  | 5:44:25.936  [Config               ][cleanAndApply]         Loaded config version 3
api-1  | 5:44:25.980  [index                ][initHouseKeeping]      Trigger first Housekeeping in 4 seconds
api-1  | 5:44:26.4    [WebServer            ][Listen]                Listening on http://localhost.openiap.io:8002/
api-1  | 5:44:26.4    [WebServer            ][Listen]                grpc listening on grpc://localhost.openiap.io:50051
api-1  | **** serverinit error fetch failed
api-1  | Error while calling "getconf CLK_TCK" Error: spawn /bin/sh ENOENT
api-1  |     at ChildProcess._handle.onexit (node:internal/child_process:285:19)
api-1  |     at onErrorNT (node:internal/child_process:483:16)
api-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
api-1  |   errno: -2,
api-1  |   code: 'ENOENT',
api-1  |   syscall: 'spawn /bin/sh',
api-1  |   path: '/bin/sh',
api-1  |   spawnargs: [ '-c', 'getconf CLK_TCK' ],
api-1  |   cmd: 'getconf CLK_TCK'
api-1  | }
api-1  | Error while calling "getconf PAGESIZE" Error: spawn /bin/sh ENOENT
api-1  |     at ChildProcess._handle.onexit (node:internal/child_process:285:19)
api-1  |     at onErrorNT (node:internal/child_process:483:16)
api-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
api-1  |   errno: -2,
api-1  |   code: 'ENOENT',
api-1  |   syscall: 'spawn /bin/sh',
api-1  |   path: '/bin/sh',
api-1  |   spawnargs: [ '-c', 'getconf PAGESIZE' ],
api-1  |   cmd: 'getconf PAGESIZE'
api-1  | }
api-1  | 5:44:30.94   [DatabaseConnection   ][ensureindexes]         Begin validating indexes, this might take a while
api-1  | 5:44:30.133  [DatabaseConnection   ][ensureindexes]         completed

I tried to change port for API, by setting traefik to run on 8002, but now even if I revert, I cannot make it work as IDK from where it is getting 8002 in ttp://localhost.openiap.io:8002/ even after I reverted docker-compose.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions