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
- 167 LFX Mentorship
- 219 LFX Mentorship: Linux Kernel
- 798 Linux Foundation IT Professional Programs
- 356 Cloud Engineer IT Professional Program
- 180 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 149 Cloud Native Developer IT Professional Program
- 112 Express Training Courses
- 138 Express Courses - Discussion Forum
- 6.2K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 17 LFC131 Class Forum
- 35 LFD102 Class Forum
- 227 LFD103 Class Forum
- 19 LFD110 Class Forum
- 39 LFD121 Class Forum
- 15 LFD133 Class Forum
- 7 LFD134 Class Forum
- 17 LFD137 Class Forum
- 63 LFD201 Class Forum
- 3 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 2 LFD237 Class Forum
- 23 LFD254 Class Forum
- 697 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 154 LFS101 Class Forum
- 1 LFS111 Class Forum
- 1 LFS112 Class Forum
- 1 LFS116 Class Forum
- 1 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 7 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 1 LFS157 Class Forum
- 34 LFS158 Class Forum
- 8 LFS162 Class Forum
- 1 LFS166 Class Forum
- 1 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 1 LFS178 Class Forum
- 1 LFS180 Class Forum
- 1 LFS182 Class Forum
- 1 LFS183 Class Forum
- 29 LFS200 Class Forum
- 736 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 14 LFS203 Class Forum
- 102 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 48 LFS241 Class Forum
- 48 LFS242 Class Forum
- 37 LFS243 Class Forum
- 15 LFS244 Class Forum
- LFS245 Class Forum
- LFS246 Class Forum
- 50 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 155 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 5 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 121 LFS260 Class Forum
- 159 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 20 LFS267 Class Forum
- 25 LFS268 Class Forum
- 31 LFS269 Class Forum
- 1 LFS270 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 10 LFW111 Class Forum
- 261 LFW211 Class Forum
- 182 LFW212 Class Forum
- 15 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 782 Hardware
- 198 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 83 Storage
- 758 Linux Distributions
- 80 Debian
- 67 Fedora
- 15 Linux Mint
- 13 Mageia
- 23 openSUSE
- 143 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 348 Ubuntu
- 461 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 90 Linux Security
- 77 Network Management
- 101 System Management
- 46 Web Management
- 64 Mobile Computing
- 17 Android
- 34 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 19 Study Material
- 806 Programming and Development
- 304 Kernel Development
- 204 Software Development
- 1.8K Software
- 211 Applications
- 180 Command Line
- 3 Compiling/Installing
- 405 Games
- 309 Installation
- 97 All In Program
- 97 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)