Hyperledger: get “/bin/bash: ./scripts/script.sh:

2019-02-13 21:47发布

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.

3条回答
该账号已被封号
2楼-- · 2019-02-13 22:15

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.
查看更多
我命由我不由天
3楼-- · 2019-02-13 22:25

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.

查看更多
Deceive 欺骗
4楼-- · 2019-02-13 22:29

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.

查看更多
登录 后发表回答