FreeFem / FreeFem-docker

FreeFEM Docker image
Other
4 stars 7 forks source link

Error when building docker image #6

Closed fagnelli closed 2 years ago

fagnelli commented 2 years ago

Hi all,

I have tried installing FreeFem on Docker today from my Windows machine, using the Dockerfile provided in this repo and using the following command:

docker build --network=host --tag freefem . --no-cache --progress plain

I am getting an error during this command ./3rdparty/getall -o PETSc -a. The error is that "pkg/petsc-3.17.0.tar.gz" is not found.

Where can I find the petsc-3.17.0? Thank you in advance.

prj- commented 2 years ago

PETSc releases are available at the following URL: https://ftp.mcs.anl.gov/pub/petsc/release-snapshots/.

sgarnotel commented 2 years ago

This error can happen, in the case of PETSc, if the website www.mcs.anl.gov/petsc is temporary down (see more here). I think you can try to build the docker again

sgarnotel commented 2 years ago

This seems to be a deeper bug, do you have the same log as me:

#10 13.80 2022-11-16 13:57:51 (15.1 MB/s) - 'pkg/petsc-3.17.0.tar.gz' saved [17104517/17104517]
#10 13.80 
#10 13.80 ../bin/build/download: line 61: file: command not found
#10 13.80  incorrect file type => removing  pkg/petsc-3.17.0.tar.gz
#10 13.80 Download failed from https://www.mcs.anl.gov/petsc/mirror/release-snapshots/petsc-3.17.0.tar.gz of petsc-3.17.0.tar.gz
#10 13.80 Try other site: http://pkgs.freefem.org/petsc-3.17.0.tar.gz
#10 13.81 --2022-11-16 13:57:51--  http://pkgs.freefem.org/petsc-3.17.0.tar.gz
#10 13.81 Resolving pkgs.freefem.org (pkgs.freefem.org)... ::ffff:134.157.2.3, 134.157.2.3
#10 13.88 Connecting to pkgs.freefem.org (pkgs.freefem.org)|::ffff:134.157.2.3|:80... connected.
#10 13.88 HTTP request sent, awaiting response... 404 Not Found
#10 13.89 2022-11-16 13:57:51 ERROR 404: Not Found.
#10 13.89 
#10 13.89 Error download pkg/petsc-3.17.0.tar.gz
#10 13.89 Download 2 times failed from http://pkgs.freefem.org/petsc-3.17.0.tar.gz of petsc-3.17.0.tar.gz
#10 13.89 Try (2 times)  other site: http://104.46.50.187/pkg/petsc-3.17.0.tar.gz
#10 13.89 --2022-11-16 13:57:51--  http://104.46.50.187/pkg/petsc-3.17.0.tar.gz
#10 13.89 Connecting to 104.46.50.187:80... failed: Connection timed out.
#10 43.90 Retrying.
#10 43.90 
#10 44.90 --2022-11-16 13:58:22--  (try: 2)  http://104.46.50.187/pkg/petsc-3.17.0.tar.gz
#10 44.90 Connecting to 104.46.50.187:80... failed: Connection timed out.
#10 74.90 Giving up.
#10 74.90 
#10 74.90 Error download pkg/petsc-3.17.0.tar.gz
#10 74.90 Download failed (MD5 check) from https://www.mcs.anl.gov/petsc/mirror/release-snapshots/petsc-3.17.0.tar.gz of petsc-3.17.0.tar.gz
#10 74.90 Try other site: http://pkgs.freefem.org/petsc-3.17.0.tar.gz
#10 74.90 --2022-11-16 13:58:52--  http://pkgs.freefem.org/petsc-3.17.0.tar.gz
#10 74.90 Resolving pkgs.freefem.org (pkgs.freefem.org)... ::ffff:134.157.2.3, 134.157.2.3
#10 74.95 Connecting to pkgs.freefem.org (pkgs.freefem.org)|::ffff:134.157.2.3|:80... connected.
#10 74.95 HTTP request sent, awaiting response... 404 Not Found
#10 74.96 2022-11-16 13:58:52 ERROR 404: Not Found.
#10 74.96 
#10 74.96 Error download pkg/petsc-3.17.0.tar.gz
#10 74.96 
#10 74.96 ERROR: ../bin/build/download http://104.46.50.187/pkg/petsc-3.17.0.tar.gz pkg/petsc-3.17.0.tar.gz  FAILED
#10 74.96 ERROR 2: ../bin/build/download http://pkgs.freefem.org/petsc-3.17.0.tar.gz pkg/petsc-3.17.0.tar.gz  FAILED
#10 74.96 ERROR2: INVALID MD5 for petsc-3.17.0.tar.gz  d41d8cd98f00b204e9800998ecf8427e
------
executor failed running [/bin/sh -c autoreconf -i     && ./configure --enable-download --enable-optim --enable-generic --prefix=/usr/freefem/     && ./3rdparty/getall -o PETSc -a]: exit code: 1

I will try to fix it as soon as possible

fagnelli commented 2 years ago

@sgarnotel Yes, I have precisely the same log

sgarnotel commented 2 years ago

Ok, that was just a missing package that I fix in https://github.com/FreeFem/FreeFem-docker/commit/4265c530dfab0ac1083f391ed3d78be45595a193 You can pull and build I let you close the issue if all works fine Thank you for the feedback