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

local docker build is failing: Service 'node1' failed to build #37

Closed
drandreaskrueger opened this issue Sep 10, 2018 · 4 comments
Closed

Comments

@drandreaskrueger
Copy link

Error when building:

...
HEAD is now at 1a124b3 Update the gRPC address and add logs when connected to other nodes (#23)
go get -u github.com/golang/dep/cmd/dep
go get -u golang.org/x/tools/cmd/goimports
# golang.org/x/tools/cmd/goimports
loadinternal: cannot find runtime/cgo
go get -u github.com/wadey/gocovmerge
# github.com/wadey/gocovmerge
loadinternal: cannot find runtime/cgo
(cd /quorum/crux/.GOPATH/src/github.com/blk-io/crux && ./bin/dep ensure)
# github.com/blk-io/crux/vendor/github.com/jsimonetti/berkeleydb
bdb.c: In function 'go_db_cursor':
bdb.c:78:38: warning: passing argument 3 of 'dbp->cursor' from incompatible pointer type [-Wincompatible-pointer-types]
         ret = dbp->cursor(dbp, NULL, dbcp, 0);
                                      ^~~~
bdb.c:78:38: note: expected 'DBC ** {aka struct __dbc **}' but argument is of type 'DBC * {aka struct __dbc *}'
# github.com/blk-io/crux/server
.GOPATH/src/github.com/blk-io/crux/server/proto_server.go:23:43: cannot use &s (type *Server) as type chimera.ClientServer in argument to chimera.RegisterClientServer:
	*Server does not implement chimera.ClientServer (missing Delete method)
.GOPATH/src/github.com/blk-io/crux/server/proto_server.go:78:43: cannot use &s (type *Server) as type chimera.ClientServer in argument to chimera.RegisterClientServer:
	*Server does not implement chimera.ClientServer (missing Delete method)
.GOPATH/src/github.com/blk-io/crux/server/proto_server.go:115:43: cannot use &s (type *Server) as type chimera.ClientServer in argument to chimera.RegisterClientServer:
	*Server does not implement chimera.ClientServer (missing Delete method)
make: *** [Makefile:16: build] Error 2
ERROR: Service 'node1' failed to build: The command '/bin/sh -c chmod +x start.sh crux-start.sh istanbul-start.sh istanbul-init.sh &&     chmod +x test_transaction.sh &&     chmod +x bootstrap.sh &&     ./bootstrap.sh &&     apk del sed make git cmake build-base gcc g++ musl-dev curl-dev boost-dev' returned a non-zero code: 2

how to replicate that:

  • Debian based AWS machine
  • docker version: 18.06.1-ce
  • docker compose version: 1.22.0, build f46880fe

clean all docker:

docker kill $(docker ps -q) ; docker rm $(docker ps -a -q) ; docker rmi $(docker images -q)

get newest blk-io/crux (commit abb98b1):

git clone  https://github.com/blk-io/crux blk-io_crux
cd blk-io_crux
cp docker-compose.yaml docker-compose-local.yaml
nano docker-compose-local.yaml 

Follow the instructions, so that it looks like this:

...
  node1: &quorum_crux_node
    # Pull image down from Docker Hub
    # image: blkio10/quorum-crux:v1.0.0
    # Uncomment the below, and comment out the above line to build the Docker images yourself
    image: blk.io/quorum/quorum-crux
    build:
      context: .
    container_name: quorum1
...

then start it, and be patient:

docker-compose -f docker-compose-local.yaml up --build

ends with the above error message

ERROR: Service 'node1' failed to build: The command '/bin/sh -c chmod +x start.sh crux-start.sh istanbul-start.sh istanbul-init.sh &&     chmod +x test_transaction.sh &&     chmod +x bootstrap.sh &&     ./bootstrap.sh &&     apk del sed make git cmake build-base gcc g++ musl-dev curl-dev boost-dev' returned a non-zero code: 2

Please repair this, thanks a lot.

@drandreaskrueger
Copy link
Author

drandreaskrueger commented Sep 10, 2018

The reason for me trying this:

I want the parity people to be able to see by themselves how much faster quorum/geth IBFT actually is.

See openethereum/parity-ethereum#9393 (comment)

Thanks.

@Puneetha17
Copy link
Contributor

Updated a fix, thanks for letting us know!

@drandreaskrueger
Copy link
Author

perhaps related to #33

@drandreaskrueger
Copy link
Author

yes, that helped. It's working again. Thanks.

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