Need some help with lab 8, can't get past first step

After working on Lab 7 for a while and running through it multiple times, I moved on to Lab 8. As far as I can tell everything in the network should be set up correctly, I had one isssue in Lab 7 where I couldn't do the Chaincode instantiate/upgrade from Org2, I can only do it from Org1.
Anyhow, when I go into Lab 8, first step is to Open the configtx.yaml file, and append this to the profiles section:
OrgTwoChannel:
Consortium: SampleConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *Org2
AllAreWelcomeTwo:
Consortium: SampleConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *Org1
- *Org2
The next step is to run ../bin/configtxgen -profile OrgTwoChannel -outputCreateChannelTx ./config/OrgTwoChannel.tx -channelID orgtwochannel
I immediately get an error for configtxgen that I have invalid keys. Note that I can no longer run any configtxgen commands they all result in the same error message. If I edit configtx.yaml file and remove the content from Lab 8, it goes back to working and I can run basic configtxgen commands again.
This is the output when I try to run it with the Lab 8 edits.
student@ubuntu:~/Desktop/fabric-samples/startFiles$ ../bin/configtxgen -profile OrgTwoChannel -outputCreateChannelTx ./config/OrgTwoChannel.tx -channelID orgtwochannel
2020-05-31 14:24:23.788 EDT [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-05-31 14:24:23.791 EDT [common.tools.configtxgen.localconfig] Load -> PANI 002 Error unmarshaling config into struct: 1 error(s) decoding:
'' has invalid keys: allarewelcometwo, orgtwochannel
2020-05-31 14:24:23.791 EDT [common.tools.configtxgen] func1 -> PANI 003 Error unmarshaling config into struct: 1 error(s) decoding:'' has invalid keys: allarewelcometwo, orgtwochannel
panic: Error unmarshaling config into struct: 1 error(s) decoding:'' has invalid keys: allarewelcometwo, orgtwochannel [recovered]
panic: Error unmarshaling config into struct: 1 error(s) decoding:'' has invalid keys: allarewelcometwo, orgtwochannel
goroutine 1 [running]:
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(CheckedEntry).Write(0xc000121970, 0x0, 0x0, 0x0)
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(SugaredLogger).log(0xc0000b2248, 0xc00046d804, 0xc000378240, 0x82, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(SugaredLogger).Panicf(0xc0000b2248, 0xc000378240, 0x82, 0x0, 0x0, 0x0)
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79
github.com/hyperledger/fabric/common/flogging.(FabricLogger).Panic(0xc0000b2250, 0xc00046d938, 0x1, 0x1)
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75
main.main.func1()
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:250 +0x1a9
panic(0xd4fc40, 0xc000471ce0)
/opt/go/go1.11.1.linux.amd64/src/runtime/panic.go:513 +0x1b9
github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore.(CheckedEntry).Write(0xc000121970, 0x0, 0x0, 0x0)
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/zapcore/entry.go:229 +0x515
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(SugaredLogger).log(0xc0000b2228, 0xc00046dc04, 0xc000378090, 0x82, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:234 +0xf6
github.com/hyperledger/fabric/vendor/go.uber.org/zap.(SugaredLogger).Panicf(0xc0000b2228, 0xc000378090, 0x82, 0x0, 0x0, 0x0)
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/vendor/go.uber.org/zap/sugar.go:159 +0x79
github.com/hyperledger/fabric/common/flogging.(FabricLogger).Panic(0xc0000b2230, 0xc00046dd98, 0x2, 0x2)
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/flogging/zap.go:73 +0x75
github.com/hyperledger/fabric/common/tools/configtxgen/localconfig.Load(0x7fffda6f61d3, 0xd, 0x0, 0x0, 0x0, 0xc000458540)
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/localconfig/config.go:282 +0x580
main.main()
/w/workspace/fabric-release-jobs-x86_64/gopath/src/github.com/hyperledger/fabric/common/tools/configtxgen/main.go:261 +0xb2f
student@ubuntu:~/Desktop/fabric-samples/startFiles$
Has anyone run into this or have a suggestion how to resolve?
Note that I even tried to remove all references to Org2, assuming that was the issue but I still had a problem. I updated configtx.yaml and added just the following.
AllAreWelcomeTwo:
Consortium: SampleConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *Org1
Then I ran ../bin/configtxgen -profile AllAreWelcomeTwo -outputCreateChannelTx ./config/AllAreWelcomeTwo.tx -channelID allarewelcometwo
and I got the same error. So it appears any edit to configtx.yaml has resulted in an issue.
As a last ditch effort I thought perhaps it had something to do with editing the file so I threw a hail Mary and did a chmod 777 configtx.yaml
No luck....
Comments
-
Are you sure your indentation is correct?
0 -
@LogarithmicTC said:
Are you sure your indentation is correct?@garycris ,
Hi, as @LogarithmicTC points out be sure to be presice in your YAML-file, as the position of all characters need to be perfect. It might also be an earlier error in what you did in Lab7 or previous labs that is generating this error.Since it says you have invalid keys I would assume maybe you did not update the key numbers in your config file? You might have generated new keys during previous labs.
I just ran trough the Lab8, without any issues. But I have to say, when I learned Fabric myself I encountered many errors similar to you. The best help is to tear down the network, and go over it again. Every time I did this, I saw the mistake I did, I got more comfortable with the commands, and most importantly, I understood why the error messages had occured.
If you still want to continue from where you are in Lab 8, these two suggestions might help you:
- Check that you run configtxgen from the same path you have configtx.yaml
- It could be a version mismatch. Check that your version of binaries match the configuration files
0 -
I had to teardown the network again. Eventually got past it. Thanks
1
Categories
- All Categories
- 51 LFX Mentorship
- 104 LFX Mentorship: Linux Kernel
- 576 Linux Foundation IT Professional Programs
- 304 Cloud Engineer IT Professional Program
- 125 Advanced Cloud Engineer IT Professional Program
- 53 DevOps Engineer IT Professional Program
- 61 Cloud Native Developer IT Professional Program
- 5 Express Training Courses
- 5 Express Courses - Discussion Forum
- 2.1K Training Courses
- 19 LFC110 Class Forum
- 7 LFC131 Class Forum
- 27 LFD102 Class Forum
- 158 LFD103 Class Forum
- 21 LFD121 Class Forum
- 1 LFD137 Class Forum
- 61 LFD201 Class Forum
- 1 LFD210 Class Forum
- LFD210-CN Class Forum
- 1 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum
- LFD237 Class Forum
- 23 LFD254 Class Forum
- 613 LFD259 Class Forum
- 105 LFD272 Class Forum
- 1 LFD272-JP クラス フォーラム
- 1 LFD273 Class Forum
- 2 LFS145 Class Forum
- 25 LFS200 Class Forum
- 739 LFS201 Class Forum
- 1 LFS201-JP クラス フォーラム
- 11 LFS203 Class Forum
- 77 LFS207 Class Forum
- 300 LFS211 Class Forum
- 54 LFS216 Class Forum
- 47 LFS241 Class Forum
- 41 LFS242 Class Forum
- 37 LFS243 Class Forum
- 11 LFS244 Class Forum
- 37 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 141 LFS253 Class Forum
- LFS254 Class Forum
- 1.1K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 93 LFS260 Class Forum
- 132 LFS261 Class Forum
- 33 LFS262 Class Forum
- 80 LFS263 Class Forum
- 15 LFS264 Class Forum
- 11 LFS266 Class Forum
- 18 LFS267 Class Forum
- 18 LFS268 Class Forum
- 23 LFS269 Class Forum
- 203 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- LFS281 Class Forum
- 236 LFW211 Class Forum
- 172 LFW212 Class Forum
- 7 SKF100 Class Forum
- SKF200 Class Forum
- 903 Hardware
- 219 Drivers
- 74 I/O Devices
- 44 Monitors
- 116 Multimedia
- 209 Networking
- 101 Printers & Scanners
- 85 Storage
- 763 Linux Distributions
- 88 Debian
- 66 Fedora
- 15 Linux Mint
- 13 Mageia
- 24 openSUSE
- 142 Red Hat Enterprise
- 33 Slackware
- 13 SUSE Enterprise
- 357 Ubuntu
- 479 Linux System Administration
- 41 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 95 Linux Security
- 78 Network Management
- 108 System Management
- 49 Web Management
- 68 Mobile Computing
- 23 Android
- 30 Development
- 1.2K New to Linux
- 1.1K Getting Started with Linux
- 538 Off Topic
- 131 Introductions
- 217 Small Talk
- 22 Study Material
- 826 Programming and Development
- 278 Kernel Development
- 514 Software Development
- 928 Software
- 260 Applications
- 184 Command Line
- 3 Compiling/Installing
- 76 Games
- 316 Installation
- 61 All In Program
- 61 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)