web3labs / crux

Data Privacy for Quorum Blockchains
https://www.web3labs.com
Apache License 2.0
53 stars 28 forks source link

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

Closed drandreaskrueger closed 5 years ago

drandreaskrueger commented 5 years ago

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:

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 abb98b1b88a92527f81371625f0ee2ad40d2489a):

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 commented 5 years ago

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 https://github.com/paritytech/parity-ethereum/issues/9393#issuecomment-418829614

Thanks.

Puneetha17 commented 5 years ago

Updated a fix, thanks for letting us know!

drandreaskrueger commented 5 years ago

perhaps related to https://github.com/blk-io/crux/issues/33

drandreaskrueger commented 5 years ago

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