Lab 3: Failed verifying proposal creator verify local MSP principal
Hi, after launching the network with peer0 & 1, in addition to two containers with couchDB, I received the following error when trying to fetch genesis block from allarewelcome channel for both peer0 & peer1.
"/opt/gopath/src/github.com/hyperledger/fabric# peer channel join -b allarewelcome.block
2019-07-03 11:57:52.200 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: proposal failed (err: bad proposal response 500: access denied for [JoinChain][allarewelcome]: [Failed verifying that proposal's creator satisfies local MSP principal during channelless check policy with policy [Admins]: [This identity is not an admin]])"
However, everything works after I go into each peer container and export path: "export CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp"
I believe the above command give both my peers the admin rights.
My question is, I already did the above command in Lab2 for peer1 & peer0 during bootstrap. I did reset the network, so is that why I have to write in the command again? Do you always have to write this manually, or can I hard code it in somewhere?
Thanks!
Comments
-
Hi, NK. after solving this identification problem. when i try the command below:
peer channel join -b allarewelcome.blocki got this error
Error: Failed sending proposal, got rpc error: code = Unavailable desc = transport is closing
Can you help me out?
Thanks0 -
@eecszc said:
Hi, NK. after solving this identification problem. when i try the command below:peer channel join -b allarewelcome.blocki got this error
Error: Failed sending proposal, got rpc error: code = Unavailable desc = transport is closing
Can you help me out?
ThanksHi @eecszc
Go into the peer container and check your env variables by typing printenv
Then your variable should be CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp
If that is not the case, set it to admin by: export CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp
If this not help, please check you peer log after the error. By typing docker logs --details _insert_peer_container_id
It migth be that your peer images are not compatible with the new couchdb version. Please verify that your hyperledger images are the newst version, version 4.4. If they are at version 4.0 it will not work.
A quick way to check your images version is: docker images -a
If your images are too old, please remove them and download the newest versions.
Hope this helps.
0
Categories
- All Categories
- 176 LFX Mentorship
- 176 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 3 Cloud & Containers Training
- 1 Cybersecurity Training
- 1 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 1 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 950 Programming and Development
- 310 Kernel Development
- 622 Software Development
- 983 Software
- 375 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)