Lab 7. peer1.org2 can't join channel?
Hello,
in lab 7 i'm experiencing problems on the following task: Join New Peers to the Channel and Install Chaincode
We need to join the channel "allarewelcome" with the allarewelcome.block. But that block is never fetched?
How can i get that block? Seeing this is not in the information...
Comments
-
Hello @benjamin.verhaegen,
I think the lab 7 worked for me. Can you provide your command and the error message?
0 -
Following up on this, @benjamin.verhaegen, please post your command, logs, possible error output if you have one, as well as a screenshot of what is in your current working directory after you run the command..
@akoita thank you for the follow up confirmation that you were able to complete the lab as well. keep up the great work!
0 -
I fixed the error by fetching the allarewelcome.block with peer0.org1.example.com with following command:
peer channel fetch oldest allarewelcome.block -c allarewelcome --orderer orderer.example.com:7050This made the block file available on the cli container, so I could join the channel with my org2 peers.
0 -
Hello,
Trying to send the changes off to the network for approval:
peer channel update -f org2SubmitReady.pb -c allarewelcome -o orderer.example.com:7050
Response:
2019-06-20 07:08:53.187 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- error authorizing update: ConfigUpdate for channel '' but envelope for channel 'allarewelcome'Any idea what could be missing?
0 -
Hi all, I solved it. There is a print error at
echo
'{"payload":{"header":{"channel_header":{"channel_id":"allarewelcome",
"type":2}},"data":{"config_update":'$(cat configProposal_Org2.json)'}}}'
| jq . > org2SubmitReady.jsonJust before jq there is "|" which shouldn't be there. I deleted and the rest worked.
0 -
@PaulAmehUgw1 The command in the pdf with the | Is incorrect. That is intentional. So actually the problem is not a print error from the book. Your error is coming from somewhere else before. You probably just missed an simple character(happens to us all). I've confirmed the pdf is on track by rerunning the update commands, and received a successful update.
So I can help you, Please post the history of commands from the time you fetched the original config block to the time you sent the update to the network so I can take a further look at it, for you.
0 -
Hi,
Running this command:
peer channel update -f org2SubmitReady.pb -c allarewelcome -o \
orderer.example.com:7050Returns a bad request error:
2019-06-20 17:45:31.370 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- error authorizing update: ConfigUpdate for channel '' but envelope for channel 'allarewelcome'
Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050: failed to create new connection: context deadline exceeded
Any idea?
0 -
I believe The first has to deal with the header, problem possibly occurred somewhere from when the update file was sealed and reencoded . The second error looks Like an issue w/ your orderer
0 -
So I can help you, Please post the history of commands from the time you fetched the original config block to the time you sent the update to the network so I can take a further look at it, for you.
0 -
@kmyatt i redo the steps and i was able to resolve it by making sure my FABRIC_CA_SERVER_CA_KEYFILE was correctly defined.
And now, I'm having errors with the endorsement policy.
peer chaincode upgrade -n ccForAll -v 1.1 -o orderer.example.com:7050 --policy "AND('Org1.peer', 'Org2.peer' OR ('Org1.admin'))" -C '{"Args":["Mach", "50"]}'
Error:
2019-06-21 11:59:23.606 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2019-06-21 11:59:23.606 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
Error: invalid policy AND('Org1.peer', 'Org2.peer' OR ('Org1.admin'))
Usage:I also included channel below but other error persist.
peer chaincode upgrade -n ccForAll -v 1.1 -C allarewelcome -o orderer.example.com:7050 --policy "AND ('ORg1.peer', 'Org2.peer', OR ('Org1.admin') )" -c '{"Args":["Mach","50"]}'
Response:
2019-06-21 12:12:34.070 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2019-06-21 12:12:34.070 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg cannot get package for chaincode (ccForAll:1.1)0 -
@kmyatt Even though I got invalid policy error error, i ran this command:
peer chaincode list --instantiated -C allarewelcomeResult:
Get instantiated chaincodes on channel allarewelcome:
Name: ccForAll, Version: 1.1, Escc: escc, Vscc: vsccIf the output means it worked, then the initial invalid policy response could be a bug. Please confirm.
Thanks
0 -
I noticed this log result:
mem3_shards:load_shards_from_disk/1(line:370) <= mem3_shards:load_shards_from_disk/2(line:399) <= mem3_shards:for_docid/3(line:86) <= fabric_doc_open:go/3(line:38) <= chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= chttpd_auth_cache:listen_for_changes/1(line:134)
couchdbOrg1Peer1 | [error] 2019-06-21T15:08:42.413526Z nonode@nohost emulator -------- Error in process <0.555.0> with exit value:
couchdbOrg1Peer1 | {database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,395}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,370}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,399}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,86}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,38}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,187}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,134}]}]}0 -
For the error: "Error: invalid policy AND('Org1.peer', 'Org2.peer' OR ('Org1.admin'))"
I believe the command entered is a missing comma. Rerun this:
peer chaincode upgrade -n ccForAll -v 1.1 -C allarewelcome -c '{"Args":["Mach","50"]}' --policy "AND('Org1.peer','Org2.peer', OR('Org1.member','org2.peer'))"
As far as the fact that you've returned 1.1 even after the error, I believe that it's because of that time you instantiated it earlier in the thread. If you ran that and It successfully output the instantiation/upgrade then that version stays on the channel until you re-upgrade to a higher version. In order to truly see if everything you are running now (at v1.1) is taking effect you must remove the channel and redo it. It's probably easier, and quicker to simply teardown and start back up.
Including this note just in case as well..(Do remember the instantiation is at channel level, so it doesn't need to be run more than once (at each version) if you've already successfully done it before.
Last, for the error: _ Error: could not assemble transaction, err proposal response was not successful, error code 500, msg cannot get package for chaincode (ccForAll:1.1)_
that output looks like you may have an issue with your state db for peer1Org1 you should make sure it's running and if it's not, recheck the configuration, take the container down, and bring it back up again. Additionally, if couchdb for Peer1Org1 is down, then it most likely caused Peer1Org1's container to exit as well.
Hope this all helps
1 -
@kmyatt Thanks, it helped!. I did it again from scratch and was able to figure it out
0 -
@PaulAmehUgw1 Wonderful, I'm glad it helped!
0 -
Hi all, In lab 7 while joining new peers, I can fetch the genesis block but can not join the channel (No errors). But when I join the channel it says not genesis block. allarewelcome block not found. Is there anyway I can get hint of what went wrong? Thanks!
0 -
@indirajith I think you are fetching the config to Org2AddedConfig.pb but trying to look for allarewelcome.block.
0 -
@maniankara Can you explain a tad more? The channel is still allarewelcome and we add the 2nd organisation. So, we fetch the Org2AddedConfig.pb and join it to the allarewelcome channel. This is my understanding. And I use the commands provided in the lab manual. Thank you!
0 -
@benjamin.verhaegen said:
I fixed the error by fetching the allarewelcome.block with peer0.org1.example.com with following command:
peer channel fetch oldest allarewelcome.block -c allarewelcome --orderer orderer.example.com:7050This made the block file available on the cli container, so I could join the channel with my org2 peers.
I even fetched the allarewelcome.block using org1 but still I can not join the channel from org2. Can anyone please help me in this? I am struck in this for more than a week.
Thank you very much!
0 -
0
-
Oops, Sorry all. It was just a typo error(allarewelocme). My bad. Now I can make peer0.org2 join the channel. But is this the way of doing the work? Fetching the genesis block using org1 then using that block to join the org2? Thank you all for your time and patience!
1 -
I followed the steps in the tutorial without issues, then created the org2SubmitReady.pb file
However, when I try to sign the configuration update with CLI (as Org1) I receive the following error:fabric/peer# peer channel signconfigtx -f org2SubmitReady.pb
2019-07-17 10:14:56.472 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
2019-07-17 10:14:56.475 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
2019-07-17 10:14:56.475 UTC [channelCmd] InitCmdFactory -> INFO 003 Endorser and orderer connections initialized
Error: error unmarshaling Envelope: proto: can't skip unknown wire type 70
Categories
- All Categories
- 207 LFX Mentorship
- 207 LFX Mentorship: Linux Kernel
- 735 Linux Foundation IT Professional Programs
- 339 Cloud Engineer IT Professional Program
- 167 Advanced Cloud Engineer IT Professional Program
- 66 DevOps Engineer IT Professional Program
- 132 Cloud Native Developer IT Professional Program
- 122 Express Training Courses
- 122 Express Courses - Discussion Forum
- 5.9K Training Courses
- 40 LFC110 Class Forum - Discontinued
- 66 LFC131 Class Forum
- 39 LFD102 Class Forum
- 221 LFD103 Class Forum
- 17 LFD110 Class Forum
- 33 LFD121 Class Forum
- 17 LFD133 Class Forum
- 6 LFD134 Class Forum
- 17 LFD137 Class Forum
- 70 LFD201 Class Forum
- 3 LFD210 Class Forum
- 2 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 3 LFD237 Class Forum
- 23 LFD254 Class Forum
- 689 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 109 LFS101 Class Forum
- LFS111 Class Forum
- 2 LFS112 Class Forum
- 1 LFS116 Class Forum
- 3 LFS118 Class Forum
- 3 LFS142 Class Forum
- 3 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 2 LFS147 Class Forum
- 8 LFS151 Class Forum
- 1 LFS157 Class Forum
- 14 LFS158 Class Forum
- 5 LFS162 Class Forum
- 1 LFS166 Class Forum
- 3 LFS167 Class Forum
- 1 LFS170 Class Forum
- 1 LFS171 Class Forum
- 2 LFS178 Class Forum
- 2 LFS180 Class Forum
- 1 LFS182 Class Forum
- 4 LFS183 Class Forum
- 30 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 17 LFS203 Class Forum
- 117 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 50 LFS241 Class Forum
- 43 LFS242 Class Forum
- 37 LFS243 Class Forum
- 13 LFS244 Class Forum
- 1 LFS245 Class Forum
- 45 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 145 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 6 LFS256 Class Forum
- LFS257 Class Forum
- 1.2K LFS258 Class Forum
- 9 LFS258-JP クラス フォーラム
- 116 LFS260 Class Forum
- 155 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 23 LFS267 Class Forum
- 18 LFS268 Class Forum
- 29 LFS269 Class Forum
- 200 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 7 LFW111 Class Forum
- 257 LFW211 Class Forum
- 178 LFW212 Class Forum
- 12 SKF100 Class Forum
- SKF200 Class Forum
- 791 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 98 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 754 Linux Distributions
- 82 Debian
- 67 Fedora
- 16 Linux Mint
- 13 Mageia
- 23 openSUSE
- 147 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 351 Ubuntu
- 465 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 91 Linux Security
- 78 Network Management
- 101 System Management
- 47 Web Management
- 56 Mobile Computing
- 17 Android
- 28 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 366 Off Topic
- 114 Introductions
- 171 Small Talk
- 20 Study Material
- 534 Programming and Development
- 293 Kernel Development
- 223 Software Development
- 1.1K Software
- 212 Applications
- 182 Command Line
- 3 Compiling/Installing
- 405 Games
- 311 Installation
- 79 All In Program
- 79 All In 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)