olegabu / fabric-starter

Starter Application and Deployment Scripts for Hyperledger Fabric
Apache License 2.0
240 stars 184 forks source link

Unable to add ORG in consortium : Forbidden ISSUE #23

Closed LogeswaranA closed 6 years ago

LogeswaranA commented 6 years ago

Tried to setup fresh network today, facing forbidden issue..

I removed (Crypto-config) folder generated before, started fresh.. Again same issue. Then I cloned the repo fresh, ensured no containers are running before. ..

Below is the LOG.

./consortium-add-org.sh org1 Add org1 to consortium SampleConsortium Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/admincerts http://www.org1.example.com/msp/admincerts/Admin@org1.example.com-cert.pem --2018-10-15 04:15:38-- http://www.org1.example.com/msp/admincerts/Admin@org1.example.com-cert.pem Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5 Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|:80... connected. HTTP request sent, awaiting response... 304 Not Modified File 'crypto-config/peerOrganizations/org1.example.com/msp/admincerts/Admin@org1.example.com-cert.pem' not modified on server. Omitting download.

Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/cacerts http://www.org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem --2018-10-15 04:15:38-- http://www.org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5 Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|: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.

Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/tlscacerts http://www.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem --2018-10-15 04:15:39-- http://www.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5 Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|: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: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c peer channel fetch config crypto-config/configtx/orderer-system-channel.pb -o orderer.example.com:7050 -c orderer-system-channel --tls --cafile /etc/hyperledger/crypto/orderer/tls/ca.crt && chown 1000 -R crypto-config/ 2018-10-15 04:15:40.672 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-10-15 04:15:40.675 UTC [cli/common] readBlock -> INFO 002 Got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN} Execute a command in a running container

Usage: exec [options] [-e KEY=VAL...] SERVICE COMMAND [ARGS...]

Options: -d, --detach Detached mode: Run command in the background. --privileged Give extended privileges to the process. -u, --user USER Run the command as this user. -T Disable pseudo-tty allocation. By default docker-compose exec allocates a TTY. --index=index index of the container if there are multiple instances of a service [default: 1] -e, --env KEY=VAL Set environment variables (can be used multiple times, not supported in API < 1.25) -w, --workdir DIR Path to workdir directory for this command. Error occurred. See console output above. zuiver@zuiver-Latitude-E5430-non-vPro:~/Blockchain-POC/Fabric-Generic/fabric-starter$ ./consortium-add-org.sh org1 Add org1 to consortium SampleConsortium Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/admincerts http://www.org1.example.com/msp/admincerts/Admin@org1.example.com-cert.pem --2018-10-15 04:16:00-- http://www.org1.example.com/msp/admincerts/Admin@org1.example.com-cert.pem Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5 Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|:80... connected. HTTP request sent, awaiting response... 304 Not Modified File 'crypto-config/peerOrganizations/org1.example.com/msp/admincerts/Admin@org1.example.com-cert.pem' not modified on server. Omitting download.

Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/cacerts http://www.org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem --2018-10-15 04:16:01-- http://www.org1.example.com/msp/cacerts/ca.org1.example.com-cert.pem Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5 Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|: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.

Execute: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c wget --verbose -N --directory-prefix crypto-config/peerOrganizations/org1.example.com/msp/tlscacerts http://www.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem --2018-10-15 04:16:02-- http://www.org1.example.com/msp/tlscacerts/tlsca.org1.example.com-cert.pem Resolving www.org1.example.com (www.org1.example.com)... 172.25.0.5 Connecting to www.org1.example.com (www.org1.example.com)|172.25.0.5|: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: docker-compose -f ./docker-compose-orderer.yaml exec cli.orderer bash -c peer channel fetch config crypto-config/configtx/orderer-system-channel.pb -o orderer.example.com:7050 -c orderer-system-channel --tls --cafile /etc/hyperledger/crypto/orderer/tls/ca.crt && chown 1000 -R crypto-config/ 2018-10-15 04:16:03.480 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2018-10-15 04:16:03.493 UTC [cli/common] readBlock -> INFO 002 Got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN} Execute a command in a running container

Usage: exec [options] [-e KEY=VAL...] SERVICE COMMAND [ARGS...]

Options: -d, --detach Detached mode: Run command in the background. --privileged Give extended privileges to the process. -u, --user USER Run the command as this user. -T Disable pseudo-tty allocation. By default docker-compose exec allocates a TTY. --index=index index of the container if there are multiple instances of a service [default: 1] -e, --env KEY=VAL Set environment variables (can be used multiple times, not supported in API < 1.25) -w, --workdir DIR Path to workdir directory for this command. Error occurred. See console output above.

LogeswaranA commented 6 years ago

It's an issue with existing docker containers that were running for prior network. I cleared the containers & re-submitted. It went fine. thanks