monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
8.98k stars 3.11k forks source link

monero-wallet-rpc shows usually 'no connection to daemon' #4156

Open skinderis opened 6 years ago

skinderis commented 6 years ago

I was talking about this issue in the comments, but I think it's worth opening a new one as it is important.

I am running two docker containers, on on is monero-wallet-rpc another runs monerod, monero-wallet-rpc uses monerod container as daemon-address.

The issue I am facing is that wallet sometimes shows message {'code': -38, 'message': 'no connection to daemon'}. This error makes a lot of problems for me as I can't automate transfer method. My code is trying to send some XMR and when it shows this error I have to fix it by hand.

The error {'code': -38, 'message': 'no connection to daemon'} is not showing all the time it's 50% of succeeding.

How can I trigger wallet to not fail during transfer? Maybe I can call some method to keep wallet connected to daemon?

Version I am running is v0.12.3.0

moneromooo-monero commented 6 years ago

If you run daemon and wallet with --log-level 2, you might see something of interest when this happens, or shortly before that.

moneromooo-monero commented 6 years ago

Try adding --trusted-daemon to monero-wallet-rpc, if the address for the other container doesn't go through 127.0.0.1.

moneromooo-monero commented 5 years ago

Does it still happen ? If not or no reply I'll close.