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
Related
When running the command: curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s provided on the hyperledger page, I get the following.
Clone hyperledger/fabric-samples repo
===> Cloning hyperledger/fabric-samples repo and checkout v1.4.4
Cloning into 'fabric-samples'...
remote: Enumerating objects: 4427, done.
remote: Total 4427 (delta 0), reused 0 (delta 0), pack-reused 4427
Receiving objects: 100% (4427/4427), 1.61 MiB | 2.81 MiB/s, done.
Resolving deltas: 100% (2179/2179), done.
Note: checking out 'v1.4.4'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at bc72f3e Remove Stalebot
Pull Hyperledger Fabric binaries
===> Downloading version 1.4.4 platform specific fabric binaries
===> Downloading: https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-darwin-amd64-1.4.4.tar.gz
https://github.com/hyperledger/fabric/releases/download/v1.4.4/hyperledger-fabric-darwin-amd64-1.4.4.tar.gz: Unsupported scheme.
tar: Error opening archive: Failed to open 'hyperledger-fabric-darwin-amd64-1.4.4.tar.gz'
rm: hyperledger-fabric-darwin-amd64-1.4.4.tar.gz: No such file or directory
==> There was an error downloading the binary file.
------> 1.4.4 platform specific fabric binary is not available to download <----
Not sure if this is due to the latest MacOs Catalina 10.15.2 update or something to do with the hyperledger fabric project itself?
Has anyone run into the same issue?
Man, I just can't win on this one. We used to use curl to download the artifacts in the script, but I recently changed it to use wget as lots of users experienced broken connections and it was meant to help alleviate that pain. But it seems wget has an issue (in some versions) with URL's rendered using variables. Can you try this one instead, which is the commit prior to me switching it to wget:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/977ed80d3f3b4fe42dfb8f04cc93a92ab75b709e/scripts/bootstrap.sh | bash -s
No, it doesn't seem like an issue with your MacOs.I think you should try below curl command mentioned in the Hyperledger fabric documentation for getting the binaries, fabric latest images and fabric samples.
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s
Here you can get the latest production release binaries or if you want a specific release.
You can also find an in-depth explanation of fabric binaries in the same documentation.
I had the same problem, for me I had to install wget first with brew install wget, then used the curl to get the binaries.
try with root
sudo -i
and then curl -sSL Hyperledger binary -s -- 1.4.1 1.4.1 0.4.15
It worked for me
What I did was to download the tar file separately from the github repository mentioned in the shell script (https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh) and extracted it, and then removed the pull binaries part from the the same shell script and then was able to run it fine.
better you use this command
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s
its directly install fabricbinaries and images
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
Fabric Docker image version of 1.1.0-alpha does not match this newer version of BYFN and is unsupport. Either move to a later version of Fabric or checkout an earlier version of fabric-samples.
Local fabric binaries and docker images are
out of sync. This may cause problems.
enter image description here
is their any terminal commands in Ubuntu 16.04 LTS to solve this problem?
Upgrade your local environment by running
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 1.1.0
Go to the fabric-samples folder, check the git branch by:
git branch
Just try to change to another branch and try, for example, using Fabric 1.0 :
I am following the tutorial to build the first network at Building your first network. When in fabric-samples/first-network, I run the command:
./byfn.sh -m generate
two peers, channel, chaincode, orderer genesis block and cryptogen are created successfully. But when I run the command:
./byfn.sh -m up
I get the error "line 159: docker compose: command not found. ERROR!!! Undable to start network."
I have made a new clean Ubuntu 16.04 and installed everything to make sure everything is clean. But again I get the same error. When I nano ./byfn.sh, line 159 is as follows:
IMAGE_TAG=$IMAGETAG docker-compose -f $COMPOSE_FILE up -d 2>&1
And when I run:
./byfn.sh -m up -l node
I am getting the same error. The error message is shown in the image below:
When I run:
./byfn.sh -m down
I get a different error. This time the error is at lines 235 and 236; result of nano is as follows:
docker-compose -f $COMPOSE_FILE -f $COMPOSE_FILE_COUCH down --volumes
docker-compose -f $COMPOSE_FILE down –volumes
I have added go to path as shown in installation guide. version of node is also compatible as mentioned v9.x is not supported yet, I have installed v8.
Should I make changes to liens 159, 235 and 236 of ./byfn.sh? If so, how should I change it? Or ahve I done some setup incorrectly?! I appreciate your help.
Thank you.
docker-compose is another software package that has to be installed (it is a tool for defining and running multi-container Docker applications) and you didn't installed it.
To install docker-compose run these commands:
sudo apt-get update
sudo apt-get install docker-compose
Then run the byfn file.
Reference:https://docs.docker.com/compose/overview/