Skip to content

Instantly share code, notes, and snippets.

@christo4ferris
Created November 2, 2016 12:44
Show Gist options
  • Save christo4ferris/f4027847f2e168898d4045963ac1cdbb to your computer and use it in GitHub Desktop.
Save christo4ferris/f4027847f2e168898d4045963ac1cdbb to your computer and use it in GitHub Desktop.
issues in build/UT
cbf$ make clean peer unit-tests
docker images -q hyperledger/fabric-ccenv | xargs -r docker rmi -f
xargs: illegal option -- r
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
[-L number] [-n number [-x]] [-P maxprocs] [-s size]
[utility [argument ...]]
make: [ccenv-image-clean] Error 1 (ignored)
(repeated for a number of similar commands)
...
Get:46 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python-texttable all 0.8.1-1 [7566 B]
Get:47 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-yaml amd64 3.11-3build1 [105 kB]
Get:48 http://archive.ubuntu.com/ubuntu xenial/universe amd64 docker-compose all 1.5.2-1 [76.8 kB]
Get:49 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 docker.io amd64 1.12.1-0ubuntu13~16.04.1 [10.6 MB]
Get:50 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-cffi-backend amd64 1.5.2-1ubuntu1 [58.1 kB]
Get:51 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-idna all 2.0-3 [35.1 kB]
Get:52 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-ipaddress all 1.0.16-1 [18.0 kB]
Get:53 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-pyasn1 all 0.1.9-1 [45.1 kB]
Get:54 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-cryptography amd64 1.2.3-1 [198 kB]
Get:55 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-openssl all 0.15.1-2build1 [84.1 kB]
Get:56 http://archive.ubuntu.com/ubuntu xenial/main amd64 python-ndg-httpsclient all 0.4.0-3 [25.1 kB]
Get:57 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ubuntu-fan all 0.9.1 [30.1 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 24.1 MB in 50s (475 kB/s)
Selecting previously unselected package udev.
(Reading database ... 22826 files and directories currently installed.)
Preparing to unpack .../udev_229-4ubuntu11_amd64.deb ...
Unpacking udev (229-4ubuntu11) ...
Selecting previously unselected package libnfnetlink0:amd64.
Preparing to unpack .../libnfnetlink0_1.0.1-3_amd64.deb ...
Unpacking libnfnetlink0:amd64 (1.0.1-3) ...
...
Successfully built c2210b2474fe
docker tag hyperledger/fabric-testenv hyperledger/fabric-testenv:x86_64-0.7.0-snapshot-1ff77ff
Running unit tests using hyperledger/fabric-peer:x86_64-0.7.0-snapshot-1ff77ff
Cleaning membership services folder
Obtaining list of tests to run..DONE!
Starting peer..DONE!
Running tests...
./scripts/goUnitTests.sh: line 45: gocov-xml: command not found
? github.com/hyperledger/fabric/bddtests/chaincode/go/table [no test files]
ok github.com/hyperledger/fabric/bddtests/syschaincode/noop 0.070s coverage: 71.0% of statements
? github.com/hyperledger/fabric/consensus [no test files]
? github.com/hyperledger/fabric/consensus/controller [no test files]
ok github.com/hyperledger/fabric/consensus/executor 0.071s coverage: 79.7% of statements
ok github.com/hyperledger/fabric/consensus/helper 0.042s coverage: 0.5% of statements
ok github.com/hyperledger/fabric/consensus/helper/persist 0.016s coverage: 0.0% of statements
? github.com/hyperledger/fabric/consensus/noops [no test files]
ok github.com/hyperledger/fabric/consensus/pbft 72.448s coverage: 77.3% of statements
ok github.com/hyperledger/fabric/consensus/util 0.469s coverage: 88.9% of statements
ok github.com/hyperledger/fabric/consensus/util/events 0.218s coverage: 91.2% of statements
ok github.com/hyperledger/fabric/core 0.051s coverage: 3.3% of statements
22:32:02.698 [chaincode] NewChaincodeSupport -> INFO 001 Chaincode support using peerAddress: 0.0.0.0:21212
getting deployment spec for chaincode spec: type:GOLANG chaincodeID:<path:"github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example01" > ctorMsg:<args:"init" args:"a" args:"100" args:"b" args:"200" >
22:32:02.708 [container] WriteGopathSrc -> INFO 002 rootDirectory = /opt/gopath/src
22:32:02.708 [container] WriteFolderToTarPackage -> INFO 003 rootDirectory = /opt/gopath/src
22:32:39.563 [state] loadConfig -> INFO 004 Loading configurations...
22:32:39.563 [state] loadConfig -> INFO 005 Configurations loaded. stateImplName=[buckettree], stateImplConfigs=map[numBuckets:%!s(int=1000003) maxGroupingAtEachLevel:%!s(int=5) bucketCacheSize:%!s(int=100)], deltaHistorySize=[500]
22:32:39.563 [state] NewState -> INFO 006 Initializing state implementation [buckettree]
22:32:39.563 [buckettree] initConfig -> INFO 007 configs passed during initialization = map[string]interface {}{"numBuckets":1000003, "maxGroupingAtEachLevel":5, "bucketCacheSize":100}
22:32:39.563 [buckettree] initConfig -> INFO 008 Initializing bucket tree state implemetation with configurations &{maxGroupingAtEachLevel:5 lowestLevel:9 levelToNumBucketsMap:map[4:321 1:3 0:1 6:8001 8:200001 7:40001 5:1601 3:65 2:13 9:1000003] hashFunc:0x93d600}
22:32:39.564 [buckettree] newBucketCache -> INFO 009 Constructing bucket-cache with max bucket cache size = [100] MBs
22:32:39.564 [buckettree] loadAllBucketNodesFromDB -> INFO 00a Loaded buckets data in cache. Total buckets in DB = [0]. Total cache size:=0
22:32:39.569 [dockercontroller] deployImage -> ERRO 00b Error building images: dial unix /var/run/docker.sock: connect: no such file or directory
22:32:39.569 [dockercontroller] deployImage -> ERRO 00c Image Output:
...
basically all of the chaincode tests fail.
f74d6612ed120edf69690897322b6800f54e8de42767c4742ef6e65e62e7a8a17fcee73973538a4c5f7e0f2918daeaf4b7242fd: dial unix /var/run/docker.sock: connect: no such file or directory
--- FAIL: TestChaincodeQueryChaincodeWithSec (46.38s)
db_test_exports.go:47: Creating testDB
exectransaction_test.go:1291: Error executing test Error initializing chaincode 295694cfa6a6ad44bc25ce633f74d6612ed120edf69690897322b6800f54e8de42767c4742ef6e65e62e7a8a17fcee73973538a4c5f7e0f2918daeaf4b7242fd(Error deploying chaincode: Error starting container: Post http://unix.sock/containers/create?name=dev-jdoe-295694cfa6a6ad44bc25ce633f74d6612ed120edf69690897322b6800f54e8de42767c4742ef6e65e62e7a8a17fcee73973538a4c5f7e0f2918daeaf4b7242fd: dial unix /var/run/docker.sock: connect: no such file or directory)
22:40:00.384 [chaincode] NewChaincodeSupport -> INFO 074 Chaincode support using peerAddress: 0.0.0.0:21212
getting deployment spec for chaincode spec: type:GOLANG chaincodeID:<path:"github.com/hyperledger/fabric/examples/chaincode/go/map" > ctorMsg:<args:"init" >
22:40:00.393 [container] WriteGopathSrc -> INFO 075 rootDirectory = /opt/gopath/src
22:40:00.393 [container] WriteFolderToTarPackage -> INFO 076 rootDirectory = /opt/gopath/src
22:40:37.783 [dockercontroller] deployImage -> ERRO 077 Error building images: dial unix /var/run/docker.sock: connect: no such file or directory
22:40:37.786 [dockercontroller] deployImage -> ERRO 078 Image Output:
********************
********************
22:40:37.790 [dockercontroller] Start -> ERRO 079 start-could not recreate container Post http://unix.sock/containers/create?name=dev-jdoe-e357babe9912ec4a91183f3fbcc452dd5c935a68cd18a48d9ef2d5d250643503d820c9c926d8f7e5d3272fa4e3d5651ec22a0ee01a1a797c007a6ee4c7d02ceb: dial unix /var/run/docker.sock: connect: no such file or directory
22:40:37.790 [chaincode] Launch -> ERRO 07a launchAndWaitForRegister failed Error starting container: Post http://unix.sock/containers/create?name=dev-jdoe-e357babe9912ec4a91183f3fbcc452dd5c935a68cd18a48d9ef2d5d250643503d820c9c926d8f7e5d3272fa4e3d5651ec22a0ee01a1a797c007a6ee4c7d02ceb: dial unix /var/run/docker.sock: connect: no such file or directory
--- FAIL: TestRangeQuery (39.71s)
db_test_exports.go:47: Creating testDB
exectransaction_test.go:1348: Error initializing chaincode e357babe9912ec4a91183f3fbcc452dd5c935a68cd18a48d9ef2d5d250643503d820c9c926d8f7e5d3272fa4e3d5651ec22a0ee01a1a797c007a6ee4c7d02ceb(Error deploying chaincode: Error starting container: Post http://unix.sock/containers/create?name=dev-jdoe-e357babe9912ec4a91183f3fbcc452dd5c935a68cd18a48d9ef2d5d250643503d820c9c926d8f7e5d3272fa4e3d5651ec22a0ee01a1a797c007a6ee4c7d02ceb: dial unix /var/run/docker.sock: connect: no such file or directory)
22:40:40.081 [chaincode] NewChaincodeSupport -> INFO 07b Chaincode support using peerAddress: 0.0.0.0:21212
getting deployment spec for chaincode spec: type:GOLANG chaincodeID:<path:"github.com/hyperledger/fabric/examples/chaincode/go/eventsender" > ctorMsg:<args:"init" >
22:40:40.094 [container] WriteGopathSrc -> INFO 07c rootDirectory = /opt/gopath/src
22:40:40.094 [container] WriteFolderToTarPackage -> INFO 07d rootDirectory = /opt/gopath/src
22:41:17.311 [dockercontroller] deployImage -> ERRO 07e Error building images: dial unix /var/run/docker.sock: connect: no such file or directory
22:41:17.311 [dockercontroller] deployImage -> ERRO 07f Image Output:
********************
********************
22:41:17.317 [dockercontroller] Start -> ERRO 080 start-could not recreate container Post http://unix.sock/containers/create?name=dev-jdoe-8608f61467c8b122260e1f5e90868061ff82425c758c0221552ba50ed071ab599e240fff13e6137b51c6654dfe13e7960844b7b89ddb198d12bb0541e0838c33: dial unix /var/run/docker.sock: connect: no such file or directory
22:41:17.317 [chaincode] Launch -> ERRO 081 launchAndWaitForRegister failed Error starting container: Post http://unix.sock/containers/create?name=dev-jdoe-8608f61467c8b122260e1f5e90868061ff82425c758c0221552ba50ed071ab599e240fff13e6137b51c6654dfe13e7960844b7b89ddb198d12bb0541e0838c33: dial unix /var/run/docker.sock: connect: no such file or directory
--- FAIL: TestGetEvent (39.53s)
db_test_exports.go:47: Creating testDB
exectransaction_test.go:1417: Error initializing chaincode 8608f61467c8b122260e1f5e90868061ff82425c758c0221552ba50ed071ab599e240fff13e6137b51c6654dfe13e7960844b7b89ddb198d12bb0541e0838c33(Error deploying chaincode: Error starting container: Post http://unix.sock/containers/create?name=dev-jdoe-8608f61467c8b122260e1f5e90868061ff82425c758c0221552ba50ed071ab599e240fff13e6137b51c6654dfe13e7960844b7b89ddb198d12bb0541e0838c33: dial unix /var/run/docker.sock: connect: no such file or directory)
FAIL
coverage: 13.8% of statements
FAIL github.com/hyperledger/fabric/core/chaincode 557.014s
error: exit status 1
Stopping peer..
make: *** [unit-test] Error 127
cbf$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment