Closed Sullson closed 2 years ago
Tried again after last update and clean installation - still the same error but this time it seems that install process did not stop on first peer but the second one:
Deploying chaincode "asset-transfer-basic":
✅ - Packaging chaincode folder chaincode/asset-transfer-basic ...
✅ - Transferring chaincode archive to org1 ...
✅ - Installing chaincode for org org1 peer peer1 ...
✅ - Installing chaincode for org org1 peer peer2 ...
☠️
what is interesting, both peers have exactly the same logs around the installation, but still the process of "./network chaincode deploy" stopped after second one this time:
Peer1:
2021-12-23 13:39:47.757 UTC 0178 DEBU [core.comm] ServerHandshake -> Server TLS handshake completed in 1.349586ms server=PeerServer remoteaddress=10.244.0.22:58540
2021-12-23 13:39:47.760 UTC 0179 DEBU [core.comm] ServerHandshake -> Server TLS handshake completed in 1.082969ms server=PeerServer remoteaddress=10.244.0.22:58542
2021-12-23 13:39:47.761 UTC 017a DEBU [endorser] ProcessProposal -> request from 10.244.0.22:58540
2021-12-23 13:39:47.761 UTC 017b DEBU [endorser] Validate -> creator is valid channel= txID=b152be6f mspID=Org1MSP
2021-12-23 13:39:47.761 UTC 017c DEBU [endorser] Validate -> signature is valid channel= txID=b152be6f mspID=Org1MSP
2021-12-23 13:39:47.761 UTC 017d DEBU [chaincode] CheckInvocation -> [b152be6f] getting chaincode data for _lifecycle on channel
2021-12-23 13:39:47.761 UTC 017e DEBU [chaincode] Execute -> Entry
2021-12-23 13:39:47.761 UTC 017f DEBU [aclmgmt] CheckACL -> Applying default access policy for resource channel= policy=Admins resource=_lifecycle/InstallChaincode
2021-12-23 13:39:47.762 UTC 0180 DEBU [lifecycle] InstallChaincode -> received invocation of InstallChaincode for install package 1f8b0800237cc46100034bce4f49d52b492cd24baf62a015300002331313300d04e8b4...
2021-12-23 13:39:47.762 UTC 0181 DEBU [ccprovider] MetadataAsTarEntries -> Created metadata tar
2021-12-23 13:39:47.767 UTC 0182 INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Detect command=detect
2021-12-23 13:39:47.767 UTC 0183 INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Type detected as ccaas command=detect
2021-12-23 13:39:47.771 UTC 0184 INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Build command=build
2021-12-23 13:39:47.771 UTC 0185 INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Build phase completed command=build
2021-12-23 13:39:47.773 UTC 0186 INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Release command=release
2021-12-23 13:39:47.773 UTC 0187 INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Release phase completed command=release
2021-12-23 13:39:47.774 UTC 0188 DEBU [lifecycle] ProcessInstallEvent -> ProcessInstallEvent() - localChaincode = &{basic_1.0:a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f ccaas basic_1.0}
2021-12-23 13:39:47.774 UTC 0189 DEBU [chaincode.externalbuilder] PackageMetadata -> Walking package release dir '/var/hyperledger/fabric/data/org1-peer1.org1.example.com/externalbuilder/builds/basic_1.0-a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f/release'
2021-12-23 13:39:47.775 UTC 018a DEBU [lifecycle] Work -> skipping build of chaincode 'basic_1.0:a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f' as it is already in progress
2021-12-23 13:39:47.775 UTC 018b DEBU [chaincode.externalbuilder] func1 -> Adding file '/var/hyperledger/fabric/data/org1-peer1.org1.example.com/externalbuilder/builds/basic_1.0-a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f/release' to tar with header name 'META-INF/'
2021-12-23 13:39:47.775 UTC 018c DEBU [chaincode.externalbuilder] func1 -> Adding file '/var/hyperledger/fabric/data/org1-peer1.org1.example.com/externalbuilder/builds/basic_1.0-a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f/release/chaincode' to tar with header name 'META-INF/chaincode/'
2021-12-23 13:39:47.775 UTC 018d DEBU [chaincode.externalbuilder] func1 -> Adding file '/var/hyperledger/fabric/data/org1-peer1.org1.example.com/externalbuilder/builds/basic_1.0-a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f/release/chaincode/server' to tar with header name 'META-INF/chaincode/server/'
2021-12-23 13:39:47.775 UTC 018e DEBU [chaincode.externalbuilder] func1 -> Adding file '/var/hyperledger/fabric/data/org1-peer1.org1.example.com/externalbuilder/builds/basic_1.0-a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f/release/chaincode/server/connection.json' to tar with header name 'META-INF/chaincode/server/connection.json'
2021-12-23 13:39:47.775 UTC 018f INFO [lifecycle] InstallChaincode -> Successfully installed chaincode with package ID 'basic_1.0:a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f'
2021-12-23 13:39:47.775 UTC 0190 DEBU [chaincode] handleMessage -> [b152be6f] Fabric side handling ChaincodeMessage of type: COMPLETED in state ready
2021-12-23 13:39:47.775 UTC 0191 DEBU [chaincode] Notify -> [b152be6f] notifying Txid:b152be6f83f3d366122863568831d88a9265933b548cf6667f829604d4ae18c6, channelID:
2021-12-23 13:39:47.775 UTC 0192 DEBU [chaincode] Execute -> Exit
2021-12-23 13:39:47.775 UTC 0193 INFO [endorser] callChaincode -> finished chaincode: _lifecycle duration: 14ms channel= txID=b152be6f
2021-12-23 13:39:47.775 UTC 0194 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=10.244.0.22:58540 grpc.code=OK grpc.call_duration=15.023557ms
Peer 2:
2021-12-23 13:39:47.977 UTC 016d DEBU [core.comm] ServerHandshake -> Server TLS handshake completed in 1.281482ms server=PeerServer remoteaddress=10.244.0.22:60912
2021-12-23 13:39:47.980 UTC 016e DEBU [core.comm] ServerHandshake -> Server TLS handshake completed in 2.481458ms server=PeerServer remoteaddress=10.244.0.22:60914
2021-12-23 13:39:47.982 UTC 016f DEBU [endorser] ProcessProposal -> request from 10.244.0.22:60912
2021-12-23 13:39:47.982 UTC 0170 DEBU [endorser] Validate -> creator is valid channel= txID=2f5e2833 mspID=Org1MSP
2021-12-23 13:39:47.982 UTC 0171 DEBU [endorser] Validate -> signature is valid channel= txID=2f5e2833 mspID=Org1MSP
2021-12-23 13:39:47.982 UTC 0172 DEBU [chaincode] CheckInvocation -> [2f5e2833] getting chaincode data for _lifecycle on channel
2021-12-23 13:39:47.982 UTC 0173 DEBU [chaincode] Execute -> Entry
2021-12-23 13:39:47.983 UTC 0174 DEBU [aclmgmt] CheckACL -> Applying default access policy for resource channel= policy=Admins resource=_lifecycle/InstallChaincode
2021-12-23 13:39:47.983 UTC 0175 DEBU [lifecycle] InstallChaincode -> received invocation of InstallChaincode for install package 1f8b0800237cc46100034bce4f49d52b492cd24baf62a015300002331313300d04e8b4...
2021-12-23 13:39:47.983 UTC 0176 DEBU [ccprovider] MetadataAsTarEntries -> Created metadata tar
2021-12-23 13:39:47.990 UTC 0177 INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Detect command=detect
2021-12-23 13:39:47.990 UTC 0178 INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Type detected as ccaas command=detect
2021-12-23 13:39:47.993 UTC 0179 INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Build command=build
2021-12-23 13:39:47.993 UTC 017a INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Build phase completed command=build
2021-12-23 13:39:47.996 UTC 017b INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Release command=release
2021-12-23 13:39:47.996 UTC 017c INFO [chaincode.externalbuilder.ccaas_builder] waitForExit -> ::Release phase completed command=release
2021-12-23 13:39:47.997 UTC 017d DEBU [lifecycle] ProcessInstallEvent -> ProcessInstallEvent() - localChaincode = &{basic_1.0:a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f ccaas basic_1.0}
2021-12-23 13:39:47.997 UTC 017e DEBU [lifecycle] Work -> skipping build of chaincode 'basic_1.0:a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f' as it is already in progress
2021-12-23 13:39:47.997 UTC 017f DEBU [chaincode.externalbuilder] PackageMetadata -> Walking package release dir '/var/hyperledger/fabric/data/org1-peer2.org1.example.com/externalbuilder/builds/basic_1.0-a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f/release'
2021-12-23 13:39:47.997 UTC 0180 DEBU [chaincode.externalbuilder] func1 -> Adding file '/var/hyperledger/fabric/data/org1-peer2.org1.example.com/externalbuilder/builds/basic_1.0-a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f/release' to tar with header name 'META-INF/'
2021-12-23 13:39:47.998 UTC 0181 DEBU [chaincode.externalbuilder] func1 -> Adding file '/var/hyperledger/fabric/data/org1-peer2.org1.example.com/externalbuilder/builds/basic_1.0-a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f/release/chaincode' to tar with header name 'META-INF/chaincode/'
2021-12-23 13:39:47.998 UTC 0182 DEBU [chaincode.externalbuilder] func1 -> Adding file '/var/hyperledger/fabric/data/org1-peer2.org1.example.com/externalbuilder/builds/basic_1.0-a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f/release/chaincode/server' to tar with header name 'META-INF/chaincode/server/'
2021-12-23 13:39:47.998 UTC 0183 DEBU [chaincode.externalbuilder] func1 -> Adding file '/var/hyperledger/fabric/data/org1-peer2.org1.example.com/externalbuilder/builds/basic_1.0-a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f/release/chaincode/server/connection.json' to tar with header name 'META-INF/chaincode/server/connection.json'
2021-12-23 13:39:47.998 UTC 0184 INFO [lifecycle] InstallChaincode -> Successfully installed chaincode with package ID 'basic_1.0:a52148c6e35eb24e2dd55c0bfa5f8d7cc29a12547c214424ae3298329228a42f'
2021-12-23 13:39:47.998 UTC 0185 DEBU [chaincode] handleMessage -> [2f5e2833] Fabric side handling ChaincodeMessage of type: COMPLETED in state ready
2021-12-23 13:39:47.998 UTC 0186 DEBU [chaincode] Notify -> [2f5e2833] notifying Txid:2f5e28338a0ee74dfdfd73669c0ccfba0deb28191cc5e01e20cd7e5a4508f0d5, channelID:
2021-12-23 13:39:47.998 UTC 0187 DEBU [chaincode] Execute -> Exit
2021-12-23 13:39:47.998 UTC 0188 INFO [endorser] callChaincode -> finished chaincode: _lifecycle duration: 15ms channel= txID=2f5e2833
2021-12-23 13:39:47.998 UTC 0189 INFO [comm.grpc.server] 1 -> unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=10.244.0.22:60912 grpc.code=OK grpc.call_duration=16.597258ms
Hi @Sullson
The network script still could use some work around reporting the output from a failed command - as you found it does not always report the underlying error when one of the routines or k8s invocations crashes behind the scenes. ☠️
There may have been some issues a couple of weeks ago related to the embedded / default chaincode builder, but these should have been sorted out with the 2.4.1 release. Can you post the tail end of the network-debug.log
file? (This will include all of the output from the shell commands running behind the scenes. The ☠️ means that one of the sub-commands executed with a non-zero error.)
Also it looks like the chaincode installed OK on both peers... I think this may be an error up in the ./network script, NOT in the remote peer command.
Is there any chance you do NOT have jq
installed on your machine? This is new utility pulled into the script and I don't believe it's being checked in the pre-requisites. I think the program is crashing on your machine here:
which jq
which shasum
Hey @jkneubuh
that's it, amazing catch, thanks a lot!
I installed all requirements (docker, kind, kubectl) on clean Ubuntu 18.04 and jq was the only thing missing (things like ca-certificates for example were docker requirements so they were in place).
It might be benefitial to just add theese into main README file and thanks to that spare some time on ./network logging ;)
Thanks again!
Sull
Hey,
so I installed and verified everything according to "Quickstart", but it seems that deploy command did not finish:
When trying to invoke the chaincode I get following message:
I verified pod's logs:
ok, seems its not installed, but when I checked for logs after the deployment, it seems like chaincode was installed properly:
so I checked with "peer" command if chaincode was installed and here is the result:
Seems that maybe something is not ok with certificates, I had no error though and it seems all pods are deployed:
To be honest I have no idea how to continue from that, would be awesome if someone could give me a hand. I am performing this install on Ubuntu 18 on Azure VM B2ms - 2vcpu, 8RAM (planning to go for AKS but for now I use local "kind" k8s).
Cheers, Sullson