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

℡╲_俬逩灬. 提交于 2019-11-30 04:57:58

问题


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.


回答1:


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.




回答2:


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.




回答3:


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.

or try the below solution.

Follow these steps :

  1. Go to settings of docker.
  2. Click on reset credentials.
  3. Now check if the shared drives include the required drives or not.
  4. If not, then include them apply your changes and restart your docker and your bash where you were trying to start your network.


来源:https://stackoverflow.com/questions/45352547/hyperledger-get-bin-bash-scripts-script-sh-no-such-file-or-directory-whe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!