Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start node via docker #4076

Closed
duybach opened this issue Mar 13, 2020 · 2 comments
Closed

Unable to start node via docker #4076

duybach opened this issue Mar 13, 2020 · 2 comments

Comments

@duybach
Copy link

duybach commented Mar 13, 2020

Background

I am following the guide from the README inside the docker folder. When I deploy "alice" and setup the BTCD node (by mining 400 blocks to activate segwit) I get this error when I check the logs from alice:

[ERR] NTFN: unable to get block: -32602: parameter #2 'verbosity' must be type int (got bool)

Your environment

The docker README tutorial was working for me a few days ago. Today I had to redo the docker containers and after removing the containers & volumes, I've encountered this problem. Tried it also on my other device (Ubuntu & Windows).

Steps to reproduce

$ export NETWORK="simnet" 

$ docker-compose run -d --name alice lnd_btc
$ docker exec -i -t alice bash

alice$ lncli --network=simnet newaddress np2wkh 

$ MINING_ADDRESS=<alice_address> docker-compose up -d btcd

$ docker-compose run btcctl generate 400

$ docker logs alice
[ERR] NTFN: unable to get block: -32602: parameter #2 'verbosity' must be type int (got bool) 

Expected behaviour

My LND node should be able to get the blocks.

Actual behaviour

LND Node can't read block because:
[ERR] NTFN: unable to get block: -32602: parameter #2 'verbosity' must be type int (got bool)

@guggero
Copy link
Collaborator

guggero commented Mar 13, 2020

This error is coming from btcd. It looks like a PR was recently merged that changed the behavior there and lnd isn't compatible with the newest version yet. Can you try changing your docker/btcd/Dockerfile from

RUN git clone https://github.com/btcsuite/btcd.git . \
    &&  GO111MODULE=on go install -v . ./cmd/...

to

RUN git clone https://github.com/btcsuite/btcd.git . \
    &&  git checkout v0.20.1-beta && GO111MODULE=on go install -v . ./cmd/...

and then building the image again?

@duybach
Copy link
Author

duybach commented Mar 13, 2020

Thanks for the solution. Node is working now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants