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

7nodes example with docker-compose #235

Closed
meguimendia opened this issue Jun 3, 2020 · 4 comments
Closed

7nodes example with docker-compose #235

meguimendia opened this issue Jun 3, 2020 · 4 comments

Comments

@meguimendia
Copy link

I'm using ubuntu16.04 and 8GB of ram.
I have installed Docker version 19.03.11, build 42e35e61f3 and docker-compose version 1.25.5, build 8a1c60f6
Then I have cloned the repository and I have tried to do docker-compose up -d, but all my container are in an unhealthy state.
Is there anything that I can try to solve the problem?

@fixanoid
Copy link
Contributor

fixanoid commented Jun 8, 2020

@meguimendia check your container logs and see if you can share them.

@meguimendia
Copy link
Author

I've got this warning in txmanagers:
txmanager
txmanager2
And this error in cakeshop:
cakeshop
I couldn't found errors in nodes.

And when I tried to go inside the containers I've got this message:

panic: MustNew: Failed to connect to private transaction manager (/qdata/tm/tm.ipc): lstat /qdata/tm/tm.ipc: no such file or directory

goroutine 1 [running]:
github.com/ethereum/go-ethereum/private/privatetransactionmanager.MustNew(0xc00003800f, 0x10, 0xc00003800f)
/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/private/privatetransactionmanager/tx_manager.go:108 +0x1de
github.com/ethereum/go-ethereum/private.FromEnvironmentOrNil(0x1344560, 0xe, 0xc0001c9660, 0xc0001c9640)
/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/private/private.go:20 +0x64

I'm not sure if this cause the unhealthy state or because of the unhealthy state I've got this error.
I don't know if that helps.

@benjamincburns
Copy link

benjamincburns commented Jun 9, 2020

@fixanoid this problem is really easy to reproduce - just clone the repo and run docker-compose up

In my case the nodes die and the transaction manager stays alive. I see Fatal: Account unlock with HTTP access is forbidden! in the output immediately before the nodes die.

I'm also seeing errors about failing to enumerate USB devices (I assume these are non-fatal), and some "dial errors"

@chris-j-h
Copy link
Contributor

Hi, sounds like there's two different issues being discussed here.

@benjamincburns thanks for raising those, they are fixed in #236.

@meguimendia I suspect your issue is related to insufficient available memory resulting in the transaction managers being unable to start. We recommend you configure the Docker daemon with at least 4GB, although ideally as much as you can spare.
If this still doesn't resolve your issue, try reducing the number of nodes started by docker-compose. You can do this manually, although I'd recommend using quorum-wizard. This is a CLI tool that will allow you to easily start-up 2-7 nodes using docker-compose. It also updates the 7nodes example scripts so that you can continue to work through the quorum-examples.

I'll close this issue now, please reopen if you continue to have issues.

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

4 participants