Grin-wallet can't connect to local node

I compiled both the node and the wallet, the node seems to be running fine, and I’m having trouble connecting the wallet to the node.

Node version: “3.0.0-beta.2 (proto: 2)”
grin-wallet version: “grin-wallet 3.0.0-beta.3”

I made sure the path was correct in the grin-wallet.toml for the node_api_secret_path.

The error I get in the beginning of most wallet commands is:

20191220 23:57:05.908 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Request error: Wrong response code: 401 Unauthorized with data Body

Anybody know how to fix this?

1 Like

I am getting

0211106 20:49:08.447 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20211106 20:49:08.447 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
20211106 20:49:08.471 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: ResponseError error: Cannot parse response

Tried both 5.1.1 and 5.04 using the latest wallet version and the wallet cant seem to connect to the server
i followed this guide GRIN Full node and Wallet Installation Linux - YouTube
How do I fix?

WARNING: Wallet failed to verify data against a live chain. The above is from local cache and only valid up to the given height! (is your `grin server` offline or broken?)
Command 'info' completed successfully

I know it is not really a fix, but could you try to sync your wallet with grinnode.live, that would at least exclude wallet problems and we would know problem is the node

grin-wallet -r "https://grinnode.live:3413" info
1 Like

it works with grinnode.live, i already tested that. grinnode.live however states that should not rely on their service and run a full node yourself in production. that is what im trying to do, run a full node that’s always online.

1 Like

Of course. I agree. I just wanted to exclude problems with the wallet. Could you double check your toml config files for both wallet and the node? We need to make sure wallet is trying to reach it under the right local address and port.

grin-server.toml

[server]
api_http_addr = "0.0.0.0:3413"
[server.p2p_config]
host = "0.0.0.0"
port = 3414

./grin-wallet --api_server_address=“https://localhost:3413” -t test/ -p test info


grin@debian:~/grin-wallet/target/release$ ./grin-wallet --api_server_address="http://localhost:3413" -t test/ -p test info
20211108 14:27:15.200 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Connection refused (os error 111)
20211108 14:27:15.201 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: Request error: Cannot make request: error sending request for url (http://127.0.0.1:3413/v2/foreign): error trying to connect: tcp connect error: Connection refused (os error 111)
20211108 14:27:15.251 ERROR grin_wallet_impls::node_clients::http - Error calling get_tip: Request error: Cannot make request: error sending request for url (https://localhost:3413/v2/foreign): error trying to connect: tcp connect error: Connection refused (os error 111)

____ Wallet Summary Info - Account 'default' as of height 1471670 ____

20211108 14:27:15.251 WARN grin_wallet_libwallet::api_impl::owner_updater - Updater Thread unable to contact node
 Confirmed Total                  | 0.100000000 
 Awaiting Confirmation (< 10)     | 0.000000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.100000000 


WARNING: Wallet failed to verify data against a live chain. The above is from local cache and only valid up to the given height! (is your `grin server` offline or broken?)
Command 'info' completed successfully
grin@debian:~/grin-wallet/target/release$

would you mind sharing some logs from your grin-node ?

The log file is defined in your grin-server.toml

example from my grin-node

...
#log file path
log_file_path = "/var/log/grin-server.log"
...
  • Could be your local node is not synced or not running
  • check please “netstat” or “lsof -i” for open ports on “3413 & 3414”

Updater Thread unable to contact node

Issue has been solved WARNING: Wallet failed to verify data against a live chain. The above is from local cache and only valid up to the given height! (is your grin server offline or broken?) Command ‘info’ completed successfully · Issue #624 · mimblewimble/grin-wallet (github.com)

Potentially related. Discovered during the Winter 2020 bug bash challenge wallet randomly loses access to the local node · Issue #561 · mimblewimble/grin-wallet · GitHub

1 Like