Cardano-node: symbol lookup error: cardano-node: undefined symbol: crypto_vrf_publickeybytes

Hello,

I have built cardano 1.17.0, but after running:

cardano-node run
–topology relay/mainnet_candidate_3-topology.json
–database-path relay/db
–socket-path relay/db/node.socket
–host-addr xx.xx.xx.xx
–port 3001
–config relay/mainnet_candidate_3-config.json

I always get error:
cardano-node: symbol lookup error: cardano-node: undefined symbol: crypto_vrf_publickeybytes

Ofcourse I’m using my real ip instead of xx in host-addr xx.xx.xx.xx.

I also got same error after trying to run this cadano-node with shelley testnet json files.

What could I do wrong?

3 Likes

You missed libsodium, refer to official docs and make sure its available in your LD_LIBRARY_PATH

7 Likes

yes, it was the problem. Thank you very much :slight_smile:

I am facing the same issue but didn’t understand how to resolve it. Please help

click the link above that refers the the official docs to install libsodium

and then check here if you’re still seeing errors after installing libsodium:

4 Likes

Thank you Adafrog, it solves the problem.

1 Like

I had the same Issue.

.....
[xxxxx:cardano.node.ChainSyncClient:Info:163] [2022-01-01 11:04:49.90 UTC] fromList [("kind",String "ChainSyncClientEvent.TraceDownloadedHeader"),("peer",Object (fromList [("local",Object (fromList [("addr",String "192.168.99.16"),("port",String "46713")])),("remote",Object (fromList [("addr",String "3.124.178.139"),("port",String "3001")]))])),("slot",Number 1598313.0),("block",String "8c6335012c142b9ee2713cd017fd487ec3146569e7b07d6a9b4cdd00caece12b"),("blockNo",Number 1597046.0)]
[xxxxx:cardano.node.BlockFetchClient:Info:161] [2022-01-01 11:04:49.91 UTC] fromList [("kind",String "AcknowledgedFetchRequest"),("peer",Object (fromList [("local",Object (fromList [("addr",String "192.168.99.16"),("port",String "46713")])),("remote",Object (fromList [("addr",String "3.124.178.139"),("port",String "3001")]))]))]
[node1:cardano.node.BlockFetchClient:Info:161] [2022-01-01 11:04:49.91 UTC] fromList [("length",Number 10.0),("head",String "7822a74b9d46b23acf0f6987793ae0d168fc3d85a6174df73cef1e4f965489fc"),("kind",String "SendFetchRequest"),("peer",Object (fromList [("local",Object (fromList [("addr",String "192.168.99.16"),("port",String "46713")])),("remote",Object (fromList [("addr",String "3.124.178.139"),("port",String "3001")]))]))]
[xxxxx:cardano.node.BlockFetchClient:Info:122] [2022-01-01 11:04:49.90 UTC] fromList [("kind",String "AddedFetchRequest"),("peer",Object (fromList [("local",Object (fromList [("addr",String "192.168.99.16"),("port",String "46713")])),("remote",Object (fromList [("addr",String "3.124.178.139"),("port",String "3001")]))]))]
[xxxxx:cardano.node.ChainSyncClient:Info:163] [2022-01-01 11:04:49.91 UTC] fromList [("kind",String "ChainSyncClientEvent.TraceDownloadedHeader"),("peer",Object (fromList [("local",Object (fromList [("addr",String "192.168.99.16"),("port",String "46713")])),("remote",Object (fromList [("addr",String "3.124.178.139"),("port",String "3001")]))])),("slot",Number 1598314.0),("block",String "fd234f418ca3b6c4336940fbf86d4e458dc85f9a7571e3124233c49eed59f4e1"),("blockNo",Number 1597047.0)]
cardano-node: symbol lookup error: cardano-node: undefined symbol: crypto_vrf_publickeybytes

vars LD_LIBRARY_PATH and PKG_CONFIG_PATH were correctly set.

After many search, problem was that I Installed cardano-node in /usr/local/bin via a symbolic link to the file built.

ls -li /usr/local/bin
total 8
684045 lrwxrwxrwx 1 root root 147 déc. 31 08:49 cardano-cli → home/XXXXX/cardano-src/cardano-node/dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-cli-1.32.1/x/cardano-cli/build/cardano-cli/cardano-cli
684041 lrwxrwxrwx 1 root root 151 déc. 31 08:46 cardano-node → /home/XXXXX/cardano-src/cardano-node/dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-node-1.32.1/x/cardano-node/build/cardano-node/cardano-node

I did what tutorial describe and it works fine

mkdir -p $HOME/.local/bin
cp -p "$(./scripts/bin-path.sh cardano-node)" $HOME/.local/bin/
cp -p "$(./scripts/bin-path.sh cardano-cli)" $HOME/.local/bin/

Conclusion : do it as it is written :slight_smile:

Dead link. and this problem seems to be back

1 Like