-
Notifications
You must be signed in to change notification settings - Fork 519
-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when creating an new channel, "Got unexpected status: BAD_REQUEST" #51
Comments
From the orderer.example.com logs, i got : |
Seems the channel is already created? |
i met the same error. |
@bizhenchao1201 can u try with the latest steps? what os/version are u using? |
@yeasy Hello, I got an error saying "Error: Invalid channel create transaction : mismatched channel ID businesschannel != mychannel" when I tried to create "mychannel". Is this because I have already create a businesschannel? If so, how can I deleter bussinesschannel and create mychannel? Thank you in advance. |
@RunshanHu yeah, because the configs in e2e/channel-artifacts has been re-generated with businesschannel, refer to this |
Don't forget to set *TLS_ENABLED to false in peer_base.yaml and orderer_base.yaml, cause some example under no-tls, distinguish them is to see whether there is |
@yeasy you are right , channel is already created |
I am also getting the same error, any update. |
@akshay2218 Start with a fresh config and new channel name. Also, try passing the |
Any idea ? Error: Got unexpected status: BAD_REQUEST |
I'm getting one issue trying to create a new channel. create mychannel......
|
@VemiReddyN guess u're using the node sdk, pls ask in chat.hyperledger.org/channel/fabric-sdk-node. |
I had the same error because the channel was already started. If this is the case then try |
The error is due to the presence of a channel already with the name "mychannel". If you check the docker-compose-cli.yaml file, for the CLI container the below command is present, which executes the script. Now this script creates the channel, installs the chaincode as well as instantiates the chaincode. Hope this helps... :) :) |
@jainandy I follow your solution but i still get error. first i use |
@darapich16 ,The error says it cannot find the Org1MSP. I hope you have ran the configtxgen. Also you check if the permissions are granted properly. |
in my case I forgot to specify those 4 environment variables from the docs page:
|
@tpasquet hey guy,have you fixed it now?I have the same error. |
2018-03-26 18:22:44.116 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized |
./byfn.sh -m restart -c channelName |
I am also getting a same kind of exception. If any one else has got the same and resolved it, req to pls share the resolution 2018-08-10 14:15:22.634 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized |
you are right, channel of mychannel is already exists, |
that error is due to your identity certificate. Check the orderer log, it will show you more info. In my case, it has indicated that I have specified wrong MSP's certificate. |
[channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized I first brought it down and then up again and it worked for me - |
|
If you've run the script properly at the beginning then everything was created and you are getting these error because of:
|
@yeasy @tpasquet even i have same issue peer channel update -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/Org2MSPanchors.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem2018-12-06 10:03:08.299 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized |
I successfully created the channel. But do not joining peer0 to the same channel . I just disable the TLS properties of orderer and peer, It working well. I set all environmental variables. But I get error every time. Error: 2018-12-07 12:04:55.565 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP NB: I use kafka based ordering service Fabric: 1.1.0 Composer:0.19.16 node:8.11.3 Please give a suggestions, Thanks in advance. |
I have same error. Did you fix? |
i restart the network with "bash byfn.sh -m restart -c mychannel", but it still can not work. The error is "because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application/Org1MSP at version 0, but got version 1". |
Hi guys, I'm experiencing a similar issue: i have detailed it here: https://stackoverflow.com/questions/57144745/cannot-create-channels-with-new-orgs-in-fabric-got-error-attempted-to-include Can you please help me? |
I think your procedure to add new org not fully. I will take guide for you.
Ok?
Vào 18:35, Th 2, 22 thg 7, 2019 Ayush Tiwari <notifications@github.com> đã
viết:
… Hi guys, I'm experiencing a similar issue: i have detailed it here:
https://stackoverflow.com/questions/57144745/cannot-create-channels-with-new-orgs-in-fabric-got-error-attempted-to-include
Can you please help me?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#51?email_source=notifications&email_token=AHK5RXYNT6PLSGIDQGHYVXLQAWLQFA5CNFSM4DNNP3DKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2PUOJA#issuecomment-513754916>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHK5RX2TWYBGOTPV6WS7JATQAWLQFANCNFSM4DNNP3DA>
.
|
I think you need change version, restart not working.
Vào 16:28, Th 3, 9 thg 7, 2019 chenweiw09 <notifications@github.com> đã
viết:
… i restart the network with "bash byfn.sh -m restart -c mychannel", but it
still can not work. The error is "because of error: error authorizing
update: error validating ReadSet: readset expected key [Group]
/Channel/Application/Org1MSP at version 0, but got version 1".
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#51?email_source=notifications&email_token=AHK5RX7SBS4KZFJKBXHQEQDP6RK4DA5CNFSM4DNNP3DKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZPV7OY#issuecomment-509566907>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHK5RXZSQR5JKARNMZ4ON5LP6RK4DANCNFSM4DNNP3DA>
.
|
@nguoibanso25 thanks for replying, but i don't want to restart my network, just tweak the consortium of an already running network. |
I think don't need restart network, may be config when network is working.
I don't know detail your problem, but you can add my skype, talk more.
Vào Th 3, 23 thg 7, 2019 vào lúc 16:01 Ayush Tiwari <
notifications@github.com> đã viết:
… @nguoibanso25 <https://github.com/nguoibanso25> thanks for replying, but
i don't want to restart my network, just tweak the consortium of an already
running network.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#51?email_source=notifications&email_token=AHK5RX4W7GIBLXW7JTK55ETQA3CEZA5CNFSM4DNNP3DKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SNX2I#issuecomment-514120681>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHK5RXZUQADFAV6J5VB5ANDQA3CEZANCNFSM4DNNP3DA>
.
|
Hi @ayush-deqode you can follow below steps to add new organisation to consortium
|
@mdxooa it works, thank you so much! |
qiang i have a confusion . |
Thank you!I have solved this problem by your method |
i tried set up hyperledger fabric with multiple hosts and i stoped containers and remove it after i tested my fabric. i met this question when i restart my fabric(i tried create a new channel and channel name is same as the last time), jbuusao works,and i read the byfn.sh in vim,and i found when you exec "byfn.sh down" the sh would remove some volumes in docker,so i tried exec "docker volume prune" and found the channel and chaincode was delete,you may test in your situation,it may work. |
tq. this worked. |
The channel already exists |
I have this error when I wanted to enter the CLI with sudo docker exec -it cli bash in chaincode-docker-devmode. Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'myc': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1. ./byfn.sh down ./byfn.sh -m restart -c channelName If Yes, from which directory to enter these commands? I started the dev-network with sudo docker-compose -f docker-compose-simple.yaml up. Do you know how to stop the Hyperledger Fabric tools / cli from exiting? I always have this problem. |
In my case, I shut down docker directly, not clearing the Fabric network firstly. After clearing the old Fabric network, the command works |
channel should be already exists. first need to create channel and genesis block, in create-artifacts. After that you specify the channel location which you created in first place in create-channel artifacts. but after that creating channel with giving orderer IP and channel location gives the error. |
I'm getting one issue trying to create a new channel.
I run this command :
peer channel create -o orderer.example.com:7050 -c ${CHANNEL_NAME} -f ./peer/channel-artifacts/channel.tx
But i got this error "Error: Got unexpected status: BAD_REQUEST"
Do you know where did this come from ?
Thanks a lot !
The text was updated successfully, but these errors were encountered: