Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm a newer for the hyperledger and just studying it by following the tutorials on http://hyperledger-fabric.readthedocs.io. I am trying to build the first network using "first-network" in the fabric-samples. The ./byfn -m generate is OK. But after typing ./byfn -m up, I meet

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

error and the process hangs.

What is going wrong?

PS: The OS is Windows 10.

like image 218
weijia_wang Avatar asked Jul 27 '17 13:07

weijia_wang


2 Answers

Check to see 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).

Restart the Docker daemon after applying local firewall changes.

like image 86
danrb1978 Avatar answered Oct 15 '22 13:10

danrb1978


I was facing the same issue and could resolve it.

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" 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.

like image 24
Javad Avatar answered Oct 15 '22 13:10

Javad