SOLVED: SAFE API error: libsafe_app.so: undefined symbol: is_mock_build

#1

Help! I’m updating my node app (SAFE Drive) from safe-node-app 0.8.1 to 0.10.1 (or 0.10.3 both give the same problem).

As soon as I access the SAFE API here, there’s a failure to find is_mock_network (inside safe-node-app itself - I’m not accessing it) - see terminal output below.

I’ve tried removing ./node_modules and re-doing npm install.

Debugger listening on ws://127.0.0.1:9229/5bbac885-74c2-44ef-af57-3e2ff3ea781a
For help see https://nodejs.org/en/docs/inspector
ERROR:  Error: Dynamic Symbol Retrieval Error: /home/mrh/src/fuse/safenetwork-fuse/node_modules/@maidsafe/safe-node-app/src/native/mock/libsafe_app.so: undefined symbol: is_mock_build
    at DynamicLibrary.get (/home/mrh/src/fuse/safenetwork-fuse/node_modules/ffi/lib/dynamic_library.js:112:11)
    at api.forEach (/home/mrh/src/fuse/safenetwork-fuse/node_modules/safenetworkjs/node_modules/@maidsafe/safe-node-app/src/native/lib.js:30:46)
    at Array.forEach (<anonymous>)
    at Object.ffi.init (/home/mrh/src/fuse/safenetwork-fuse/node_modules/safenetworkjs/node_modules/@maidsafe/safe-node-app/src/native/lib.js:22:9)
    at new SAFEApp (/home/mrh/src/fuse/safenetwork-fuse/node_modules/safenetworkjs/node_modules/@maidsafe/safe-node-app/src/app.js:36:9)
    at Object.initializeApp (/home/mrh/src/fuse/safenetwork-fuse/node_modules/safenetworkjs/node_modules/@maidsafe/safe-node-app/src/index.js:61:25)
    at authorise (/home/mrh/src/fuse/safenetwork-fuse/node_modules/safenetworkjs/src/bootstrap.js:115:26)
    at Object.Safe.bootstrap (/home/mrh/src/fuse/safenetwork-fuse/node_modules/safenetworkjs/src/bootstrap.js:94:11)
    at Object.<anonymous> (/home/mrh/src/fuse/safenetwork-fuse/bin.js:51:21)
    at Module._compile (module.js:652:30)

You can check the package.json etc on this branch

0 Likes

#2

Solved!

I forgot to redo npm link after npm install

3 Likes

closed #3

This topic was automatically closed after 60 days. New replies are no longer allowed.

0 Likes