Failed to install chaincode on local network - error "This identity is not an admin"
See original GitHub issueI am following the guide and use local network, I create the admin cert by fabric-sample/fabcar’s 3 scripts and it works right.
The version I am using: Node 6.9.5 Hyperledger: latest I think, as I setup it from the prerequisites tutorial
But when I try to install chain code, it gives me below error message.
Lius-MacBook-Pro:scripts jeremy$ node install_chaincode.js
info: Loaded config file /Users/jeremy/Programming/github/marbles/config/marbles_local.json
info: Loaded creds file /Users/jeremy/Programming/github/marbles/config/blockchain_creds_local.json
---------------------------------------
info: Lets install some chaincode - marbles v4
---------------------------------------
info: First we enroll
info: [fcw] Going to enroll with admin cert! peer_urls=[grpc://localhost:7051], channel_id=mychannel, uuid=marbles-Docker Compose Network-mychannel-fabric-peer-org1, orderer_url=grpc://localhost:7050, msp_id=Org1MSP
debug: added peer grpc://localhost:7051
debug: [fcw] Successfully got enrollment marbles-Docker Compose Network-mychannel-fabric-peer-org1
---------------------------------------
info: Now we install
---------------------------------------
debug: [fcw] Installing Chaincode
debug: [fcw] Sending install req targets=[grpc.http2.keepalive_time=300, grpc.keepalive_time_ms=300000, grpc.http2.keepalive_timeout=35, grpc.keepalive_timeout_ms=3500, grpc.primary_user_agent=grpc-node/1.10.0, _url=grpc://localhost:7051, addr=localhost:7051, , _request_timeout=90000, , _name=null], chaincodePath=marbles, chaincodeId=marbles, chaincodeVersion=v4
info: [packager/Golang.js]: packaging GOLANG from marbles
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: Authorization for INSTALL has been denied (error-Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]))
at new createStatusError (/Users/jeremy/Programming/github/marbles/node_modules/grpc/src/client.js:64:15)
at /Users/jeremy/Programming/github/marbles/node_modules/grpc/src/client.js:583:15
error: [fcw] Failed to obtain endorsement for transaction. code=2, , details=chaincode error (status: 500, message: Authorization for INSTALL has been denied (error-Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]))
error: [fcw] Error in install catch block object code=2, , details=chaincode error (status: 500, message: Authorization for INSTALL has been denied (error-Failed verifying that proposal's creatorsatisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]))
---------------------------------------
info: Install done. Errors: parsed=Blockchain network error - [This identity is not an admin])), raw=[code=2, , details=chaincode error (status: 500, message: Authorization for INSTALL has been denied (error-Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]))]
---------------------------------------
I tried to debug, and the certificate I get is the admin’s certification.
I am new to hyperledger, I don’t know why it complains the [This identity is not an admin])).
Issue Analytics
- State:
- Created 5 years ago
- Comments:38 (5 by maintainers)
Top Results From Across the Web
marbles,Failed to install chaincode on local network - error ...
I am following the guide and use local network I create the admin cert by fabric-sample/fabcar's 3 scripts and it works right. But...
Read more >Error using the local Playground | Hyperledger Composer
The error occurs if both the identity you are using to deploy the business network does not have network-level access control, and the...
Read more >Error while Approving chaincode for ORG.
I am creating a network using fabric 2.0. · As per the new lifecycle method, I am following as mentioned in the test-network....
Read more >Troubleshooting - IBM
This error occurs when the selected Channel Updater MSP ID on the Update channel panel is not an admin of the channel. On...
Read more >blockchain pandu - Hyperledger Fabric Real time Errors
Solutions: Kill docker images, stop fabric & start fabric again. Once it runs fine, then start deploying the business network card again. ./stopFabric.sh...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The same problem…
@kgamal i got the same problem, but i’ve fixed it.
please copy /home/ibmadmin/fabric-samples/fabcar/hfc-key-store to your home directory
$HOME/.hfc-key-store
then change
connection_profile_local.json
attrclient.credentialStore.path
value to$HOME/.hfc-key-store
.https://jira.hyperledger.org/browse/FAB-2593