ton-blockchain / ton

Main TON monorepo
Other
2.61k stars 722 forks source link

[adnl-ext-server.cpp:64][!inconn] failed to init crypto: [Error : 0 : ] #992

Open jamescarter-le opened 1 month ago

jamescarter-le commented 1 month ago

Not able to connect to liteserver.

I have the TON node running on a VM currently syncing slowly (from backup). I'm trying to connect via ADNL liteclient.

I have set my config for tonlib to the following:

{
  "@type": "config.global",
  "liteservers": [
    {
      "ip": 3232235872,
      "port": "14980",
      "id": {
        "@type": "pub.ed25519",
        "key": "8IMz8P3GGNEtuqJDx84aV1L+1uFKHIMbDywBsnDoXms="
      }
    }
  ],
  "validator": {
    "@type": "validator.config.global",
    "zero_state": {
      "workchain": -1,
      "shard": -9223372036854775808,
      "seqno": 0,
      "root_hash": "F6OpKZKqvqeFp6CQmFomXNMfMj2EnaUSOXN+Mh+wVWk=",
      "file_hash": "XplPz01CXAps5qeSWUtxcyBfdAo5zVb1N979KLSKD24="
    },
    "init_block": {
      "root_hash": "irEt9whDfgaYwD+8AzBlYzrMZHhrkhSVp3PU1s4DOz4=",
      "seqno": 10171687,
      "file_hash": "lay/bUKUUFDJXU9S6gx9GACQFl+uK+zX8SqHWS9oLZc=",
      "workchain": -1,
      "shard": -9223372036854775808
    },
    "hardforks": [
      {
        "file_hash": "t/9VBPODF7Zdh4nsnA49dprO69nQNMqYL+zk5bCjV/8=",
        "seqno": 8536841,
        "root_hash": "08Kpc9XxrMKC6BF/FeNHPS3MEL1/Vi/fQU/C9ELUrkc=",
        "workchain": -1,
        "shard": -9223372036854775808
      }
    ]
  }
}

This is a local network IP, and I can see it connecting to the node in the logs, but get the error 'failed to init crypto'

What could be causing this, am I missing some libraries on the VM? Ubuntu.

[ 1][t 0][2024-05-13 14:07:29.130051616][adnl-ext-server.cpp:64][!inconn]       failed to init crypto: [Error : 0 : ]
[ 1][t 0][2024-05-13 14:07:38.584149615][TcpListener.cpp:64][!TcpListener[port:42990]]  Accept
[ 1][t 0][2024-05-13 14:07:39.144477015][TcpListener.cpp:64][!TcpListener[port:14980]]  Accept
[ 1][t 0][2024-05-13 14:07:39.144717904][adnl-ext-server.cpp:64][!inconn]       failed to init crypto: [Error : 0 : ]
[ 1][t 0][2024-05-13 14:07:42.597899319][TcpListener.cpp:64][!TcpListener[port:42990]]  Accept
[ 1][t 0][2024-05-13 14:07:49.152871211][TcpListener.cpp:64][!TcpListener[port:14980]]  Accept
[ 1][t 0][2024-05-13 14:07:49.153085550][adnl-ext-server.cpp:64][!inconn]       failed to init crypto: [Error : 0 : ]
[ 1][t 0][2024-05-13 14:07:59.165829325][TcpListener.cpp:64][!TcpListener[port:14980]]  Accept
[ 1][t 0][2024-05-13 14:07:59.166076393][adnl-ext-server.cpp:64][!inconn]       failed to init crypto: [Error : 0 : ]
[ 1][t 0][2024-05-13 14:08:09.175711122][TcpListener.cpp:64][!TcpListener[port:14980]]  Accept
[ 1][t 0][2024-05-13 14:08:09.175994131][adnl-ext-server.cpp:64][!inconn]       failed to init crypto: [Error : 0 : ]
[ 1][t 0][2024-05-13 14:08:19.185836832][TcpListener.cpp:64][!TcpListener[port:14980]]  Accept
[ 1][t 0][2024-05-13 14:08:19.186266370][adnl-ext-server.cpp:64][!inconn]       failed to init crypto: [Error : 0 : ]
[ 1][t 0][2024-05-13 14:08:20.682235542][TcpListener.cpp:64][!TcpListener[port:42990]]  Accept
[ 1][t 0][2024-05-13 14:08:29.194323806][TcpListener.cpp:64][!TcpListener[port:14980]]  Accept
[ 1][t 0][2024-05-13 14:08:29.194510834][adnl-ext-server.cpp:64][!inconn]       failed to init crypto: [Error : 0 : ]