IBM / blockchainbean2

This code pattern shows how to model a supply-chain network using the IBM Blockchain Platform and is based on a collaboration with Brooklyn Roasting Company. The story, along with the supply-chain documents that were used to model this network, can be found at: https://www.ibm.com/blockchainbean. Note that the 'view the blockchain' button is being migrated''

Home Page:https://developer.ibm.com/patterns/coffee-supply-chain-network-hyperledger-fabric-blockchain-2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Step 4. Install Contract -- fabric-peer do not start

sajozsattila opened this issue · comments

Hello,

I tried to follow up your steps, however, on Step 4. I had a problem. When I would like to start the local fabric, the fabric-peer docker is crash. Output:

[2/20/2019 3:54:38 PM] [INFO] startFabricRuntime
[2/20/2019 3:54:38 PM] [INFO] # don't rewrite paths for Windows Git Bash users
[2/20/2019 3:54:38 PM] [INFO] export MSYS_NO_PATHCONV=1
[2/20/2019 3:54:38 PM] [INFO] docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb
[2/20/2019 3:54:38 PM] [INFO] fabricvscodelocalfabric_couchdb is up-to-date
[2/20/2019 3:54:38 PM] [INFO] fabricvscodelocalfabric_orderer.example.com is up-to-date
[2/20/2019 3:54:38 PM] [INFO] fabricvscodelocalfabric_ca.example.com is up-to-date
[2/20/2019 3:54:38 PM] [INFO] Starting fabricvscodelocalfabric_peer0.org1.example.com ...
[2/20/2019 3:54:38 PM] [INFO] Starting fabricvscodelocalfabric_peer0.org1.example.com
[2/20/2019 3:54:40 PM] [INFO] Starting fabricvscodelocalfabric_peer0.org1.example.com ... done
[2/20/2019 3:54:40 PM] [INFO] # wait for Hyperledger Fabric to start
[2/20/2019 3:54:40 PM] [INFO] # incase of errors when running later commands, issue export FABRIC_START_TIMEOUT=<larger number>
[2/20/2019 3:54:40 PM] [INFO] export FABRIC_START_TIMEOUT=30
[2/20/2019 3:54:40 PM] [INFO] for i in $(seq 1 ${FABRIC_START_TIMEOUT})
[2/20/2019 3:54:40 PM] [INFO] do
[2/20/2019 3:54:40 PM] [INFO]     # This command only works if the peer is up and running
[2/20/2019 3:54:40 PM] [INFO]     if docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" ${COMPOSE_PROJECT_NAME}_peer0.org1.example.com peer channel list > /dev/null 2>&1
[2/20/2019 3:54:40 PM] [INFO]     then
[2/20/2019 3:54:40 PM] [INFO]         # Peer now available
[2/20/2019 3:54:40 PM] [INFO]         break
[2/20/2019 3:54:40 PM] [INFO]     else
[2/20/2019 3:54:40 PM] [INFO]         # Sleep and try again
[2/20/2019 3:54:40 PM] [INFO]         sleep 1
[2/20/2019 3:54:40 PM] [INFO]     fi
[2/20/2019 3:54:40 PM] [INFO] done
[2/20/2019 3:55:15 PM] [INFO] echo Hyperledger Fabric started in $i seconds
[2/20/2019 3:55:15 PM] [INFO] # Check to see if the channel already exists
[2/20/2019 3:55:15 PM] [INFO] if ! docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" ${COMPOSE_PROJECT_NAME}_peer0.org1.example.com peer channel getinfo -c mychannel
[2/20/2019 3:55:15 PM] [INFO] then
[2/20/2019 3:55:15 PM] [INFO]     # Create the channel
[2/20/2019 3:55:15 PM] [INFO]     docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" ${COMPOSE_PROJECT_NAME}_peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c mychannel -f /etc/hyperledger/configtx/channel.tx
[2/20/2019 3:55:15 PM] [INFO]     # Join peer0.org1.example.com to the channel.
[2/20/2019 3:55:15 PM] [INFO]     docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" ${COMPOSE_PROJECT_NAME}_peer0.org1.example.com peer channel join -b mychannel.block
[2/20/2019 3:55:15 PM] [INFO] fi
[2/20/2019 3:55:15 PM] [INFO] Hyperledger Fabric started in 30 seconds
[2/20/2019 3:55:15 PM] [INFO] Error response from daemon: Container 919d99396982bdcf8616a03380af14f62dbe4eccb6f67b315b531375a7335fb3 is not running
[2/20/2019 3:55:15 PM] [INFO] Error response from daemon: Container 919d99396982bdcf8616a03380af14f62dbe4eccb6f67b315b531375a7335fb3 is not running

The docker ps -a:

CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS                     PORTS                                         NAMES
919d99396982        hyperledger/fabric-peer:1.4.0       "peer node start"        4 minutes ago       Exited (2) 2 minutes ago                                                 fabricvscodelocalfabric_peer0.org1.example.com
54f8a3364ffa        hyperledger/fabric-couchdb:0.4.14   "tini -- /docker-ent…"   35 minutes ago      Up 35 minutes              4369/tcp, 9100/tcp, 0.0.0.0:17055->5984/tcp   fabricvscodelocalfabric_couchdb
6210cb4299d4        hyperledger/fabric-orderer:1.4.0    "orderer"                35 minutes ago      Up 35 minutes              0.0.0.0:17050->7050/tcp                       fabricvscodelocalfabric_orderer.example.com
ea1953348262        hyperledger/fabric-ca:1.4.0         "sh -c 'fabric-ca-se…"   38 minutes ago      Up 38 minutes              0.0.0.0:17054->7054/tcp                       fabricvscodelocalfabric_ca.example.com

The docker logs fabricvscodelocalfabric_peer0.org1.example.com:

2019-02-20 15:54:40.546 UTC [nodeCmd] serve -> INFO 001 Starting peer:
 Version: 1.4.0
 Commit SHA: d700b43
 Go version: go1.11.1
 OS/Arch: linux/amd64
 Chaincode:
  Base Image Version: 0.4.14
  Base Docker Namespace: hyperledger
  Base Docker Label: org.hyperledger.fabric
  Docker Namespace: hyperledger
2019-02-20 15:54:40.551 UTC [ledgermgmt] initialize -> INFO 002 Initializing ledger mgmt
2019-02-20 15:54:40.551 UTC [kvledger] NewProvider -> INFO 003 Initializing ledger provider
2019-02-20 15:54:40.668 UTC [kvledger] NewProvider -> INFO 004 ledger provider Initialized
2019-02-20 15:54:40.817 UTC [ledgermgmt] initialize -> INFO 005 ledger mgmt initialized
2019-02-20 15:54:40.818 UTC [peer] func1 -> INFO 006 Auto-detected peer address: 172.22.0.5:7051
2019-02-20 15:54:40.818 UTC [peer] func1 -> INFO 007 Returning peer0.org1.example.com:7051
2019-02-20 15:54:40.818 UTC [peer] func1 -> INFO 008 Auto-detected peer address: 172.22.0.5:7051
2019-02-20 15:54:40.818 UTC [peer] func1 -> INFO 009 Returning peer0.org1.example.com:7051
2019-02-20 15:54:40.820 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00a Entering computeChaincodeEndpoint with peerHostname: peer0.org1.example.com
2019-02-20 15:54:40.820 UTC [nodeCmd] computeChaincodeEndpoint -> INFO 00b Exit with ccEndpoint: peer0.org1.example.com:7052
2019-02-20 15:54:40.820 UTC [nodeCmd] createChaincodeServer -> WARN 00c peer.chaincodeListenAddress is not set, using peer0.org1.example.com:7052
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7fe5b01a7259]

runtime stack:
runtime.throw(0x123f0ff, 0x2a)
        /opt/go/src/runtime/panic.go:608 +0x72
runtime.sigpanic()
        /opt/go/src/runtime/signal_unix.go:374 +0x2f2

goroutine 49 [syscall]:
runtime.cgocall(0xe1bdc0, 0xc0003e8600, 0x29)
        /opt/go/src/runtime/cgocall.go:128 +0x5e fp=0xc0003e85c8 sp=0xc0003e8590 pc=0x4039ee
net._C2func_getaddrinfo(0xc0003afa20, 0x0, 0xc000491d40, 0xc00000e478, 0x0, 0x0, 0x0)
        _cgo_gotypes.go:92 +0x55 fp=0xc0003e8600 sp=0xc0003e85c8 pc=0x615b95
net.cgoLookupIPCNAME.func1(0xc0003afa20, 0x0, 0xc000491d40, 0xc00000e478, 0x17, 0x17, 0x103e040)
        /opt/go/src/net/cgo_unix.go:149 +0x131 fp=0xc0003e8648 sp=0xc0003e8600 pc=0x61b2b1
net.cgoLookupIPCNAME(0xc0003af6a0, 0x16, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /opt/go/src/net/cgo_unix.go:149 +0x153 fp=0xc0003e8738 sp=0xc0003e8648 pc=0x617153
net.cgoIPLookup(0xc0003d4e40, 0xc0003af6a0, 0x16)
        /opt/go/src/net/cgo_unix.go:201 +0x4d fp=0xc0003e87c8 sp=0xc0003e8738 pc=0x61780d
runtime.goexit()
        /opt/go/src/runtime/asm_amd64.s:1333 +0x1 fp=0xc0003e87d0 sp=0xc0003e87c8 pc=0x45dc81
created by net.cgoLookupIP
        /opt/go/src/net/cgo_unix.go:211 +0xad

goroutine 1 [select]:
net.(*Resolver).LookupIPAddr(0x1f2ccc0, 0x1380620, 0xc000046090, 0xc0003af6a0, 0x16, 0xc0003af6b7, 0x4, 0x1b8c, 0x0, 0x0)
        /opt/go/src/net/lookup.go:227 +0x55f
net.(*Resolver).internetAddrList(0x1f2ccc0, 0x1380620, 0xc000046090, 0x120a1ae, 0x3, 0xc0003af6a0, 0x1b, 0x0, 0x0, 0x0, ...)
        /opt/go/src/net/ipsock.go:279 +0x614
net.(*Resolver).resolveAddrList(0x1f2ccc0, 0x1380620, 0xc000046090, 0x120cfc8, 0x6, 0x120a1ae, 0x3, 0xc0003af6a0, 0x1b, 0x0, ...)
        /opt/go/src/net/dial.go:202 +0x4fb
net.(*ListenConfig).Listen(0xc00056d008, 0x1380620, 0xc000046090, 0x120a1ae, 0x3, 0xc0003af6a0, 0x1b, 0xc00034c600, 0x30, 0xc000352700, ...)
        /opt/go/src/net/dial.go:591 +0xaa
net.Listen(0x120a1ae, 0x3, 0xc0003af6a0, 0x1b, 0x40d1d8, 0x7fe5b4fed6c0, 0x0, 0x1)
        /opt/go/src/net/dial.go:674 +0x7e
github.com/hyperledger/fabric/core/comm.NewGRPCServer(0xc0003af6a0, 0x1b, 0x0, 0xc000188d80, 0xc00034c600, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /opt/gopath/src/github.com/hyperledger/fabric/core/comm/server.go:50 +0xd8
github.com/hyperledger/fabric/peer/node.createChaincodeServer(0x1378da0, 0xc00000e400, 0xc000042102, 0x16, 0x0, 0x1, 0x20, 0x2, 0xc00042fc80)
        /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:533 +0x482
github.com/hyperledger/fabric/peer/node.startChaincodeServer(0xc000042102, 0x16, 0x13650e0, 0xc000537420, 0xc00053a360, 0xc00053e400, 0x136bfa0, 0xc0004888a0, 0xc000457710, 0x2, ...)
        /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:731 +0x32f
github.com/hyperledger/fabric/peer/node.serve(0x1f51e20, 0x0, 0x0, 0x0, 0x0)
        /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:255 +0xd50
github.com/hyperledger/fabric/peer/node.glob..func1(0x1e3fbe0, 0x1f51e20, 0x0, 0x0, 0x0, 0x0)
        /opt/gopath/src/github.com/hyperledger/fabric/peer/node/start.go:119 +0x9c
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).execute(0x1e3fbe0, 0x1f51e20, 0x0, 0x0, 0x1e3fbe0, 0x1f51e20)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:762 +0x473
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x1e40300, 0x8, 0x0, 0x1e3f4c0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
github.com/hyperledger/fabric/vendor/github.com/spf13/cobra.(*Command).Execute(0x1e40300, 0xc0003f3f40, 0x1)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/spf13/cobra/command.go:800 +0x2b
main.main()
        /opt/gopath/src/github.com/hyperledger/fabric/peer/main.go:53 +0x2f7

goroutine 8 [syscall]:
os/signal.signal_recv(0x0)
        /opt/go/src/runtime/sigqueue.go:139 +0x9c
os/signal.loop()
        /opt/go/src/os/signal/signal_unix.go:23 +0x22
created by os/signal.init.0
        /opt/go/src/os/signal/signal_unix.go:29 +0x41

goroutine 20 [IO wait]:
internal/poll.runtime_pollWait(0x7fe5b0d7df00, 0x72, 0x0)
        /opt/go/src/runtime/netpoll.go:173 +0x66
internal/poll.(*pollDesc).wait(0xc0004efd98, 0x72, 0xc000118000, 0x0, 0x0)
        /opt/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a
internal/poll.(*pollDesc).waitRead(0xc0004efd98, 0xffffffffffffff00, 0x0, 0x0)
        /opt/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Accept(0xc0004efd80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /opt/go/src/internal/poll/fd_unix.go:384 +0x1a0
net.(*netFD).accept(0xc0004efd80, 0x7fe5b4fed000, 0x0, 0xc00005aeb0)
        /opt/go/src/net/fd_unix.go:238 +0x42
net.(*TCPListener).accept(0xc00000e7b8, 0xc00005aeb8, 0x40d1d8, 0x30)
        /opt/go/src/net/tcpsock_posix.go:139 +0x2e
net.(*TCPListener).Accept(0xc00000e7b8, 0x11456e0, 0xc000393770, 0x1048300, 0x1e32170)
        /opt/go/src/net/tcpsock.go:260 +0x47
net/http.(*Server).Serve(0xc000463040, 0x137f620, 0xc00000e7b8, 0x0, 0x0)
        /opt/go/src/net/http/server.go:2826 +0x22f
created by github.com/hyperledger/fabric/core/operations.(*System).Start
        /opt/gopath/src/github.com/hyperledger/fabric/core/operations/system.go:121 +0x1a3

goroutine 21 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc0004867e0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 22 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e2b60)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 23 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e2b60)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 24 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e2b60)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 25 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e2b60)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 26 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc0004860e0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 27 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e2000)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 28 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e2000)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 29 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e2000)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 30 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e2000)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 31 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc0004861c0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 10 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e21a0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 11 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e21a0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 12 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e21a0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 13 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e21a0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 14 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc000486700)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 33 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e2d00)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 34 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e2d00)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 35 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e2d00)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 36 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e2d00)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 37 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc000486380)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 38 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e2ea0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 39 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e2ea0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 40 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e2ea0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 41 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e2ea0)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 42 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.(*BufferPool).drain(0xc000486b60)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:206 +0x12a
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util.NewBufferPool
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/util/buffer_pool.go:237 +0x177

goroutine 15 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).compactionError(0xc0004e3040)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:90 +0xd3
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:142 +0x40c

goroutine 16 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mpoolDrain(0xc0004e3040)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_state.go:101 +0xe7
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:143 +0x42e

goroutine 50 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).tCompaction(0xc0004e3040)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:834 +0x331
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:149 +0x58c

goroutine 51 [select]:
github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc0004e3040)
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db_compaction.go:762 +0x12e
created by github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb.openDB
        /opt/gopath/src/github.com/hyperledger/fabric/vendor/github.com/syndtr/goleveldb/leveldb/db.go:150 +0x5ae

goroutine 60 [IO wait]:
internal/poll.runtime_pollWait(0x7fe5b0d7de30, 0x72, 0xc00044ea88)
        /opt/go/src/runtime/netpoll.go:173 +0x66
internal/poll.(*pollDesc).wait(0xc0004eee18, 0x72, 0xffffffffffffff00, 0x1369320, 0x1e62ed0)
        /opt/go/src/internal/poll/fd_poll_runtime.go:85 +0x9a
internal/poll.(*pollDesc).waitRead(0xc0004eee18, 0xc00057a000, 0x1000, 0x1000)
        /opt/go/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Read(0xc0004eee00, 0xc00057a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        /opt/go/src/internal/poll/fd_unix.go:169 +0x179
net.(*netFD).Read(0xc0004eee00, 0xc00057a000, 0x1000, 0x1000, 0xc00044eb70, 0x45a870, 0xc000000300)
        /opt/go/src/net/fd_unix.go:202 +0x4f
net.(*conn).Read(0xc000122740, 0xc00057a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        /opt/go/src/net/net.go:177 +0x68
net/http.(*persistConn).Read(0xc000444000, 0xc00057a000, 0x1000, 0x1000, 0xc00044ec70, 0x405a35, 0xc0000908a0)
        /opt/go/src/net/http/transport.go:1497 +0x75
bufio.(*Reader).fill(0xc0001af2c0)
        /opt/go/src/bufio/bufio.go:100 +0x106
bufio.(*Reader).Peek(0xc0001af2c0, 0x1, 0x0, 0x0, 0x1, 0xc000090e40, 0x0)
        /opt/go/src/bufio/bufio.go:132 +0x3f
net/http.(*persistConn).readLoop(0xc000444000)
        /opt/go/src/net/http/transport.go:1645 +0x1a2
created by net/http.(*Transport).dialConn
        /opt/go/src/net/http/transport.go:1338 +0x941

goroutine 61 [select]:
net/http.(*persistConn).writeLoop(0xc000444000)
        /opt/go/src/net/http/transport.go:1885 +0x113
created by net/http.(*Transport).dialConn
        /opt/go/src/net/http/transport.go:1339 +0x966

goroutine 48 [select]:
net.cgoLookupIP(0x13805e0, 0xc0000837c0, 0xc0003af6a0, 0x16, 0x0, 0x11, 0xc000163850, 0xa, 0x0, 0x0)
        /opt/go/src/net/cgo_unix.go:212 +0x17b
net.(*Resolver).lookupIP(0x1f2ccc0, 0x13805e0, 0xc0000837c0, 0xc0003af6a0, 0x16, 0x0, 0xc00014a300, 0xc000082080, 0xc0000495c0, 0x103e040)
        /opt/go/src/net/lookup_unix.go:95 +0x166
net.(*Resolver).lookupIP-fm(0x13805e0, 0xc0000837c0, 0xc0003af6a0, 0x16, 0x42bd62, 0x8, 0xc000082080, 0x103e040, 0xc0003e86a0)
        /opt/go/src/net/lookup.go:207 +0x56
net.glob..func1(0x13805e0, 0xc0000837c0, 0xc0003d60f0, 0xc0003af6a0, 0x16, 0x7, 0xc000163872, 0x9, 0xc000163f2a, 0x6)
        /opt/go/src/net/hook.go:19 +0x52
net.(*Resolver).LookupIPAddr.func1(0x0, 0x0, 0x0, 0x0)
        /opt/go/src/net/lookup.go:221 +0xd8
internal/singleflight.(*Group).doCall(0x1f2ccd0, 0xc000455d60, 0xc0003af6a0, 0x16, 0xc000491cb0)
        /opt/go/src/internal/singleflight/singleflight.go:95 +0x2e
created by internal/singleflight.(*Group).DoChan
        /opt/go/src/internal/singleflight/singleflight.go:88 +0x2a0

goroutine 66 [runnable]:
net/http.setRequestCancel.func3(0x0, 0xc0003cbad0, 0xc0004dedc0, 0xc0005387b8, 0xc000090de0)
        /opt/go/src/net/http/client.go:321 +0xcf
created by net/http.setRequestCancel
        /opt/go/src/net/http/client.go:320 +0x24e

OS: freshly installed Ubuntu 18.04.1 LTS.

$ node --version
v8.15.0
$ npm --version
6.4.1
$ yo --version
2.0.5
$ docker --version
Docker version 18.09.2, build 6247962
$ docker-compose --version
docker-compose version 1.13.0, build 1719ceb

Sorry, my mistake. When I updated the docker-compose it is worked.

Thanks for updating the fix! Glad it worked!

@sajozsattila
Can you tell me which version you're using for docker-compose? I also cannot start it

I too get the same error ,I have windows enterprise version ,Docker version 19.03.4, build 9013bf5,
docker-compose version 1.24.1, build 4667896b