I trying to build the first-network using fabric samples.
when i run ./byfn.sh -m generate, each time this error appears
./byfn.sh: line 367: 1970 Segmentation fault configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block
+ res=139
+ set +x
Failed to generate orderer genesis block...
Any help would be great appreciate.
fixed.
Using bootstrap.sh downloaded a wrong version of configtxgen.
download the bin folder manually from https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric/ solve the problem!
You can run the bootstrap.sh script with a specified version:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s -- 2.0.0 1.4.4 0.4.18
This will download and install all the binaries required for Fabric 2.0.0, Fabric CA 1.4.4 and third party docker images 0.4.18
This solution worked for me.
Related
When i run ./byfn.sh up send me this error.
LOCAL_VERSION=1.4.3
DOCKER_IMAGE_VERSION=2.3.3
=================== WARNING ===================
Local fabric binaries and docker images are
out of sync. This may cause problems.
===============================================
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "scripts/script.sh": stat scripts/script.sh: no such file or directory: unknown
ERROR !!!! Test failed.
I see the LOCAL_VERSION is different to DOCKER_IMAGE_VERSION. How could i change that? Well... I think thats the problem roght?
Thank you.
your bin folder in fabric-samples has binaries of version 1.4.3 where as docker images version is 2.2.3.
docker images to list the images in the system.
The latest fabric-samples doesn't have the BYFN it now works around test-network with 2 organizations and 1 peer each. download the latest fabric-samples and binaries with the curl command curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s it will download the latest samples and binaries and the docker images if you need of specific version like 2.2.3 then
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s -- 2.2.3 1.5.2
you can find more details here in this link for getting latest samples and binaries https://hyperledger-fabric.readthedocs.io/en/release-2.2/install.html#install-samples-binaries-and-docker-images
Error =>
InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory GOPATH/src/github.com/hyperledger/fabric/fastfabric/scripts/crypto-config/peerOrganizations/hulu/users/Admin#hulu/msp/: Setup error: nil conf reference
I am trying to start fastfabric as mentioned in https://github.com/cgorenflo/fabric/tree/fastfabric-1.4. When I run ./run_storage.sh , I get the above error.
your configtxgen and cryptogen version may be not mached. Version of binaries should be 1.4.0. use the following command to download fabric binary version 1.4.0:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s -- 1.4.0 1.4.0 0.4.18 -s -d
it will only download the binaries.Then place the binaries to
fabric/fastfabric/scripts/bin
folder. Hope this will solve your problem
Bump -- anyone???
Is there any documentation for mac / linux that clearly describes how to install fabric and fabric-ca without having to install fabric-samples?
IOW, something that describes exactly:
-- what preqs are needed;
-- where it has to be installed (that pesky gopath issue);
-- what directory structures need to be in place for orgs, chaincode, etc.;
-- what needs to be built / made and how
in order to install a fresh fabric so one can build a POC but without all the fabric-samples, BYFN, first-network baggage? Please? Thanks.
By adding -d -s in the curl statement which fabric documentation has for installing fabric images and samples
-s by-passes fabric samples
-d by-passes docker images
Its better just to use -s
statement would be like
curl -sSL link -s -- -d -s
I am trying to add a new peer to a SOLO hyperledger setup. I used hyperledger composer. I updated the crypto-config.yaml file to make the count for peers to 2 and also other changes. But when I try to run this command under hlfv1/composer cryptogen generate --config=./crypto-config.yaml, I get this error Cryptogen command not found. How to I fix that? I used the fabric-dev-servers scripts from the link https://hyperledger.github.io/composer/latest/installing/development-tools.html to setup my development environment.
Please help.
You will need to install Hyperledger Fabric native binaries. The Composer playground does not use these for their sample.
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.2.0 1.2.0 0.4.10 -s -d
This will download the binaries for Hyperledger Fabric 1.2 and place them in a directory named bin in your current working directory. It will also create a config directory with the default config files for the Hyperledger Fabric sample applications. To download version 1.1 binaries.
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.1.1 1.1.0 0.4.7 -s -d
I'm trying to upgrade to 1.2. I follow the documentation "Upgrade your components network" using byfn. (https://hyperledger-fabric.readthedocs.io/en/release-1.2/upgrading_your_network_tutorial.html#launch-a-v1-1-network)
When I run : ./byfn.sh up -t 3000 -i 1.1.0
I got this error :
LOCAL_VERSION=1.1.0-alpha
DOCKER_IMAGE_VERSION=1.1.0
=================== WARNING ===================
Local fabric binaries and docker images are
out of sync. This may cause problems.
===============================================
ERROR! Local Fabric binary version of 1.1.0-alpha does not match this newer version of BYFN and is unsupported. Either move to a later version of Fabric or checkout an earlier version of fabric-samples.
The documentation says that I have to clean up images and run the example again. So I did, I removed all images with docker rmi -f $(docker images -a -q) and I run the example again.
Images have been downloaded again and I still got this error about the 1.1.0-alpha version.
Obvisously, I am missing something...
Does someone have any clue ?
The issue is that you have the alpha version of the binaries used by the sample.
I'd suggest deleting the "fabric-samples/bin" directory and then downloading v1.1.0 again:
cd fabric-samples
rm -Rf bin
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.1.0