锯齿供应链/ bin / sh:1:bin / splice_json:权限被拒绝

时间:2019-09-24 14:43:22

标签: blockchain hyperledger hyperledger-sawtooth

我正在尝试通过自己的计算机运行锯齿供应链,以更好地了解环境。但是,运行

后,我遇到了一个问题
    docker-compose up

    git clone https://github.com/hyperledger/sawtooth-supply-chain
cd sawtooth-supply-chain
git diff 50c404c >bionic.patch
patch --dry-run -R -p1 <bionic.patch
patch           -R -p1 <bionic.patch
sudo docker-compose up

我现在在步骤9/11遇到错误,这是splice_JSON文件构建

    Step 9/11 : RUN mkdir /node_deps   && bin/splice_json     asset_client/package.json     fish_client/package.json     server/package.json     > /node_deps/package.json   && cd /node_deps && npm install && cd -   && ln -s /node_deps/node_modules asset_client/   && ln -s /node_deps/node_modules fish_client/   && ln -s /node_deps/node_modules server/
 ---> Running in ed3fb485568e
/bin/sh: 1: bin/splice_json: Permission denied
Service 'shell' failed to build: The command '/bin/sh -c mkdir /node_deps   && bin/splice_json     asset_client/package.json     fish_client/package.json     server/package.json     > /node_deps/package.json   && cd /node_deps && npm install && cd -   && ln -s /node_deps/node_modules asset_client/   && ln -s /node_deps/node_modules fish_client/   && ln -s /node_deps/node_modules server/' returned a non-zero code: 126

我尝试执行chmod 777 / bin / splice_json并在提升的平台上运行git bash

感谢您的协助

1 个答案:

答案 0 :(得分:0)

运行patch可能已从./bin下的一个或多个文件中删除了可执行权限。在运行docker-compose之前,请恢复所有./bin/*文件的执行权限:

chmod +x ./bin/*