Lab 4 instanttiate chaincode error
When trying to initiate chain code that has been install I receive the following error:
root@069294083f9a:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -n ccForAll -v 1.0 -o orderer.example.com:7050 -C allarewelcome -c '{"Args":["Mach","50"]}' --policy "AND('Org1.peer', OR ('Org1.member'))"
2020-07-12 12:20:10.574 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
2020-07-12 12:20:10.594 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
Error: error getting endorser client for instantiate: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded
root@069294083f9a:/opt/gopath/src/github.com/hyperledger/fabric/peer#
Has anyone found this issue?
Comments
-
@Paolo Marin said:
When trying to initiate chain code that has been install I receive the following error:
root@069294083f9a:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -n ccForAll -v 1.0 -o orderer.example.com:7050 -C allarewelcome -c '{"Args":["Mach","50"]}' --policy "AND('Org1.peer', OR ('Org1.member'))"
2020-07-12 12:20:10.574 UTC [main] InitCmd -> WARN 001 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
2020-07-12 12:20:10.594 UTC [main] SetOrdererEnv -> WARN 002 CORE_LOGGING_LEVEL is no longer supported, please use the FABRIC_LOGGING_SPEC environment variable
Error: error getting endorser client for instantiate: endorser client failed to connect to peer0.org1.example.com:7051: failed to create new connection: context deadline exceeded
root@069294083f9a:/opt/gopath/src/github.com/hyperledger/fabric/peer#Has anyone found this issue?
Hi @Paolo Marin ,
Would suggest to try and tear down your network and try it again. I just did Lab 4 withouth any issues. Difficult to say, but might be related to versions of your images.
If you want to continue from current state instead, please try the following:
Install the new chaincode version on the required endorser Upgrade the chaincode by invoking the "peer chaincode upgrade" command
This is from the official Hyperledger Fabric documentation: "Prior to upgrade, the new version of the chaincode must be installed on the required endorsers. Upgrade is a transaction similar to the instantiate transaction, which binds the new version of the chaincode to the channel. Other channels bound to the old version of the chaincode still run with the old version. In other words, the upgrade transaction only affects one channel at a time, the channel to which the transaction is submitted."
Link: https://hyperledger-fabric.readthedocs.io/en/release-1.4/chaincode4noah.html#upgrade
0 -
Also have issues with super Lab4.... when trying to instantiate code error I got is:
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network startFiles_basic not found
Seriously, you couldn't come up with some folder structure which exists?
Also, running scripts from Desktop folder is just completely stupid.So, should I read code now to find out where are some paths hardcoded?
Total disaster. Course is really waste of time. Whoever wrote it has no clue how courseware should be done and how to prepare labs.How can I fix error with 404 then?
Maybe this time you will be able to respond, rather than patronizing me how I should write posts.
So far it is waste of time... every time I try to proceed with this courseware I got pushed away by low quality level provided.
It is total disaster.0 -
Hi @Szymon, we understand your frustration and apologize for the problems encountered. As mentioned previously, we are aware the course needs updates and the course authors are working on them, without an ETA. In the meantime, there have been good suggestions in the forum that you could try to use to get through the labs.
We do have to reiterate that we expect all students to be polite and respectful. Feedback can be provided in a constructive way; disrespectful language will not lead anywhere - this is not about patronizing you, it's about common sense.
-1 -
Well, then some appendix should be published where all trash made in labs would be cleandup.
From one error to another... next one on the list:API error (404): network _BASIC not found
Seriously??? Anyone did test those file at least once? I don't think so.
You should learn from crypto projects how to deliver efficient manner.
Most of them do not charge anything and deliver quality documentation.
You charging $$$ and can't evet tell people when you fix your low quality materials (that is soft description, so another language specialist won't be crying like little baby)?
Seriously???
Is this for real?0 -
Btw.. keep in mind that people reporting all issues over a year... and you still didn't manage to fix anything or publish some document with all errors listed?
Pathetic!0 -
Now I can't even search your "super" forum for resolutions as I get this:
Something has gone wrong. We've run into a problem and are unable to handle this request right now. Please check back in a little while.
Absolute disaster!
0 -
@Szymon said:
Also have issues with super Lab4.... when trying to instantiate code error I got is:Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (404): network startFiles_basic not found
Seriously, you couldn't come up with some folder structure which exists?
Also, running scripts from Desktop folder is just completely stupid.So, should I read code now to find out where are some paths hardcoded?
Total disaster. Course is really waste of time. Whoever wrote it has no clue how courseware should be done and how to prepare labs.How can I fix error with 404 then?
Maybe this time you will be able to respond, rather than patronizing me how I should write posts.
So far it is waste of time... every time I try to proceed with this courseware I got pushed away by low quality level provided.
It is total disaster.Hi @Szymon ,
I have previously experienced the same error. It might be due to spelling mismatch from the setup script, so try to change the parameter in the docker-compose file (to a small f):
CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=starfiles_basic
Try to restart network after this, to see if it works.
0 -
@Niklaskkkk I did fix this one already.. now stuck with this
Error: got unexpected status: NOT_FOUND -- channel does not exist
0 -
@fcioanca if you woud provide valuable answers not BS about language and some kiddo-like comments then would be no problem.
If you didn't notice.. during whole conversation none of you provided any valuable answers.. instead of just "we trying to fix it"... over the year... so, don't you think your responses are completely useless?
Writing for the sake of writing? OMG! Instead of placing this type of comments go and fix your mess in training materials. Make yourself useful.0 -
Szymon:
You have made 7 posts in less than two hours on a forum which has never purported to be a real-time technical support medium. You were told the course needs some work and is in the process of updating and yet you continue to elevate your level of rudeness towards several people who are trying to be honest and patient with you. Maybe it makes you feel good to do so, but it is not a method designed to achieve results. I would suggest you calm down and please try to be polite and treat people with respect as they have done with you.
Keeping cutting edge technology learning material up to date is not easy as upstream changes often and experts are in short supply. I seriously doubt you will find many competitive alternatives to LFS272, so please keep your powder a little drier and it will be appreciated.
0 -
@Szymon said:
@Niklaskkkk I did fix this one already.. now stuck with thisError: got unexpected status: NOT_FOUND -- channel does not exist
Run, "docker exec -it peer0.org1.example.com peer channel list" to list joined channels and use that name in instantiate command.
0
Categories
- All Categories
- 217 LFX Mentorship
- 217 LFX Mentorship: Linux Kernel
- 788 Linux Foundation IT Professional Programs
- 352 Cloud Engineer IT Professional Program
- 177 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 146 Cloud Native Developer IT Professional Program
- 137 Express Training Courses
- 137 Express Courses - Discussion Forum
- 6.1K Training Courses
- 46 LFC110 Class Forum - Discontinued
- 70 LFC131 Class Forum
- 42 LFD102 Class Forum
- 226 LFD103 Class Forum
- 18 LFD110 Class Forum
- 36 LFD121 Class Forum
- 18 LFD133 Class Forum
- 7 LFD134 Class Forum
- 18 LFD137 Class Forum
- 71 LFD201 Class Forum
- 4 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 2 LFD233 Class Forum
- 4 LFD237 Class Forum
- 24 LFD254 Class Forum
- 693 LFD259 Class Forum
- 111 LFD272 Class Forum
- 4 LFD272-JP クラス フォーラム
- 12 LFD273 Class Forum
- 144 LFS101 Class Forum
- 1 LFS111 Class Forum
- 3 LFS112 Class Forum
- 2 LFS116 Class Forum
- 4 LFS118 Class Forum
- 4 LFS142 Class Forum
- 5 LFS144 Class Forum
- 4 LFS145 Class Forum
- 2 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 2 LFS157 Class Forum
- 25 LFS158 Class Forum
- 7 LFS162 Class Forum
- 2 LFS166 Class Forum
- 4 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 3 LFS178 Class Forum
- 3 LFS180 Class Forum
- 2 LFS182 Class Forum
- 5 LFS183 Class Forum
- 31 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム
- 18 LFS203 Class Forum
- 130 LFS207 Class Forum
- 2 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum
- 56 LFS216 Class Forum
- 52 LFS241 Class Forum
- 48 LFS242 Class Forum
- 38 LFS243 Class Forum
- 15 LFS244 Class Forum
- 2 LFS245 Class Forum
- LFS246 Class Forum
- 48 LFS250 Class Forum
- 2 LFS250-JP クラス フォーラム
- 1 LFS251 Class Forum
- 150 LFS253 Class Forum
- 1 LFS254 Class Forum
- 1 LFS255 Class Forum
- 7 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.2K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 118 LFS260 Class Forum
- 159 LFS261 Class Forum
- 42 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 24 LFS267 Class Forum
- 22 LFS268 Class Forum
- 30 LFS269 Class Forum
- LFS270 Class Forum
- 202 LFS272 Class Forum
- 2 LFS272-JP クラス フォーラム
- 1 LFS274 Class Forum
- 4 LFS281 Class Forum
- 9 LFW111 Class Forum
- 259 LFW211 Class Forum
- 181 LFW212 Class Forum
- 13 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 795 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 102 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 758 Linux Distributions
- 82 Debian
- 67 Fedora
- 17 Linux Mint
- 13 Mageia
- 23 openSUSE
- 148 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 353 Ubuntu
- 468 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 93 Linux Security
- 78 Network Management
- 102 System Management
- 47 Web Management
- 63 Mobile Computing
- 18 Android
- 33 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 370 Off Topic
- 114 Introductions
- 173 Small Talk
- 22 Study Material
- 805 Programming and Development
- 303 Kernel Development
- 484 Software Development
- 1.8K Software
- 261 Applications
- 183 Command Line
- 3 Compiling/Installing
- 987 Games
- 317 Installation
- 96 All In Program
- 96 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)