ministryofjustice / network-access-control-server

FreeRadius server for the 802.1x Network Access Control Service
MIT License
0 stars 0 forks source link

🐛 Build Errors #130

Closed Gary-H9 closed 2 years ago

Gary-H9 commented 2 years ago

Describe the bug.

When building on a Docker + WSL2 Ubuntu laptop I encounter the following error:

...
=> => transferring context: 2B                                                                                                                                                                           0.0s
 => [internal] load metadata for docker.io/library/alpine:3.15.0                                                                                                                                          4.9s
 => [internal] load build context                                                                                                                                                                         0.0s
 => => transferring context: 2.44kB                                                                                                                                                                       0.0s
 => CACHED [1/6] FROM docker.io/library/alpine:3.15.0@sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300                                                                             0.0s
 => ERROR [2/6] RUN apk --update --no-cache add   git openssl~=1.1.1n jq tshark python3-dev py3-pip bash make curl gcc make g++ zlib-dev talloc-dev libressl openssl-dev linux-headers                    1.6s
------                                                                                                                                                                                                         
 > [2/6] RUN apk --update --no-cache add   git openssl~=1.1.1n jq tshark python3-dev py3-pip bash make curl gcc make g++ zlib-dev talloc-dev libressl openssl-dev linux-headers:                               
#5 0.368 fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz                                                                                                                         
#5 0.737 fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
#5 1.533 ERROR: unable to select packages:
#5 1.591   openssl-1.1.1o-r0:
#5 1.591     breaks: world[openssl~1.1.1n]
------
executor failed running [/bin/sh -c apk --update --no-cache add   git openssl~=1.1.1n jq tshark python3-dev py3-pip bash make curl gcc make g++ zlib-dev talloc-dev libressl openssl-dev linux-headers]: exit code: 1
make: *** [Makefile:5: build] Error 1

If you remove this from Dockerfile then the build also fails with the following error:

executor failed running [/bin/sh -c wget https://github.com/FreeRADIUS/freeradius-server/archive/release_3_2_0.tar.gz     && tar xzvf release_3_2_0.tar.gz     && cd freeradius-server-release_3_2_0     && ./configure --with-experimental-modules --with-rlm-python3-bin=/usr/bin/python --build=x86_64-unknown-linux-gnu     && make     && make install     && mkdir -p /tmp/radiusd /usr/local/etc/raddb /usr/local/etc/raddb/certs     && rm -fr /usr/local/etc/raddb/sites-enabled/*     && openssl dhparam -out /usr/local/etc/raddb/dh 1024 && ln -sf python3 /usr/bin/python     && pip3 install --ignore-installed --no-cache --upgrade pip six setuptools py-radius PyMySQL     && cd -     && rm -fr ./freeradius-server     && chown root:root /usr/bin/dumpcap]: exit code: 2
make: *** [Makefile:5: build] Error 1

To Reproduce

Run AWS_PROFILE=moj-nac-development make build on the latest pull of this repository. Be sure to export TERRAFORM_OUTPUTS ENV and REGISTRY_URL.

Expected Behaviour

A complete build.

Environment

Latest pull of the repo as of 13th May 2022.

Additional context

No response

Gary-H9 commented 2 years ago

Error now appears in development pipeline, thereby discounting this being solely a Windows / WSL issue.

github-actions[bot] commented 2 years ago

CNSA-10 created on Jira board and transitioned to Done