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

Cannot build docker because ERROR: Service 'misp-core' failed to build: COPY failed: stat wheels: file does not exist #11

Closed
Danouchka opened this issue Jan 8, 2024 · 16 comments

Comments

@Danouchka
Copy link

Hello
I cannot build the docker because I get
tting up nginx (1.18.0-6.1+deb11u3) ...
Processing triggers for libc-bin (2.31-13+deb11u7) ...
Processing triggers for ca-certificates (20210119) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for php7.4-cli (7.4.33-1+deb11u4) ...
Processing triggers for php7.4-fpm (7.4.33-1+deb11u4) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Removing intermediate container f4ce4511c89c
---> b8f91fdc9f02
Step 42/53 : COPY --from=python-build /wheels /wheels
ERROR: Service 'misp-core' failed to build: COPY failed: stat wheels: file does not exist

Please how to debug and correct ?

@Danouchka Danouchka changed the title Cannot build docker Cannot build docker because ERROR: Service 'misp-core' failed to build: COPY failed: stat wheels: file does not exist Jan 8, 2024
@Danouchka
Copy link
Author

My docker version

docker version

Client: Docker Engine - Community
Version: 24.0.7
API version: 1.43
Go version: go1.20.10
Git commit: afdd53b
Built: Thu Oct 26 09:08:17 2023
OS/Arch: linux/amd64
Context: default

Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:08:17 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.26
GitCommit: 3dd1e886e55dd695541fdcd67420c2888645a495
runc:
Version: 1.1.10
GitCommit: v1.1.10-0-g18a0cb0
docker-init:
Version: 0.19.0
GitCommit: de40ad0

@ostefano
Copy link
Collaborator

ostefano commented Jan 8, 2024

@Danouchka try to ignore the cache while building, i.e., docker-compose build --no-cache

@Danouchka
Copy link
Author

Thank you @ostefano ! But the error still persits

@ostefano
Copy link
Collaborator

ostefano commented Jan 8, 2024

Interesting. I assume you created the .env file, right?
As a last resort, try to remove existing images/containers using the command outlined in the Troubleshooting section fo the readme file.

@Danouchka
Copy link
Author

Hello

Yes .env file was created.
The VM was brand new (Debian on GCP Compute Linux sa-da-fleet-demo 5.10.0-27-cloud-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64 GNU/Linux )
There were no previous images or container running and every time I do remove all docker images

@ostefano
Copy link
Collaborator

ostefano commented Jan 8, 2024

That is weird, did you try the command docker system prune -a?
Try also the command docker compose build without dash.

As a last resort, try to update the docker using the link provided.
I know it should not be needed, I am just trying to understand if something is afoot.

Also, are you sure you have enough disk space available?

@Danouchka
Copy link
Author

Hi will try
My disk is 20GB, do you think it's not enough ?
I will double the disk space and will let you know

@ostefano
Copy link
Collaborator

ostefano commented Jan 8, 2024

There is also the option --force-recreate that might help.

Do you have 20GB of free space or 20GB in total?
I have been burnt a couple of times already with disk space constraint.

The error you are seeing is compatible with a layer that completed building but with some non fatal errors (like disk space issues).

@Danouchka
Copy link
Author

it was 20GB in total :-)

@Danouchka
Copy link
Author

Indeed that works better with 40GB and docker compose , not docker compose
I want to expose it publicly , should I change the base URL to my FQDN ?

@ostefano
Copy link
Collaborator

ostefano commented Jan 8, 2024

Correct.

@ostefano ostefano closed this as completed Jan 8, 2024
@Danouchka
Copy link
Author

Hello, I changed the base URL to 'https://misp01.dyndns.org' but the CN is still localhost
As a result I get that when connecting
Capture d’écran 2024-01-08 à 14 41 21

@ostefano
Copy link
Collaborator

ostefano commented Jan 8, 2024

This is expected because you are using self signed certificates. You need to replace them.
Also, this is not anymore a concern of this specific image. Please use gitter or other avenues to get further support.

@Danouchka
Copy link
Author

Thank you very much for all your support. I will make out with the certificate

@ncsc-fi-kimmo
Copy link

Btw if you use the old command docker-compose instead of the new docker compose I get the same ERROR: Service 'misp-core' failed to build: COPY failed: stat wheels: file does not exist error. Use the new compose command.

@ostefano
Copy link
Collaborator

ostefano commented Feb 22, 2024

@ncsc-fi-kimmo it is because of a combination of docker-related packages installed by some distros.

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

3 participants