openwallet-foundation / owl-akrida

Apache License 2.0
3 stars 16 forks source link

The Quick-Start is broken #59

Closed bfan2023 closed 3 months ago

bfan2023 commented 5 months ago

I followed instructions at https://github.com/hyperledger/aries-akrida/blob/main/docs/QUICKSTART.md

After running docker-compose -f docker-compose.demo.yml up, I got following errors when => [load-agent release 4/4] RUN yarn install. I wonder if recent node 18.20.3 release caused this problem. Because I am able to do 'yarn install' with node 18.18.2 for 'load-agent' on a local directory.

=> ERROR [load-agent release 4/4] RUN yarn install 37.7s

[load-agent release 4/4] RUN yarn install: 0.503 yarn install v1.22.22 0.571 [1/4] Resolving packages... 0.743 [2/4] Fetching packages... 15.62 [3/4] Linking dependencies... 15.62 warning "@aries-framework/anoncreds > @aries-framework/core > @digitalcredentials/jsonld-signatures > isomorphic-webcrypto > expo-random@13.0.0" has unmet peer dependency "expo@". 15.62 warning "@aries-framework/anoncreds > @aries-framework/core > @digitalcredentials/jsonld-signatures > isomorphic-webcrypto > react-native-securerandom@0.1.1" has unmet peer dependency "react-native@". 15.62 warning " > @aries-framework/askar@0.4.2" has unmet peer dependency "@hyperledger/aries-askar-shared@^0.1.0". 15.62 warning " > @aries-framework/react-native@0.4.2" has unmet peer dependency "react-native@^0.71.4". 15.62 warning " > @aries-framework/react-native@0.4.2" has unmet peer dependency "react-native-fs@^2.20.0". 15.62 warning " > @aries-framework/react-native@0.4.2" has unmet peer dependency "react-native-get-random-values@^1.8.0". 15.62 warning " > @hyperledger/aries-askar-react-native@0.1.1" has unmet peer dependency "react@>= 16". 15.62 warning " > @hyperledger/aries-askar-react-native@0.1.1" has unmet peer dependency "react-native@>= 0.66.0". 15.62 warning " > indy-sdk-react-native@0.3.1" has unmet peer dependency "react@>= 16". 15.62 warning " > indy-sdk-react-native@0.3.1" has unmet peer dependency "react-native@>=0.59.0-rc.0 <1.0.x". 22.28 [4/4] Building fresh packages... 29.88 error /load-agent/load-agent/node_modules/ffi-napi: Command failed. 29.88 Exit code: 1 29.88 Command: node-gyp-build 29.88 Arguments: 29.88 Directory: /load-agent/load-agent/node_modules/ffi-napi 29.88 Output: 29.88 gyp info it worked if it ends with ok 29.88 gyp info using node-gyp@8.4.1 29.88 gyp info using node@18.20.3 | linux | x64 29.88 gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3" 29.88 gyp http GET https://nodejs.org/download/release/v18.20.3/node-v18.20.3-headers.tar.gz 29.88 gyp http 200 https://nodejs.org/download/release/v18.20.3/node-v18.20.3-headers.tar.gz 29.88 gyp http GET https://nodejs.org/download/release/v18.20.3/SHASUMS256.txt 29.88 gyp http 200 https://nodejs.org/download/release/v18.20.3/SHASUMS256.txt 29.88 gyp info spawn /usr/bin/python3 29.88 gyp info spawn args [ 29.88 gyp info spawn args '/load-agent/load-agent/node_modules/node-gyp/gyp/gyp_main.py', 29.88 gyp info spawn args 'binding.gyp', 29.88 gyp info spawn args '-f', 29.88 gyp info spawn args 'make', 29.88 gyp info spawn args '-I', 29.88 gyp info spawn args '/load-agent/load-agent/node_modules/ffi-napi/build/config.gypi', 29.88 gyp info spawn args '-I', 29.88 gyp info spawn args '/load-agent/load-agent/node_modules/node-gyp/addon.gypi', 29.88 gyp info spawn args '-I', 29.88 gyp info spawn args '/root/.cache/node-gyp/18.20.3/include/node/common.gypi', 29.88 gyp info spawn args '-Dlibrary=shared_library', 29.88 gyp info spawn args '-Dvisibility=default', 29.88 gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/18.20.3', 29.88 gyp info spawn args '-Dnode_gyp_dir=/load-agent/load-agent/node_modules/node-gyp', 29.88 gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/18.20.3/<(target_arch)/node.lib', 29.88 gyp info spawn args '-Dmodule_root_dir=/load-agent/load-agent/node_modules/ffi-napi', 29.88 gyp info spawn args '-Dnode_engine=v8', 29.88 gyp info spawn args '--depth=.', 29.88 gyp info spawn args '--no-parallel', 29.88 gyp info spawn args '--generator-output', 29.88 gyp info spawn args 'build', 29.88 gyp info spawn args '-Goutput_dir=.' 29.88 gyp info spawn args ] 29.88 gyp info spawn make 29.88 gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] 29.88 make: Entering directory '/load-agent/load-agent/node_modules/ffi-napi/build' 29.88 CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o 29.88 AR(target) Release/obj.target/../node-addon-api/nothing.a 29.88 COPY Release/nothing.a 29.88 CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o 29.88 CC(target) Release/obj.target/ffi/deps/libffi/src/types.o 29.88 CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o 29.88 CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o 29.88 ../deps/libffi/src/java_raw_api.c: In function 'ffi_java_raw_call': 29.88 ../deps/libffi/src/java_raw_api.c:317:3: warning: 'ffi_java_raw_to_ptrarray' is deprecated [-Wdeprecated-declarations] 29.88 317 | ffi_java_raw_to_ptrarray (cif, raw, avalue); 29.88 | ^~~~~~~~ 29.88 ../deps/libffi/src/java_raw_api.c:76:1: note: declared here 29.88 76 | ffi_java_raw_to_ptrarray (ffi_cif cif, ffi_java_raw raw, void args) 29.88 | ^~~~~~~~ 29.88 ../deps/libffi/src/java_raw_api.c: In function 'ffi_java_translate_args': 29.88 ../deps/libffi/src/java_raw_api.c:328:3: warning: 'ffi_java_raw_size' is deprecated [-Wdeprecated-declarations] 29.88 328 | ffi_java_raw raw = (ffi_java_raw)alloca (ffi_java_raw_size (cif)); 29.88 | ^~~~ 29.88 ../deps/libffi/src/java_raw_api.c:45:1: note: declared here 29.88 45 | ffi_java_raw_size (ffi_cif cif) 29.88 | ^~~~~ 29.88 ../deps/libffi/src/java_raw_api.c:331:3: warning: 'ffi_java_ptrarray_to_raw' is deprecated [-Wdeprecated-declarations] 29.88 331 | ffi_java_ptrarray_to_raw (cif, avalue, raw); 29.88 | ^~~~~~~~ 29.88 ../deps/libffi/src/java_raw_api.c:157:1: note: declared here 29.88 157 | ffi_java_ptrarray_to_raw (ffi_cif cif, void args, ffi_java_raw raw) 29.88 | ^~~~~~~~ 29.88 ../deps/libffi/src/java_raw_api.c: In function 'ffi_prep_java_raw_closure': 29.88 ../deps/libffi/src/java_raw_api.c:369:3: warning: 'ffi_prep_java_raw_closure_loc' is deprecated [-Wdeprecated-declarations] 29.88 369 | return ffi_prep_java_raw_closure_loc (cl, cif, fun, user_data, cl); 29.88 | ^~ 29.88 ../deps/libffi/src/java_raw_api.c:337:1: note: declared here 29.88 337 | ffi_prep_java_raw_closure_loc (ffi_java_raw_closure cl, 29.88 | ^~~~~~~~~ 29.88 CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o 29.88 ../deps/libffi/src/closures.c: In function 'allocate_space': 29.88 ../deps/libffi/src/closures.c:748:29: warning: comparison of integer expressions of different signedness: 'off_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 29.88 748 | off_t to_write = (len < page_size) ? len : page_size; 29.88 | ^ 29.88 ../deps/libffi/src/closures.c:748:44: warning: operand of ?: changes signedness from 'off_t' {aka 'long int'} to 'size_t' {aka 'long unsigned int'} due to unsignedness of other operand [-Wsign-compare] 29.88 748 | off_t to_write = (len < page_size) ? len : page_size; 29.88 | ^~~ 29.88 CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffiw64.o 29.88 CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi64.o 29.88 ../deps/libffi/src/x86/ffi64.c: In function 'classify_argument': 29.88 ../deps/libffi/src/x86/ffi64.c:200:18: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] 29.88 200 | FFI_ASSERT (0); 29.88 | ^ 29.88 ../deps/libffi/src/x86/ffi64.c:175:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 29.88 175 | { 29.88 | ^ 29.88 ../deps/libffi/src/x86/ffi64.c:202:5: note: here 29.88 202 | case FFI_TYPE_FLOAT: 29.88 | ^~~~ 29.88 CC(target) Release/obj.target/ffi/deps/libffi/src/x86/unix64.o 29.88 CC(target) Release/obj.target/ffi/deps/libffi/src/x86/win64.o 29.88 AR(target) Release/obj.target/deps/libffi/libffi.a 29.88 COPY Release/libffi.a 29.88 CXX(target) Release/obj.target/ffi_bindings/src/ffi.o 29.88 In file included from ../src/ffi.cc:5: 29.88 /load-agent/load-agent/node_modules/get-uv-event-loop-napi-h/include/get-uv-event-loop-napi.h: In function 'uv_loop_t get_uv_event_loop(napi_env)': 29.88 /load-agent/load-agent/node_modules/get-uv-event-loop-napi-h/include/get-uv-event-loop-napi.h:26:30: error: invalid conversion from 'napi_status ()(node_api_nogc_env, uv_loop_s)' {aka 'napi_status ()(const napi_env__, uv_loop_s)'} to 'get_uv_event_loop_fn' {aka 'napi_status ()(napi_env__, uv_loop_s)'} [-fpermissive] 29.88 26 | napi_get_uv_event_loop = &napi_get_uv_event_loop; 29.88 | ^~~~~~~ 29.88 | | 29.88 | napi_status (*)(node_api_nogc_env, uv_loop_s*) {aka napi_status ()(const napi_env*, uv_loop_s*)} 29.88 In file included from /load-agent/load-agent/node_modules/node-addon-api/napi.h:2725, 29.88 from ../src/ffi.h:2, 29.88 from ../src/ffi.cc:3: 29.88 /load-agent/load-agent/node_modules/node-addon-api/napi-inl.h: In instantiation of 'napi_status Napi::details::AttachData(napi_env, napi_value, FreeType, napi_finalize, void) [with FreeType = Napi::details::CallbackData<Napi::Value ()(const Napi::CallbackInfo&), Napi::Value>; napi_env = napi_env*; napi_value = napi_value; napi_finalize = void ()(napi_env__, void, void)]': 29.88 /load-agent/load-agent/node_modules/node-addon-api/napi-inl.h:1965:39: required from 'napi_status Napi::CreateFunction(napi_env, const char, napi_callback, CbData*, napi_value__) [with CbData = Napi::details::CallbackData<Napi::Value ()(const Napi::CallbackInfo&), Napi::Value>; napi_env = napi_env__; napi_callback = napi_value ()(napi_env*, napi_callback_info); napi_value = napi_value__; napi_callback_info = napi_callback_info]' 29.88 /load-agent/load-agent/node_modules/node-addon-api/napi-inl.h:2021:38: required from 'static Napi::Function Napi::Function::New(napi_env, Callable, const char, void) [with Callable = Napi::Value ()(const Napi::CallbackInfo&); napi_env = napi_env]' 29.88 ../src/ffi.cc:58:57: required from here 29.88 /load-agent/load-agent/node_modules/node-addon-api/napi-inl.h:63:47: error: invalid conversion from 'napi_finalize' {aka 'void ()(napi_env, void, void)'} to 'node_api_nogc_finalize' {aka 'void ()(const napi_env, void, void)'} [-fpermissive] 29.88 63 | status = napi_add_finalizer(env, obj, data, finalizer, hint, nullptr); 29.88 | ^~~~~ 29.88 | | 29.88 | napi_finalize {aka void ()(napi_env, void, void)} 29.88 In file included from /root/.cache/node-gyp/18.20.3/include/node/node_api.h:12, 29.88 from /load-agent/load-agent/node_modules/node-addon-api/napi.h:4, 29.88 from ../src/ffi.h:2, 29.88 from ../src/ffi.cc:3: 29.88 /root/.cache/node-gyp/18.20.3/include/node/js_native_api.h:516:43: note: initializing argument 4 of 'napi_status napi_add_finalizer(napi_env, napi_value, void, node_api_nogc_finalize, void*, napi_ref*)' 29.88 516 | node_api_nogc_finalize finalize_cb, 29.88 | ~~~~~^~~~~ 29.88 In file included from /load-agent/load-agent/node_modules/node-addon-api/napi.h:2725, 29.88 from ../src/ffi.h:2, 29.88 from ../src/ffi.cc:3: 29.88 /load-agent/load-agent/node_modules/node-addon-api/napi-inl.h: In instantiation of 'napi_status Napi::details::AttachData(napi_env, napi_value, FreeType, napi_finalize, void) [with FreeType = Napi::details::CallbackData<void ()(const Napi::CallbackInfo&), void>; napi_env = napi_env; napi_value = napi_value__; napi_finalize = void ()(napi_env__, void, void)]': 29.88 /load-agent/load-agent/node_modules/node-addon-api/napi-inl.h:1965:39: required from 'napi_status Napi::CreateFunction(napi_env, const char, napi_callback, CbData, napi_value*) [with CbData = Napi::details::CallbackData<void ()(const Napi::CallbackInfo&), void>; napi_env = napi_env; napi_callback = napi_value__ ()(napi_env__, napi_callback_info*); napi_value = napi_value; napi_callback_info = napi_callback_info__]' 29.88 /load-agent/load-agent/node_modules/node-addon-api/napi-inl.h:2021:38: required from 'static Napi::Function Napi::Function::New(napi_env, Callable, const char, void) [with Callable = void ()(const Napi::CallbackInfo&); napi_env = napi_env__]' 29.88 ../src/ffi.cc:60:50: required from here 29.88 /load-agent/load-agent/node_modules/node-addon-api/napi-inl.h:63:47: error: invalid conversion from 'napi_finalize' {aka 'void ()(napi_env__, void, void)'} to 'node_api_nogc_finalize' {aka 'void ()(const napi_env__, void, void)'} [-fpermissive] 29.88 63 | status = napi_add_finalizer(env, obj, data, finalizer, hint, nullptr); 29.88 | ^~~~~ 29.88 | | 29.88 | napi_finalize {aka void ()(napi_env__, void, void)} 29.88 In file included from /root/.cache/node-gyp/18.20.3/include/node/node_api.h:12, 29.88 from /load-agent/load-agent/node_modules/node-addon-api/napi.h:4, 29.88 from ../src/ffi.h:2, 29.88 from ../src/ffi.cc:3: 29.88 /root/.cache/node-gyp/18.20.3/include/node/js_native_api.h:516:43: note: initializing argument 4 of 'napi_status napi_add_finalizer(napi_env, napi_value, void, node_api_nogc_finalize, void, napi_ref__**)' 29.88 516 | node_api_nogc_finalize finalize_cb, 29.88 | ~~~~~^~~~~ 29.88 make: *** [ffi_bindings.target.mk:126: Release/obj.target/ffi_bindings/src/ffi.o] Error 1 29.88 make: Leaving directory '/load-agent/load-agent/node_modules/ffi-napi/build' 29.88 gyp ERR! build error 29.88 gyp ERR! stack Error: make failed with exit code: 2 29.88 gyp ERR! stack at ChildProcess.onExit (/load-agent/load-agent/node_modules/node-gyp/lib/build.js:194:23) 29.88 gyp ERR! stack at ChildProcess.emit (node:events:517:28) 29.88 gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:292:12) 29.88 gyp ERR! System Linux 6.8.0-1008-aws 29.88 gyp ERR! command "/usr/bin/node" "/load-agent/load-agent/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 29.88 gyp ERR! cwd /load-agent/load-agent/node_modules/ffi-napi 29.88 gyp ERR! node -v v18.20.3 29.88 gyp ERR! node-gyp -v v8.4.1 29.88 gyp ERR! not ok 29.88 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

failed to solve: process "/bin/sh -c yarn install" did not complete successfully: exit code: 1

swcurran commented 5 months ago

FYI — @reflectivedevelopment @cjhowland @loneil

loneil commented 5 months ago

This is duplicated from issue https://github.com/hyperledger/aries-akrida/issues/49, there is a workaround in there that I use (which is indeed pinning to an earlier Node version). This has been fixed in more up to date Credo libraries.

bfan2023 commented 5 months ago

The workaround described in issue https://github.com/hyperledger/aries-akrida/issues/49 worked for me. Now I see the following issue with the latest 'main' ,

ubuntu@ip-10-0-0-164:~/aries-akrida$ docker-compose -f docker-compose.demo.yml up
WARN[0000] The "NODE_ENV" variable is not set. Defaulting to a blank string.
WARN[0000] The "ISSUER_TYPE" variable is not set. Defaulting to a blank string.
WARN[0000] The "VERIFIER_TYPE" variable is not set. Defaulting to a blank string.
WARN[0000] The "OOB_INVITE" variable is not set. Defaulting to a blank string.
service "mediator-db" refers to undefined volume mediator-db: invalid compose project

the repo on my env FYI,

commit ebf452359741269fccf82f14d2e19e712dedc77a (HEAD -> main, origin/main, origin/HEAD)
Merge: 5f6d0f9 43770e4
Author: Stephen Curran <swcurran@gmail.com>
Date:   Mon May 20 16:33:10 2024 -0400

    Merge pull request #43 from anwalker293/fix/misc-fixes
anwalker293 commented 4 months ago

Hi @bfan2023 ! Sorry for the late reply, I didn't get any notifications on this issue!

Could you possibly try a git fetch && git pull? And maybe send over your .env? It looks like maybe somewhere the mediator service got labeled to mediator-db... (If you want to double-check this too, please see our sample.demo.env! :) )

GHkrishna commented 3 months ago

Hello @anwalker293 , the issue that @bfan2023 mentions is actually due to the faulty Dockerfile. I have fixed the issue in PR: https://github.com/hyperledger/aries-akrida/pull/65. Faced a similar issue myself when trying to have a setup locally.

CC: @loneil @swcurran

KimEbert42 commented 3 months ago

I followed the quick start this morning, and everything appears to be working. Please re-open ticket if you are still having issues.