Hi,
I’m trying to get cardano-wallet to run on a local server to test out an application that I’m working on. I’m interested in using the wallet backend API. I had an issue while trying to build cardano-node from source so I’ve resorted to using the docker containers for both the node and wallet.
Command to run cardano-node:
sudo docker run \
--rm \
-v ./preview_testnet_node_config:/configuration \
-p 1337:1337 \
ghcr.io/intersectmbo/cardano-node:8.9.2 run \
--topology /configuration/topology.json \
--database-path /configuration/db \
--socket-path /configuration/db/preview_testnet_node.socket \
--host-addr 0.0.0.0 \
--port 1337 \
--config /configuration/config.json
This seems to work fine. I’m getting some errors but they don’t seem fatal (please correct me if I’m wrong).
Command to run cardano-wallet:
sudo docker run \
--rm \
-v ./preview_testnet_node_config:/configuration \
-p 8090:8090 \
cardanofoundation/cardano-wallet:latest serve \
--port 8090 \
--node-socket /configuration/db/preview_testnet_node.socket \
--testnet /configuration/byron-genesis.json \
--database /configuration/wallet_db \
--token-metadata-server https://metadata.cardano-testnet.iohkdev.io
I see what seem to be network errors, but from looking online, others get the same errors without any effect on the wallet’s operation.
[cardano-wallet.pools-engine:Info:38] [2024-05-26 19:10:46.76 UTC] Still in sync. Applied 10 blocks, 0 rollbacks in the last 300.001243712s. Current tip is [point f0833601 at slot 50094608].
[cardano-wallet.ntp-client:Notice:122] [2024-05-26 19:10:48.78 UTC] ntp client experienced error Network.Socket.ByteString.sendManyTo: does not exist (Network unreachable) when sending packet
[cardano-wallet.ntp-client:Notice:123] [2024-05-26 19:10:49.88 UTC] ntp client experienced timeout using IPv6 protocol
In my case, however, I can’t seem to get any response when I try to use the wallet API.
Trying from localhost:
mohamed@austin:~$ curl -X GET http://localhost:8090/v2/network/information
curl: (56) Recv failure: Connection reset by peer
mohamed@austin:~$ curl -X GET http://127.0.0.1:8090/v2/network/information
curl: (56) Recv failure: Connection reset by peer
mohamed@austin:~$ netstat -ltn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8090 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:1337 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN
tcp6 0 0 :::8090 :::* LISTEN
tcp6 0 0 :::1337 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
Trying from system on local network:
mohamed@sahara-dev:~$ curl -X GET http://192.168.2.61:8090/v2/network/information
curl: (7) Failed to connect to 192.168.2.61 port 8090 after 3 ms: Connection refused
mohamed@sahara-dev:~$ ping 192.168.2.61
PING 192.168.2.61 (192.168.2.61) 56(84) bytes of data.
64 bytes from 192.168.2.61: icmp_seq=1 ttl=63 time=2.99 ms
64 bytes from 192.168.2.61: icmp_seq=2 ttl=63 time=2.47 ms
64 bytes from 192.168.2.61: icmp_seq=3 ttl=63 time=2.38 ms
64 bytes from 192.168.2.61: icmp_seq=4 ttl=63 time=2.40 ms
64 bytes from 192.168.2.61: icmp_seq=5 ttl=63 time=3.46 ms
64 bytes from 192.168.2.61: icmp_seq=6 ttl=63 time=3.85 ms
64 bytes from 192.168.2.61: icmp_seq=7 ttl=63 time=2.29 ms
64 bytes from 192.168.2.61: icmp_seq=8 ttl=63 time=2.72 ms
64 bytes from 192.168.2.61: icmp_seq=9 ttl=63 time=2.91 ms
64 bytes from 192.168.2.61: icmp_seq=10 ttl=63 time=2.47 ms
64 bytes from 192.168.2.61: icmp_seq=11 ttl=63 time=2.34 ms
64 bytes from 192.168.2.61: icmp_seq=12 ttl=63 time=2.50 ms
^C
--- 192.168.2.61 ping statistics ---
12 packets transmitted, 12 received, 0% packet loss, time 11022ms
rtt min/avg/max/mdev = 2.288/2.730/3.845/0.469 ms
mohamed@sahara-dev:~$ curl -X GET http://192.168.2.61:8090/v2/network/information
curl: (7) Failed to connect to 192.168.2.61 port 8090 after 5 ms: Connection refused
Any ideas on what could be going wrong?