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
- 179 LFX Mentorship
- 179 LFX Mentorship: Linux Kernel
- 776 Linux Foundation IT Professional Programs
- 384 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 76 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 103 Cloud Native Developer IT Professional Program
- 7.7K Training Courses & Learning Paths
- 21 AI & ML Training
- 2 Blockchain & Decentralized Identity Training
- 49 Cloud & Containers Training
- 7 Cybersecurity Training
- 5 DevOps & Site-Reliability Training
- 3 Linux Kernel Development Training
- 3 Networking Training
- 2 Open Source Best Practice Training
- 8 System Administration Training
- 1 System Engineering Training
- 6 Web & Application Development Training
- 798 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 92 Storage
- 776 Linux Distributions
- 83 Debian
- 68 Fedora
- 25 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 32 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 473 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 104 Linux Security
- 79 Network Management
- 102 System Management
- 46 Web Management
- 188 Mobile Computing
- 32 Android
- 140 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 407 Off Topic
- 128 Introductions
- 35 Study Material
- 1.1K Programming and Development
- 312 Kernel Development
- 734 Software Development
- 1K Software
- 421 Applications
- 183 Command Line
- 5 Compiling/Installing
- 71 Games
- 320 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 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)