How can I tell if my local wallet is running?

I’m trying to setup basic grin mining, but I’m having difficulty knowing whether the programs I’m instructed to run are even running or not.

First I run the node: ./grin, and it opens the GUI. Cool.

Then before I run grin-miner, I think I need a local wallet running at 127.0.0.1:13416, right?

So I try ./grin wallet listen. I get asked for my wallet password and I enter it, and then… nothing. There’s no output. Is it stuck, or is it listening? I can’t tell.

Assuming it’s listening, I then try to boot up the local web wallet to see what I can see. It’s unclear if I need the listener to be running as well, separately.

I try ./grin wallet web. It asks for my password and I enter it. I get a message that says: “Grin Web-Wallet Application is running at http://127.0.0.1:13421”.

So I visit http://127.0.0.1:13421 in Chrome, and it redirects me to http://127.0.0.1:13421/index.html, which itself says:

“This 127.0.0.1 page can’t be found
No webpage was found for the web address: http://127.0.0.1:13421/index.html
HTTP ERROR 404”

But the process hasn’t quit, so I don’t know what it’s doing. Was there an error? There’s no output in this log either. I can’t tell.

So I try grin-miner anyway, and the GUI opens, but it says “Can’t establish server connection to 127.0.0.1:13416”.

So I’m not really sure what I’m doing wrong, but also the things that I’m running are not telling me why they’re breaking or not starting.

1 Like

Double check the following lines in your toml files.

Wallet:
grin-wallet.toml

Tell your wallet where to find the node:

check_node_api_http_addr = “http://127.0.0.1:13413

Tell your wallet what port to listen on and which IPs to accept:

api_listen_interface = “0.0.0.0”

api_listen_port = 13415

Server:
Enable mining

enable_stratum_server = true

Tell the server what port to listen on and which IPs to accept

stratum_server_addr = “0.0.0.0:13416”

Tell the server where the wallet is

wallet_listener_url = “http://127.0.0.0:13415

I am assuming you are running node, wallet and miner on same machine… Otherwise depending on your setup you may need to configure your firewalls to allow incoming traffic on the ports.

13413 wallets to node
13414 peers to node
13415 txs to wallet
13416 miners to node

Restart your node

./grin

Restart your wallet listener

./grin wallet listen

To check that your wallet is listening or accessible from external IPs you could always browse to http://gringod.info/

or ask for some grins

curl gringod.info

3 Likes

hi,

i am trying to run ‘grin wallet listen’. After I edit api_listen_interface = “0.0.0.0”, I get the following error message:

thread ‘main’ panicked at ‘Error loading wallet configuration: Error parsing configuration file at /Users/tse/grin/grin-wallet.toml - unexpected character found: \u{201c} at line 15’, src/bin/grin.rs:107:5 note: Run with RUST_BACKTRACE=1 for a backtrace.

I have managed to get the node up and the miner connected to the node, but can’t seem to get the wallet up listening.

Same issue, MacOS 10.14.2

Double checked everything

wallet listen just hanging there, and I can’t see no service on port 13415

What can I do now ?

The “just hanging there” is normal behavior.

Sounds like a firewall problem.

Is 13415 open when you try :
https://www.yougetsignal.com/tools/open-ports/

Can you mine into your wallet?

If you try curl gringod.info does it work?
Because if it fails it could be that you have not forward your 13415 port.

I forward 13415 to the Mac running wallet listen, always…

It reads that my port is closed…

I’ve double checked my router which seems fine.

Maybe there is a firewall on the router of the shared office building? fml

I don’t know if any of the devs are reading this, but personally I would find it very helpful if, when you enter your password at a prompt successfully, it at least had some kind of confirmation output like “Wallet unlocked!” It would just make it so much easier to know what’s going on…

@cleopatra Thanks for your help, with it I was able to get gringod.info to try to send me some grin. Didn’t confirm because my setup is for testnet4 and that hasn’t had a block mined in 13 days, looks like. Everything’s on floonet now.

Might be helpful for these guides to be updated to take note of that change.

Thanks! This was a great help. Nevertheless I can´t get any floonet grin.
This means gringod is broke, right? Is there another working faucet?

Gringotts is smiling on you today. Sending 1.116 grin.

20190106 18:57:47.673 INFO grin_util::logger - log4rs is initialized, file level: Error, stdout level: Debug, min. level: Debug
20190106 18:57:47.673 INFO grin - Using wallet configuration file at /home/gringod/.grin/floo/grin-wallet.toml
20190106 18:57:47.673 INFO grin - This is Grin version 0.5.0 (git v0.5.0-7-g5e86cc8), built for x86_64-unknown-linux-gnu by rustc 1.33.0-nightly (09d6ab90e 2018-12-20).
20190106 18:57:47.673 DEBUG grin - Built with profile “release”, features “”.
20190106 18:57:47.673 DEBUG grin_wallet::types - Using wallet seed file at: /home/gringod/.grin/floo/wallet_data/wallet.seed
20190106 18:57:47.683 INFO grin_wallet - Using LMDB Backend for wallet
20190106 18:57:47.683 DEBUG grin_wallet::types - Using wallet seed file at: /home/gringod/.grin/floo/wallet_data/wallet.seed
20190106 18:57:47.697 DEBUG grin_wallet::libwallet::internal::updater - Refreshing wallet outputs
20190106 18:57:47.709 INFO grin_wallet::command - Tx not created: Not enough funds. Required: 1125000000, Available: 0
Wallet command failed: LibWallet Error: Not enough funds. Required: 1125000000, Available: 0
##########################################################

Funds locked by another recent transaction

Please try again later

##########################################################