Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory

I am getting this error while trying to bring up the first hyperledger network:

$ ./byfn.sh -m up
Starting with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
2018-05-13 07:33:04.240 UTC [main] main -> INFO 001 Exiting.....
LOCAL_VERSION=1.1.0
DOCKER_IMAGE_VERSION=1.1.0
Starting peer1.org1.example.com ... done
Starting peer1.org2.example.com ... done
Starting peer0.org1.example.com ... done
Starting peer0.org2.example.com ... done
Starting orderer.example.com    ... done
cli is up-to-date
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"scripts/script.sh\": stat scripts/script.sh: no such file or directory": unknown
ERROR !!!! Test failed

The main folder fabric-samples is under the folder C:\User\XXXXX. This is the same path for $HOME as well. I can see that the file script.sh is present under fabric-samples/first-network/scripts.

Any other setting that needs to be done to help execute this?

Go version:

go version go1.10.2 windows/amd64
like image 242
Arun Avatar asked Nov 08 '22 07:11

Arun


1 Answers

I have just encountered the above error and have processed the following as mount the drive by command:

sudo mkdir /c
sudo mount --bind /mnt/c /c

cd /c/<your path>/fabric-samples/first-network
./byfn.sh generate
./byfn.sh up

good luck!

like image 51
kitamaru Avatar answered Nov 14 '22 23:11

kitamaru