Skip to content
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 on installing one org network #84

Open
b00f opened this issue Oct 17, 2019 · 3 comments
Open

Error on installing one org network #84

b00f opened this issue Oct 17, 2019 · 3 comments

Comments

@b00f
Copy link
Contributor

b00f commented Oct 17, 2019

I got an error while installing one org network. I am following the instruction and I got this error every time I try. Do you have any idea what is wrong?

Add org1 to consortium SampleConsortium
Execute: docker-compose -f ./docker-compose-orderer.yaml    run --no-deps --rm cli.orderer bash -c container-scripts/orderer/consortium-add-org.sh org1 example.com
--2019-10-17 06:18:21--  http://www.org1.example.com/msp/admincerts/[email protected]
Resolving www.org1.example.com (www.org1.example.com)... 172.19.0.6
Connecting to www.org1.example.com (www.org1.example.com)|172.19.0.6|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/admincerts/[email protected]' not modified on server. Omitting download.

--2019-10-17 06:18:21--  http://www.org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem
Resolving www.org1.example.com (www.org1.example.com)... 172.19.0.6
Connecting to www.org1.example.com (www.org1.example.com)|172.19.0.6|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem' not modified on server. Omitting download.

--2019-10-17 06:18:21--  http://www.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem
Resolving www.org1.example.com (www.org1.example.com)... 172.19.0.6
Connecting to www.org1.example.com (www.org1.example.com)|172.19.0.6|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem' not modified on server. Omitting download.

Execute: channel fetch config crypto-config/configtx/orderer-system-channel.pb -o orderer.example.com:7050 -c orderer-system-channel --tls --cafile /etc/hyperledger/crypto-config/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem
2019-10-17 06:18:21.331 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2019-10-17 06:18:21.333 UTC [cli.common] readBlock -> INFO 002 Received block: 2
2019-10-17 06:18:21.333 UTC [cli.common] readBlock -> INFO 003 Received block: 1
Execute: channel fetch config crypto-config/configtx/orderer-system-channel.pb -o orderer.example.com:7050 -c orderer-system-channel --tls --cafile /etc/hyperledger/crypto-config/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem
2019-10-17 06:18:21.441 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2019-10-17 06:18:21.441 UTC [cli.common] readBlock -> INFO 002 Received block: 2
2019-10-17 06:18:21.442 UTC [cli.common] readBlock -> INFO 003 Received block: 1
 >> Prepare config update from org1 for channel orderer-system-channel
configtxlator: error: Error computing update: error computing config update: no differences detected between original and updated config
 >> org1 is sending channel update update_in_envelope.pb with  by 
Execute: peer channel update -f update_in_envelope.pb -c orderer-system-channel -o orderer.example.com:7050 --tls --cafile /etc/hyperledger/crypto-config/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem
2019-10-17 06:18:21.654 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- error authorizing update: Update not for correct channel: common for orderer-system-channel
Error occurred. See console output above.
@b00f
Copy link
Contributor Author

b00f commented Oct 17, 2019

If I run the command immediately it will be successful.

--2019-10-17 07:47:37--  http://www.org1.example.com/msp/admincerts/[email protected]
Resolving www.org1.example.com (www.org1.example.com)... 172.19.0.6
Connecting to www.org1.example.com (www.org1.example.com)|172.19.0.6|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/admincerts/[email protected]' not modified on server. Omitting download.

--2019-10-17 07:47:37--  http://www.org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem
Resolving www.org1.example.com (www.org1.example.com)... 172.19.0.6
Connecting to www.org1.example.com (www.org1.example.com)|172.19.0.6|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem' not modified on server. Omitting download.

--2019-10-17 07:47:37--  http://www.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem
Resolving www.org1.example.com (www.org1.example.com)... 172.19.0.6
Connecting to www.org1.example.com (www.org1.example.com)|172.19.0.6|:80... connected.
HTTP request sent, awaiting response... 304 Not Modified
File 'crypto-config/peerOrganizations/org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem' not modified on server. Omitting download.

Execute: channel fetch config crypto-config/configtx/orderer-system-channel.pb -o orderer.example.com:7050 -c orderer-system-channel --tls --cafile /etc/hyperledger/crypto-config/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem
2019-10-17 07:47:37.719 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2019-10-17 07:47:37.720 UTC [cli.common] readBlock -> INFO 002 Received block: 0
2019-10-17 07:47:37.721 UTC [cli.common] readBlock -> INFO 003 Received block: 0
Execute: channel fetch config crypto-config/configtx/orderer-system-channel.pb -o orderer.example.com:7050 -c orderer-system-channel --tls --cafile /etc/hyperledger/crypto-config/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem
2019-10-17 07:47:37.814 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2019-10-17 07:47:37.815 UTC [cli.common] readBlock -> INFO 002 Received block: 0
2019-10-17 07:47:37.816 UTC [cli.common] readBlock -> INFO 003 Received block: 0
 >> Prepare config update from org1 for channel orderer-system-channel
 >> org1 is sending channel update update_in_envelope.pb with  by 
Execute: peer channel update -f update_in_envelope.pb -c orderer-system-channel -o orderer.example.com:7050 --tls --cafile /etc/hyperledger/crypto-config/ordererOrganizations/example.com/msp/tlscacerts/tlsca.example.com-cert.pem
2019-10-17 07:47:38.059 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
2019-10-17 07:47:38.069 UTC [channelCmd] update -> INFO 002 Successfully submitted channel update


@b00f
Copy link
Contributor Author

b00f commented Oct 17, 2019

This command worked for me:

docker-compose -f docker-compose.yaml -f docker-compose-api-port.yaml up -d && ./consortium-add-org.sh $ORG && ./channel-create.sh common && ./channel-join.sh common

LeonidLe pushed a commit that referenced this issue Oct 18, 2019
LeonidLe pushed a commit that referenced this issue Oct 18, 2019
@KelvinYCH
Copy link

I have a problem too when i run ./consortium-add-org.sh org1

it will throw the error
Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/home/hyperledger/fabric-starter/crypto-config/hosts\" to rootfs \"/var/lib/docker/overlay2/4bdebcf3010eb137e7b0f570aaab3e82c8e7d989ee5b6df597c69555770ced86/merged\" at \"/var/lib/docker/overlay2/4bdebcf3010eb137e7b0f570aaab3e82c8e7d989ee5b6df597c69555770ced86/merged/etc/hosts\" caused \"not a directory\""": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
do anyone get an idea?
thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants