Last active
June 6, 2020 13:19
-
-
Save MXmaster2s/ffd460a314f01560a076bd5f513002af to your computer and use it in GitHub Desktop.
fabricNetwork.sh generate gives this error and I cannot delete the crypto-config files because the half-baked files are now permissioned to root user :/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generating certs and genesis block for channel 'certificationchannel' with CLI timeout of '15' seconds and CLI delay of '5' seconds and chaincode version '1.1' | |
Continue? [Y/n] y | |
proceeding ... | |
/home/rohit/workspace/certification-network/network/bin/cryptogen | |
########################################################## | |
##### Generate certificates using cryptogen tool ######### | |
########################################################## | |
rm: cannot remove 'crypto-config/ordererOrganizations/certification-network.com/orderers/orderer.certification-network.com/msp/keystore': Permission denied | |
rm: cannot remove 'crypto-config/ordererOrganizations/certification-network.com/orderers/orderer.certification-network.com/tls': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/upgrad.certification-network.com/ca': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/upgrad.certification-network.com/peers/peer1.upgrad.certification-network.com/msp/keystore': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/upgrad.certification-network.com/peers/peer1.upgrad.certification-network.com/tls': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/upgrad.certification-network.com/peers/peer0.upgrad.certification-network.com/msp/keystore': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/upgrad.certification-network.com/peers/peer0.upgrad.certification-network.com/tls': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/mhrd.certification-network.com/ca': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/mhrd.certification-network.com/peers/peer1.mhrd.certification-network.com/msp/keystore': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/mhrd.certification-network.com/peers/peer1.mhrd.certification-network.com/tls': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/mhrd.certification-network.com/peers/peer0.mhrd.certification-network.com/msp/keystore': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/mhrd.certification-network.com/peers/peer0.mhrd.certification-network.com/tls': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/iit.certification-network.com/ca': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/iit.certification-network.com/peers/peer0.iit.certification-network.com/msp/keystore': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/iit.certification-network.com/peers/peer0.iit.certification-network.com/tls': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/iit.certification-network.com/peers/peer1.iit.certification-network.com/msp/keystore': Permission denied | |
rm: cannot remove 'crypto-config/peerOrganizations/iit.certification-network.com/peers/peer1.iit.certification-network.com/tls': Permission denied | |
+ cryptogen generate --config=./crypto-config.yaml | |
iit.certification-network.com | |
2020-06-06 18:42:55.507 IST [bccsp_sw] storePrivateKey -> ERRO 001 Failed storing private key [6730741688242a96b9b97dc2c12b0781b6e5d03d5379af2e8e148339bfc60954]: [open crypto-config/peerOrganizations/iit.certification-network.com/ca/6730741688242a96b9b97dc2c12b0781b6e5d03d5379af2e8e148339bfc60954_sk: permission denied] | |
Error generating signCA for org iit.certification-network.com: | |
Failed storing key [ECDSAP256]: Failed storing ECDSA private key [open crypto-config/peerOrganizations/iit.certification-network.com/ca/6730741688242a96b9b97dc2c12b0781b6e5d03d5379af2e8e148339bfc60954_sk: permission denied] | |
+ res=1 | |
+ set +x | |
Failed to generate certificates... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment