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

Error building docker #4

Open
totogtr opened this issue Feb 7, 2024 · 4 comments · May be fixed by #5
Open

Error building docker #4

totogtr opened this issue Feb 7, 2024 · 4 comments · May be fixed by #5

Comments

@totogtr
Copy link

totogtr commented Feb 7, 2024

Hi,

I think there might be an issue in the docker compose install :

❰/dev/aws-vpn-client(git:main)❱✘≻ OPENVPN_VERSION=2.6.3 docker compose up make
[+] Running 1/1
 ! make Warning                                                                                     2.5s 
[+] Building 7.5s (11/25)                                                                 docker:default
 => [make internal] load .dockerignore                                                              0.0s
 => => transferring context: 72B                                                                    0.0s
 => [make internal] load build definition from Dockerfile                                           0.0s
 => => transferring dockerfile: 2.46kB                                                              0.0s
 => [make internal] load metadata for docker.io/library/alpine:3.16                                 0.7s
 => [make internal] load metadata for docker.io/library/alpine:3.17                                 0.7s
 => [make internal] load metadata for docker.io/library/debian:11-slim                              0.6s
 => [make internal] load build context                                                              0.0s
 => => transferring context: 3.92kB                                                                 0.0s
 => CACHED [make stage-2 1/7] FROM docker.io/library/alpine:3.16@sha256:452e7292acee0ee16c332324d7  0.0s
 => CANCELED [make ovpn-glibc 1/7] FROM docker.io/library/debian:11-slim@sha256:8481471cacd29779e7  6.8s
 => => resolve docker.io/library/debian:11-slim@sha256:8481471cacd29779e7b6fe64a891f4b6771d8c3c7e5  0.0s
 => => sha256:8481471cacd29779e7b6fe64a891f4b6771d8c3c7e57bb410542a3db10d1897a 1.85kB / 1.85kB      0.0s
 => => sha256:d66e51af682be02ff054f86dc0c07366c0a40c6de3d8f1c731de3c633da56847 529B / 529B          0.0s
 => => sha256:66d6bf02bd893abd4c7005be61ffb6e427e8b0ded389002f9101f44a867d9a37 1.46kB / 1.46kB      0.0s
 => => sha256:70ba6f391a98e490c9cc5473568d4d1a1cfe26c367ce353173641d819982cb40 28.31MB / 31.42MB    6.8s
 => CACHED [make ovpn-musl 1/7] FROM docker.io/library/alpine:3.17@sha256:53cf9478b76f4c8fae126acb  0.0s
 => ERROR [make ovpn-musl 2/7] RUN apk add --no-cache     autoconf=2.71-r1     automake=1.16.5-r1   6.6s
 => CANCELED [make stage-2 2/7] RUN apk add --no-cache     bash=5.1.16-r2     go=1.18.7-r0          6.8s
------                                                                                                   
 > [make ovpn-musl 2/7] RUN apk add --no-cache     autoconf=2.71-r1     automake=1.16.5-r1     curl=8.0.1-r0     go=1.19.9-r0     libtool=2.4.7-r1     linux-headers=5.19.5-r0     linux-pam-dev=1.5.2-r1     lzo-dev=2.10-r3     make=4.3-r1     openssl-dev=3.0.8-r4     patch=2.7.6-r9     unzip=6.0-r13:               
0.389 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz                      
2.277 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz                 
6.571 ERROR: unable to select packages:                                                                  
6.592   curl-8.5.0-r0:
6.592     breaks: world[curl=8.0.1-r0]
6.592   openssl-dev-3.0.12-r4:
6.592     breaks: world[openssl-dev=3.0.8-r4]
------
failed to solve: process "/bin/sh -c apk add --no-cache     autoconf=2.71-r1     automake=1.16.5-r1     curl=8.0.1-r0     go=1.19.9-r0     libtool=2.4.7-r1     linux-headers=5.19.5-r0     linux-pam-dev=1.5.2-r1     lzo-dev=2.10-r3     make=4.3-r1     openssl-dev=3.0.8-r4     patch=2.7.6-r9     unzip=6.0-r13" did not complete successfully: exit code: 2
@ethan605
Copy link
Owner

ethan605 commented Feb 7, 2024

Hi, the Alpine packages are outdated. Let me try to update it and make a new release 🤞

@ethan605 ethan605 linked a pull request Feb 7, 2024 that will close this issue
2 tasks
@ethan605
Copy link
Owner

ethan605 commented Feb 7, 2024

👋 hi @totogtr, please have a look at #5 and try it at your local to see if it works. Unfortunately I'm not having any AWS VPN profile to test at my end.

Meanwhile I'm preparing a here's is the PR to support OpenVPN 2.6.8: #6, please stay tuned have a look as well🤞

@totogtr
Copy link
Author

totogtr commented Feb 8, 2024

Thanks. Still the same kind of issues on my side but I think it's actually related to alpine packages :

docker run --rm alpine:latest apk add --no-cache \
                                                                        bash go
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.18/main: temporary error (try again later)
WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.18/community: temporary error (try again later)
ERROR: unable to select packages:
  bash (no such package):
    required by: world[bash]
  go (no such package):
    required by: world[go]

Trying to fix it

@ethan605
Copy link
Owner

ethan605 commented Feb 8, 2024

Yep, looks like a DNS issue to me (somehow dl-cdn.alpinelinux.org couldn't be resolved for you). FYI at my end:

$ docker run --rm alpine:latest apk add --no-cache bash go
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
4abcf2066143: Already exists
Digest: sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b
Status: Downloaded newer image for alpine:latest
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
(1/18) Installing ncurses-terminfo-base (6.4_p20231125-r0)
(2/18) Installing libncursesw (6.4_p20231125-r0)
(3/18) Installing readline (8.2.1-r2)
(4/18) Installing bash (5.2.21-r0)
Executing bash-5.2.21-r0.post-install
(5/18) Installing libgcc (13.2.1_git20231014-r0)
(6/18) Installing jansson (2.14-r4)
(7/18) Installing libstdc++ (13.2.1_git20231014-r0)
(8/18) Installing zstd-libs (1.5.5-r8)
(9/18) Installing binutils (2.41-r0)
(10/18) Installing libgomp (13.2.1_git20231014-r0)
(11/18) Installing libatomic (13.2.1_git20231014-r0)
(12/18) Installing gmp (6.3.0-r0)
(13/18) Installing isl26 (0.26-r1)
(14/18) Installing mpfr4 (4.2.1-r0)
(15/18) Installing mpc1 (1.3.1-r1)
(16/18) Installing gcc (13.2.1_git20231014-r0)
(17/18) Installing musl-dev (1.2.4_git20230717-r4)
(18/18) Installing go (1.21.6-r0)
Executing busybox-1.36.1-r15.trigger
OK: 335 MiB in 33 packages

Btw if you don't really need the musl version of the patched OpenVPN binary, you can try to extract the glibc part and run it as a separate Docker service. I should have broken them down just in case someone gets into troubles with either of the variant.

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

Successfully merging a pull request may close this issue.

2 participants