Hyperledger: get "/bin/bash:./scripts/script.sh: There is no such file or directory" on startup ./byfn -m up "

I am new to hyperlink and just learning it by following the tutorials at http://hyperledger-fabric.readthedocs.io . I am trying to build the first network using "first-network" in fabric templates. ./byfn -m generate OK. But after entering ./byfn -m up , I meet

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

error, and the process freezes.

What is going wrong?

PS: OS - Windows 10.

+5
source share
3 answers

Follow these steps:

  • In your docker terminal, check the $HOME path. Enter the echo $HOME command.
  • Make sure your fabric swatch folder is the same path as the $HOME variable.
  • Follow the instructions to create the first network.
+1
source

Check if the local firewall is enabled. Depending on the configuration of your docker, a firewall may prevent docker daemons from accessing shared drives, as specified in docker (windows) settings.

Restart the Docker daemon after applying local changes to the firewall.

0
source

I ran into the same problem and was able to solve it.

The shared network drive must work in any directory on the local computer that must be identified from the container.

For example, Docker has a "Shared Disk", usually c: \, under which all your byfn.sh paths should be present. The second condition is that you need to run byfn.sh script with the same user who has been authenticated for disk sharing in the container. Changing the password in a Windows environment can damage existing shared drive disks with containers, which causes problems when they start.

0
source

Source: https://habr.com/ru/post/1270274/


All Articles