Hyperledger get bin bash scripts script sh No such file or directory when running byfn -m up

+1 vote

I'm new to Hyperledger and I am using windows 10 and trying to build the first network using "first-network" in the fabric-samples. The 

./byfn -m generate 

is executing, but after typing 

./byfn -m up

I get the following error

/bin/bash: ./scripts/script.sh: No such file or directory

the process then goes on to hangs. Can anyone please help me? 

Mar 27, 2018 in Blockchain by Gabriel
• 680 points
3,714 views
Thanks for the link...the videos are good

2 answers to this question.

+1 vote
Best answer

You can follow these steps :

  1. In your docker terminal check the path $HOME. Type the command echo $HOME.
  2. Make sure that your fabric-samples folder is the same path as of the variable $HOME.
  3. Follow the steps for generating your first network.

Also check if you have a local firewall enabled. Depending on your docker configuration, a firewall may prohibit the docker daemon from accessing share drives as specified in docker setup (windows). The shared network drive needs to be working for any directory on the local machine to be identified from the container.

Docker for example has the "Shared drive" which is usually C:\ under which all your byfn.sh paths shall be present. Second condition is you need to be running the byfn.sh script with the same user who was authenticated to share the drives on the container. Your password change on the windows environment could break the already existing shared drives with the containers, hence creating problems in starting them.

Restart the Docker daemon after applying local firewall changes.

answered Mar 27, 2018 by ned_crew
• 1,610 points

selected Aug 2, 2018 by Omkar
+1 vote

If all the prerequisites are already installed 

  • Go should be installed and $GOPATH variable should be set

  • Make sure Npm is installed. Run npm -v to check

  • See if Python is installed. Run python --version to check

After this,  try to debug which command within ./scripts/script.sh is failing and fix/install a missing dependency.

answered Jun 14, 2018 by Perry
• 17,100 points

Related Questions In Blockchain

0 votes
1 answer

Hyperledger Fabric: cp: cannot stat ‘build/docker/gotools/bin/protoc-gen-go’: No such file or directory

Do this: $go get -u github.com/golang/protobuf/protoc-gen-go $ cp $GOPATH/bin/protoc-gen-go build/docker/gotools/bin/ Now ...READ MORE

answered Oct 29, 2018 in Blockchain by Omkar
• 69,220 points
1,882 views
0 votes
1 answer

Getting error when i execute ./byfn.sh -m up command.

The error is caused because you're trying ...READ MORE

answered Jul 12, 2018 in Blockchain by slayer
• 29,370 points
1,068 views
0 votes
1 answer

How to solve “ltdl.h: No such file or directory” error?

It seems like you are missing header ...READ MORE

answered Jul 26, 2018 in Blockchain by slayer
• 29,370 points
3,172 views
0 votes
1 answer

Hyperledger fabric ./byfn.sh -m up command hangs during execution

Run the following command: sudo docker stop $(docker ...READ MORE

answered Jul 30, 2018 in Blockchain by slayer
• 29,370 points
707 views
0 votes
2 answers

Hyperledger: ./byfn.sh -m up gives error

just follow those steps: docker ps -aq ...READ MORE

answered Oct 21, 2020 in Blockchain by anonymous
1,245 views
+2 votes
1 answer
0 votes
3 answers
0 votes
1 answer
+1 vote
2 answers

Challenge while setting up Hyperledger Fabric 1.0 in Ubuntu 16.04

The rocksdb error you're seeing wouldn't be ...READ MORE

answered Mar 27, 2018 in Blockchain by ned_crew
• 1,610 points

edited Jun 8, 2020 by Sirajul 1,152 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP