hyperledger / indy-node

The server portion of a distributed ledger purpose-built for decentralized identity.
https://wiki.hyperledger.org/display/indy
Apache License 2.0
687 stars 657 forks source link

_load_cdll: Can't load libursa: libursa.so: cannot open shared object file: No such file or directory #1681

Closed ghabxph closed 1 year ago

ghabxph commented 3 years ago

Guide From: https://github.com/ecred-tech/indy-node/tree/master/environment/docker/pool

Tried following the above guide for me to be able to setup indy-node on my local machine.

root@0f39a420545b:/home/indy# init_indy_node Alpha 0.0.0.0 9701 0.0.0.0 9702
Node-stack name is Alpha
Client-stack name is AlphaC
Generating keys for random seed b'7207Fb5eDBf4527902215CE661FD22a9'
Init local keys for client-stack
Public key is HDS86XZcXYKCPkrQRzLLB72QmB6Ao9hAvka8zRLScMcL
Verification key is 3f27Ksu62d6zbJqCJsYrywkRSjckguGPeDgGvFXkKyj2
Init local keys for node-stack
Public key is HDS86XZcXYKCPkrQRzLLB72QmB6Ao9hAvka8zRLScMcL
Verification key is 3f27Ksu62d6zbJqCJsYrywkRSjckguGPeDgGvFXkKyj2
_load_cdll: Can't load libursa: libursa.so: cannot open shared object file: No such file or directory
libursa.so: cannot open shared object file: No such file or directory
root@0f39a420545b:/home/indy#
ghabxph commented 3 years ago

Tried installing libursa in the indycore:

gabriel@manjaro-t14s ~ [SIGINT]> docker exec -itu 0 indycore bash
root@0f39a420545b:/home/indy# init_indy_node Alpha 0.0.0.0 9701 0.0.0.0 9702
Node-stack name is Alpha
Client-stack name is AlphaC
Generating keys for random seed b'6CDBCA2C8De3f9FeA63eDb7E68bfa5AE'
Init local keys for client-stack
Public key is 7rUprFR1dKRUWRhY9mSPCghM6EJn15VvvQ33YJhXRmfM
Verification key is FyDvJpuns5U8uuLXvWfYzhgTksdqVNKp58bpQt2i1A82
Init local keys for node-stack
Public key is 7rUprFR1dKRUWRhY9mSPCghM6EJn15VvvQ33YJhXRmfM
Verification key is FyDvJpuns5U8uuLXvWfYzhgTksdqVNKp58bpQt2i1A82
/usr/lib/libursa.so: undefined symbol: ursa_set_logger
root@0f39a420545b:/home/indy#
ghabxph commented 3 years ago

As the error suggests, we need to add libursa.so to the docker container in order to make node creation successful. Here's my temporary fix

https://github.com/ecred-tech/indy-node/commit/6b8afdc5695ce7a1f8d9a6b01a216af0a882625d

image

I have to note that I specifically compiled the tag: bbs-v0.4.0 in Ursa to make it work. https://github.com/hyperledger/ursa/tree/bbs-v0.4.0

WadeBarnes commented 3 years ago

If you're looking to spin up an indy-node pool locally for development, you may find this easier; bcgov/von-network

WadeBarnes commented 1 year ago

We will be moving away from Ursa shortly, so closing this.