Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Build error when running demo #9

Closed
psychemedia opened this issue May 4, 2021 · 5 comments
Closed

Build error when running demo #9

psychemedia opened this issue May 4, 2021 · 5 comments
Labels
wontfix This will not be worked on

Comments

@psychemedia
Copy link
Contributor

Running a demo from the current repo raises an error in the build when trying to pull from the apt repo (unsigned?).

[+] Building 1.2s (7/17)                                                        
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 1.06kB                                     0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/python:3.9-slim-buster  0.5s
 => [ 1/13] FROM docker.io/library/python:3.9-slim-buster@sha256:d35ab472  0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 1.07kB                                        0.0s
 => CACHED [ 2/13] RUN mkdir /home/ou-user &&     useradd -u 1000 -g 100   0.0s
 => ERROR [ 3/13] RUN apt-get update -y &&     apt-get install -y tini gi  0.6s
------                                                                          
 > [ 3/13] RUN apt-get update -y &&     apt-get install -y tini git:            
#6 0.370 Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]                                                                    
#6 0.382 Get:2 http://deb.debian.org/debian buster InRelease [121 kB]           
#6 0.401 Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]  
#6 0.439 Err:1 http://security.debian.org/debian-security buster/updates InRelease
#6 0.439   At least one invalid signature was encountered.
#6 0.496 Err:2 http://deb.debian.org/debian buster InRelease
#6 0.496   At least one invalid signature was encountered.
#6 0.549 Err:3 http://deb.debian.org/debian buster-updates InRelease
#6 0.549   At least one invalid signature was encountered.
#6 0.554 Reading package lists...
#6 0.562 W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: At least one invalid signature was encountered.
#6 0.562 E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed.
#6 0.562 W: GPG error: http://deb.debian.org/debian buster InRelease: At least one invalid signature was encountered.
#6 0.562 E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed.
#6 0.562 W: GPG error: http://deb.debian.org/debian buster-updates InRelease: At least one invalid signature was encountered.
#6 0.562 E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
------
executor failed running [/bin/sh -c apt-get update -y &&     apt-get install -y tini git]: exit code: 100
@mmh352
Copy link
Owner

mmh352 commented May 4, 2021

Very strange. I've just run it myself and it builds fine. I would suggest removing the python:3.9-slim-buster image and running docker image prune to clear as much as possible and then re-building. My guess on this error would be that it is somehow caused by a network error.

@psychemedia
Copy link
Contributor Author

Yeah, I did some housekeeping just in case, but it's still not happy. I did wonder whether the tagged image you seem to be using (from the build trace, I see [ 1/10] FROM docker.io/library/python:3.9-slim-buster@sha256:d35ab472 ) has some apt-repo settings that are somehow stale?

@mmh352
Copy link
Owner

mmh352 commented May 4, 2021

What version of docker are you running and what operating system?

@psychemedia
Copy link
Contributor Author

psychemedia commented May 4, 2021

Ah, ok.. it may be a space issue with Docker on Mac (eg docker-library/php#898 (comment)); just done some proper housekeeping and that appears to fix it.

Weird - I've not noticed the same issue with other builds recently. Hmm...

This is a good gotcha to know though, eg when in the forums handling student issues...

@mmh352
Copy link
Owner

mmh352 commented May 4, 2021

Excellent. I'm also glad that it builds on Mac at all :-), since I can't test that.

@mmh352 mmh352 closed this as completed May 4, 2021
@mmh352 mmh352 added the wontfix This will not be worked on label May 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants