Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #88

Open
laurentvinc opened this issue Sep 9, 2019 · 10 comments

Comments

@laurentvinc
Copy link

I reopen the issue : #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?

@horeaporutiu
Copy link
Contributor

@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.

@horeaporutiu
Copy link
Contributor

also, make sure you do ./clean.sh before each time you do ./build_mac.sh

@laurentvinc
Copy link
Author

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

@laurentvinc
Copy link
Author

?

@varunagarwal315
Copy link

varunagarwal315 commented Sep 12, 2019 via email

@horeaporutiu
Copy link
Contributor

@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.

@laurentvinc
Copy link
Author

laurentvinc commented Sep 19, 2019

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.

@horeaporutiu
Copy link
Contributor

horeaporutiu commented Sep 23, 2019

@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.

@laurentvinc
Copy link
Author

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

@raviteja2109
Copy link

raviteja2109 commented Feb 22, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants