stratisproject / StratisBitcoinFullNode

Bitcoin full node in C#
https://stratisplatform.com
MIT License
786 stars 314 forks source link

Failed to run on docker #4174

Open ranjancse26 opened 4 years ago

ranjancse26 commented 4 years ago

Failing to run on docker.

docker pull stratisgroupltd/blockchaincovid19:latest

docker-compose -f 3-NodeNetwork.yml up

image

fshutdown commented 4 years ago

Is there any issue caused by this error message?

Overall this is caused by two nodes trying to establish connection while already being connected. From what I know this should not cause any issues and the error in the logs is just an indication of that condition.

Could you please confirm.

ranjancse26 commented 4 years ago

@maciejzaleski I see the below one with the 46 of 46 block producers hit. However, I don't see the balance getting updated. Any help would be appreciated.

image

DemonRx commented 4 years ago

Interesting wordage... "he". Are we assuming the "miner" is a biological entity ? :thinking: I'm all into A.I., but it will always be an "it" :laughing:

fshutdown commented 4 years ago

I managed to reproduce the error with An item with the same key has already been added but this didn't cause any issues with the wallet balance.

Here are the steps which should get you back into the right tracks:

Make sure that you are using the correct docker-compose file from here: https://github.com/stratisproject/StratisBitcoinFullNode/blob/DeveloperEdition/Docker/Docker-Compose/3-NodeNetwork.yml

Remove old containers and their data: docker-compose -f 3-NodeNetwork.yml rm -f

Ensure that you have the latest docker images: docker-compose -f 3-NodeNetwork.yml pull

Start it up again: docker-compose -f 3-NodeNetwork.yml up

You should get the pre-mine reward into Node_1 wallet at second block.

ranjancse26 commented 4 years ago

@maciejzaleski Thanks a lot for resolving the issue. I just followed your steps and was able to see the balance on Node_1 wallet.

image

ranjancse26 commented 4 years ago

I did a clean install and now, I see the same issue. The Node 1 wallet Confirmed balance: 0.00000000. Also, I see the below issue - Miner wasn't able to get the address from the wallet! you will not receive any rewards.

image