caliper
caliper copied to clipboard
Installing caliper from source exits without running benchmarks (docker)
Which Caliper version are you using?
v0.4.2
Which Node.JS version are you using?
10.22
Which operating system are you using?
Alpine
Please provide some context for your error. For example, when did the error occur? What were you trying to achieve, and how?
I am trying to install caliper locally from source in a docker container. Here is the Dockerfile-
FROM node:10.22-alpine
RUN apk add --no-cache python g++ make git
RUN mkdir -p /hyperledger/caliper/workspace
RUN chown -R node hyperledger/
WORKDIR /hyperledger/caliper/workspace
COPY caliper-workspace/ /hyperledger/caliper/workspace/
USER node:node
RUN git clone https://github.com/hyperledger/caliper
RUN cd caliper && git checkout v0.4.2
RUN cd caliper && npm install && npm run repoclean -- --yes && npm run bootstrap
ENV CALIPER_WORKSPACE=/hyperledger/caliper/workspace
ENTRYPOINT ["node", "./caliper/packages/caliper-cli/caliper.js"]
And here is the docker-compose file I am using to start the container -
version: '2'
networks:
byfn:
external:
name: first-network
services:
caliper:
container_name: caliper
image: m0bi5/caliper
command: launch manager --caliper-networkconfig ./networks/networkConfig.yaml --caliper-benchconfig ./benchmarks/myAssetBenchmark.yaml --caliper-bind-sut fabric:2.2 --caliper-flow-only-test --caliper-fabric-gateway-enabled --caliper-fabric-gateway-localhost false --caliper-fabric-timeout-invokeorquery 60000 --caliper-fabric-timeout-chaincodeinstantiate 60000 --caliper-fabric-timeout-chaincodeinstantiateevent 60000
volumes:
- ./swarm-networks/2host-swarm:/swarm_network
networks:
- byfn
What was the observed incorrect behavior?
The container exits before running any benchmark, however, the same setting works when I use the official caliper image (hyperledger/caliper:0.4.2). So I know that it has nothing to do with the benchmark file or the network configuration file.
Please provide the error logs and their surroundings.
Creating caliper ... done
Attaching to caliper
caliper | 2022.03.02-13:49:41.604 info [caliper] [cli-launch-manager] Binding specification is present, performing binding for "fabric:2.2"
caliper | 2022.03.02-13:49:41.610 warn [caliper] [bind] Working directory not specified. Using "/hyperledger/caliper/workspace"
caliper | 2022.03.02-13:49:41.610 info [caliper] [bind] Binding for [email protected]. This might take some time...
caliper | 2022.03.02-13:49:41.612 info [caliper] [bind] Using working directory: /hyperledger/caliper/workspace
caliper | 2022.03.02-13:49:41.613 info [caliper] [bind] Calling npm with: install [email protected] [email protected]
caliper | npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
caliper | npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
caliper | npm WARN deprecated [email protected]: This package is no longer maintained.
caliper | npm WARN deprecated [email protected]: this library is no longer supported
caliper | npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
caliper |
caliper | > [email protected] install /hyperledger/caliper/workspace/node_modules/pkcs11js
caliper | > node-gyp rebuild
caliper |
caliper | make: Entering directory '/hyperledger/caliper/workspace/node_modules/pkcs11js/build'
caliper | CXX(target) Release/obj.target/pkcs11/src/main.o
caliper | In file included from ../../nan/nan.h:58,
caliper | from ../src/main.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node.h:573:43: warning: cast between incompatible function types from 'void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)' {aka 'void (*)(v8::Local<v8::Object>)'} to 'node::addon_register_func' {aka 'void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)'} [-Wcast-function-type]
caliper | 573 | (node::addon_register_func) (regfunc), \
caliper | | ^
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node.h:607:3: note: in expansion of macro 'NODE_MODULE_X'
caliper | 607 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
caliper | | ^~~~~~~~~~~~~
caliper | ../src/main.cpp:27:1: note: in expansion of macro 'NODE_MODULE'
caliper | 27 | NODE_MODULE(pkcs11, init)
caliper | | ^~~~~~~~~~~
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../../nan/nan.h:58,
caliper | from ../src/main.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/dl.o
caliper | CXX(target) Release/obj.target/pkcs11/src/const.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../src/const.h:5,
caliper | from ../src/const.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/pkcs11/error.o
caliper | CXX(target) Release/obj.target/pkcs11/src/pkcs11/v8_convert.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../../nan/nan.h:58,
caliper | from ../src/pkcs11/v8_convert.h:12,
caliper | from ../src/pkcs11/v8_convert.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/pkcs11/template.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../../nan/nan.h:58,
caliper | from ../src/pkcs11/v8_convert.h:12,
caliper | from ../src/pkcs11/template.h:6,
caliper | from ../src/pkcs11/template.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/pkcs11/mech.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../../nan/nan.h:58,
caliper | from ../src/pkcs11/v8_convert.h:12,
caliper | from ../src/pkcs11/mech.h:5,
caliper | from ../src/pkcs11/mech.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/pkcs11/param.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../../nan/nan.h:58,
caliper | from ../src/pkcs11/v8_convert.h:12,
caliper | from ../src/pkcs11/param.h:5,
caliper | from ../src/pkcs11/param.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/pkcs11/param_aes.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../../nan/nan.h:58,
caliper | from ../src/pkcs11/v8_convert.h:12,
caliper | from ../src/pkcs11/param.h:5,
caliper | from ../src/pkcs11/param_aes.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/pkcs11/param_rsa.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../../nan/nan.h:58,
caliper | from ../src/pkcs11/v8_convert.h:12,
caliper | from ../src/pkcs11/param.h:5,
caliper | from ../src/pkcs11/param_rsa.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/pkcs11/param_ecdh.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../../nan/nan.h:58,
caliper | from ../src/pkcs11/v8_convert.h:12,
caliper | from ../src/pkcs11/param.h:5,
caliper | from ../src/pkcs11/param_ecdh.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/pkcs11/pkcs11.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../src/pkcs11/pkcs11.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/async.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../../nan/nan.h:58,
caliper | from ../src/./pkcs11/v8_convert.h:12,
caliper | from ../src/./pkcs11/template.h:6,
caliper | from ../src/./pkcs11/pkcs11.h:6,
caliper | from ../src/./async.h:4,
caliper | from ../src/async.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | CXX(target) Release/obj.target/pkcs11/src/node.o
caliper | In file included from /home/node/.cache/node-gyp/10.22.1/include/node/node.h:63,
caliper | from ../src/node.cpp:1:
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]':
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/node_object_wrap.h:84:78: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<node::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | 9502 | reinterpret_cast<Callback>(callback), type);
caliper | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h: In instantiation of 'void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]':
caliper | ../../nan/nan_object_wrap.h:65:61: required from here
caliper | /home/node/.cache/node-gyp/10.22.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from 'v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback' {aka 'void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)'} to 'Callback' {aka 'void (*)(const v8::WeakCallbackInfo<void>&)'} [-Wcast-function-type]
caliper | SOLINK_MODULE(target) Release/obj.target/pkcs11.node
caliper | COPY Release/pkcs11.node
caliper | make: Leaving directory '/hyperledger/caliper/workspace/node_modules/pkcs11js/build'
caliper |
caliper | > [email protected] postinstall /hyperledger/caliper/workspace/node_modules/protobufjs
caliper | > node scripts/postinstall
caliper |
caliper | npm WARN saveError ENOENT: no such file or directory, open '/hyperledger/caliper/workspace/package.json'
caliper | npm notice created a lockfile as package-lock.json. You should commit this file.
caliper | npm WARN enoent ENOENT: no such file or directory, open '/hyperledger/caliper/workspace/package.json'
caliper | npm WARN workspace No description
caliper | npm WARN workspace No repository field.
caliper | npm WARN workspace No README data
caliper | npm WARN workspace No license field.
caliper |
caliper | + [email protected]
caliper | + [email protected]
caliper | added 125 packages from 167 contributors and audited 125 packages in 29.867s
caliper |
caliper | 4 packages are looking for funding
caliper | run `npm fund` for details
caliper |
caliper | found 6 vulnerabilities (2 moderate, 2 high, 2 critical)
caliper | run `npm audit fix` to fix them, or `npm audit` for details
caliper | 2022.03.02-13:50:12.403 info [caliper] [cli-launch-manager] Set workspace path: /hyperledger/caliper/workspace
caliper | 2022.03.02-13:50:12.403 info [caliper] [cli-launch-manager] Set benchmark configuration path: /hyperledger/caliper/workspace/benchmarks/myAssetBenchmark.yaml
caliper | 2022.03.02-13:50:12.404 info [caliper] [cli-launch-manager] Set network configuration path: /hyperledger/caliper/workspace/networks/networkConfig.yaml
caliper | 2022.03.02-13:50:12.404 info [caliper] [cli-launch-manager] Set SUT type: fabric
caliper | 2022.03.02-13:50:12.476 info [caliper] [benchmark-validator] No observer specified, will default to `none`
caliper | 2022.03.02-13:50:12.477 info [caliper] [caliper-engine] Starting benchmark flow
caliper | 2022.03.02-13:50:13.338 info [caliper] [fabric-connector] Initializing gateway connector compatible with installed SDK: 1.4.19
caliper | 2022.03.02-13:50:13.473 info [caliper] [IdentityManager] Adding User1 (admin=false) as User1 for organization Org1MSP
caliper | 2022.03.02-13:50:13.768 info [caliper] [caliper-engine] Skipping start commands due to benchmark flow conditioning
caliper | 2022.03.02-13:50:13.768 info [caliper] [caliper-engine] Skipping initialization phase due to benchmark flow conditioning
caliper | 2022.03.02-13:50:13.769 info [caliper] [caliper-engine] Skipping install smart contract phase due to benchmark flow conditioning
caliper | 2022.03.02-13:50:13.772 info [caliper] [monitor.js] No resource monitors specified
caliper | 2022.03.02-13:50:13.775 info [caliper] [default-observer] Observer interval set to 5000 seconds
caliper | 2022.03.02-13:50:13.799 info [caliper] [round-orchestrator] Preparing worker connections
caliper | 2022.03.02-13:50:13.800 info [caliper] [worker-orchestrator] Launching worker 1 of 1
caliper | 2022.03.02-13:50:13.809 info [caliper] [worker-orchestrator] Messenger not configured, entering configure phase...
caliper | 2022.03.02-13:50:13.811 info [caliper] [worker-orchestrator] No existing workers detected, entering worker launch phase...
caliper | 2022.03.02-13:50:13.813 info [caliper] [worker-orchestrator] Waiting for 1 workers to be connected...
caliper | 2022.03.02-13:50:14.356 info [caliper] [cli-launch-worker] Worker is a locally forked process, skipping binding step already performed by the manager process
caliper | 2022.03.02-13:50:14.357 info [caliper] [cli-launch-worker] Set workspace path: /hyperledger/caliper/workspace
caliper | 2022.03.02-13:50:14.358 info [caliper] [cli-launch-worker] Set benchmark configuration path: /hyperledger/caliper/workspace/benchmarks/myAssetBenchmark.yaml
caliper | 2022.03.02-13:50:14.358 info [caliper] [cli-launch-worker] Set network configuration path: /hyperledger/caliper/workspace/networks/networkConfig.yaml
caliper | 2022.03.02-13:50:14.359 info [caliper] [cli-launch-worker] Set SUT type: fabric
caliper exited with code 0
### Please provide your benchmark configuration file content, if possible.
_No response_
### Please provide your network configuration file content, if possible.
_No response_
### Please provide your workload module content, if possible.
_No response_
### Please provide any additional information you deem relevant to the error.
_No response_
I tried to replicate what you have done using the same dockerfile and for me I don't get the problem where it just appears to exit, caliper flows through starting and terminating the workers as expected.
There will be a caliper.log file in your exited container which will contain a caliper.log file with debug level information. You would need to commit the exited container to a new image and then run that new image to look at the file.
Alternatively you could enable debug logging to the console. To do this you have to create a caliper.yaml
file in your caliper workspace directory with the contents
caliper:
logging:
targets:
console:
options:
level: debug
rebuild your image then when you run the command again and it should then output debug level logging
@m0bi5 Did you discover why your original problem occurred, ie that caliper just appeared to exit ?
caliper | 2022.03.02-13:50:14.358 info [caliper] [cli-launch-worker] Set network configuration path: /hyperledger/caliper/workspace/networks/networkConfig.yaml
caliper | 2022.03.02-13:50:14.359 info [caliper] [cli-launch-worker] Set SUT type: fabric
caliper exited with code 0
I wasn't able to recreate but it seems someone else has a similar problem trying to run caliper in a K8s environment
I believe it was because my host machine did not have enough memory. Changing my host machine to one with more RAM helped solve the problem.
On Mon, Mar 14, 2022 at 5:30 AM Dave Kelsey @.***> wrote:
@m0bi5 https://github.com/m0bi5 Did you discover why your original problem occurred, ie that caliper just appeared to exit ?
caliper | 2022.03.02-13:50:14.358 info [caliper] [cli-launch-worker] Set network configuration path: /hyperledger/caliper/workspace/networks/networkConfig.yaml caliper | 2022.03.02-13:50:14.359 info [caliper] [cli-launch-worker] Set SUT type: fabric caliper exited with code 0
I wasn't able to recreate but it seems someone else has a similar problem trying to run caliper in a K8s environment
— Reply to this email directly, view it on GitHub https://github.com/hyperledger/caliper/issues/1248#issuecomment-1066560729, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADVUKKWGJPGNI43P4L7EHRLU74BKFANCNFSM5PXQYEYQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
thanks @m0bi5 that's really handy to know