build-blockchain-insurance-app
build-blockchain-insurance-app copied to clipboard
Build is throwing error - Step 3/3 : COPY crypto /orderer/crypto COPY failed: stat /var/lib/docker/tmp/docker-builder825722007/crypto: no such file or directory
I reopen the issue : https://github.com/IBM/build-blockchain-insurance-app/issues/72
as I have got the same error and execute the recommendations described in #72 without success.
my situation: I ran the code pattern https://github.com/IBM/build-blockchain-insurance-app/blob/master/README.md/ until the Step 10 (without any issue).
when I used the command
./build_mac.sh
I have got the message
Step 3/3 : COPY crypto /orderer/crypto COPY failed: stat /var/lib/docker/tmp/docker-builder632637939/crypto: no such file or directory Pulling insurance-ca (insurance-ca:)... ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing. Continue with the new image? [yN]N
I reviewed the issues #72 and #68 and updated my
peer-base.yaml file, by replacing the line
CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=build-blockchain-insurance-app_default
with CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=buildblockchaininsuranceapp_default
I tried again and have got the same error. Do you have any more suggestion to fix this issue?
@laurentvinc
did you pull the latest version of the code? You don't need to modify your yaml files at all. Just pull the latest version of the code, ensure you are using
build-blockchain-insurance-app$ node -v
v8.9.0
build-blockchain-insurance-app$ npm --version
5.5.1
and then run ./build_mac and all should be fine. Just tried this a couple minutes ago on my Mac and all worked fine.
also, make sure you do ./clean.sh
before each time you do ./build_mac.sh
Hi Thanks for the answer,
I far as I know, there is no request to update yaml files in you labs. it might be done in one of your script?
to be sure to get the latest version, I clone one more time your project, install the dependencies. I updated the IbpConnection file to point to my Blockchain instance ran ./clean.sh and ./build_mac.sh I have got the same issue!
BTW my versions: macbook-pro-3:build-blockchain-insurance-app vincent$ node -v v8.12.0 macbook-pro-3:build-blockchain-insurance-app vincent$ npm --version 6.4.1
?
In other repositories like basic-network
the image in docker-compose file
is usually hyperledger/fabric-ca:1.x.x
for the CA. Would this change
work? Not entirely sure how this works, Horea any thoughts?
insurance-ca:
container_name: insurance-ca
extends:
file: ./ca-base.yaml
service: ca-base
image: hyperledger/fabric-ca:1.4.0
ports:
- 7054:7054
On Thu, Sep 12, 2019 at 12:33 PM laurentvinc [email protected] wrote:
?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/IBM/build-blockchain-insurance-app/issues/88?email_source=notifications&email_token=AC5Y3674WZWERAGSOGZ3OO3QJHSTHA5CNFSM4IU3HKS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6Q4EHI#issuecomment-530694685, or mute the thread https://github.com/notifications/unsubscribe-auth/AC5Y366LXDEALIKQ6GIGLCDQJHSTHANCNFSM4IU3HKSQ .
@laurentvinc Please switch to Node version 8.9.x as listed in the prerequisites.
Node.js - Node v8.9.x
See if this solves the problem.
I update the node version to use the 8.9.4 made a ./clean and ./build_mac.sh . the issue is still there!
build-blockchain-insurance-app vincent$ node --version v8.9.4 build-blockchain-insurance-app vincent$ ./build_mac.sh
Step 3/3 : COPY crypto /orderer/crypto COPY failed: stat /var/lib/docker/tmp/docker-builder626448622/crypto: no such file or directory Pulling insurance-ca (insurance-ca:)... ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.
@laurentvinc
I see in your message that you said "N" to the new image.
Have you tried saying "yes" to continue with new image?
i.e.
Continue with the new image? [yN] Y
?
I've just tried this on my mac with Node 8.9.4 and
build-blockchain-insurance-app$ npm --version
5.6.0
and all worked fine.
Hi event answering Y, I didn't succeed below the answer of my laptop
Step 3/3 : COPY crypto /orderer/crypto COPY failed: stat /var/lib/docker/tmp/docker-builder248567345/crypto: no such file or directory Pulling insurance-ca (insurance-ca:)... ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.
Continue with the new image? [yN]Y Pulling insurance-ca (insurance-ca:)... ERROR: pull access denied for insurance-ca, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Hi All,
I'm facing the same issue. Do we have fix for this?
I'm using node 8.17.0 with npm 6.13.4
Also Im seeing an seeing an issue with genesis block creation
Error on outputBlock: could not create bootstrapper: could not create channel group: error adding policies to channel group: no policies defined