nokia / danm

TelCo grade network management in a Kubernetes cluster
BSD 3-Clause "New" or "Revised" License
373 stars 81 forks source link

Build fail #248

Closed Panlichen closed 3 years ago

Panlichen commented 3 years ago

Is this a BUG REPORT or FEATURE REQUEST?:

BUG.

What happened:

Build fail:

$ sudo ./build_danm.sh
Building: netwatcher, version 5394e81f
Sending build context to Docker daemon  861.2kB
Step 1/27 : ARG USERNAME=danm
Step 2/27 : ARG UID=147
Step 3/27 : ARG GID=147
Step 4/27 : FROM golang:1.13-alpine3.10 AS builder
1.13-alpine3.10: Pulling from library/golang
21c83c524219: Pull complete
93fb370585b2: Pull complete
e3eaf3a77a91: Pull complete
c061b7ac4607: Pull complete
00a52a315a3d: Pull complete
Digest: sha256:4c0cdb817e8450ec2cecbd72ce51d5e789bd21eba91177947ecd105e80b6732b
Status: Downloaded newer image for golang:1.13-alpine3.10
 ---> 569e3fae2346
Step 5/27 : MAINTAINER Levente Kale <levente.kale@nokia.com>
 ---> Running in f10d030e5fbf
Removing intermediate container f10d030e5fbf
 ---> 4fe814ac50a7
Step 6/27 : ARG USERNAME
 ---> Running in 80aec6fc6565
Removing intermediate container 80aec6fc6565
 ---> 165242c0c701
Step 7/27 : ARG UID
 ---> Running in 982f3f49faa5
Removing intermediate container 982f3f49faa5
 ---> 035d8f8aa0ae
Step 8/27 : ARG GID
 ---> Running in d6607c039b2c
Removing intermediate container d6607c039b2c
 ---> e34e6457c76d
Step 9/27 : ARG COMMIT_HASH
 ---> Running in e0c8c2e8c578
Removing intermediate container e0c8c2e8c578
 ---> 07da2f57f35f
Step 10/27 : ARG LATEST_TAG
 ---> Running in afdf70f8b260
Removing intermediate container afdf70f8b260
 ---> 66f41db59d70
Step 11/27 : RUN apk add --no-cache ca-certificates make git bash
 ---> Running in 3468c449822a
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)
ERROR: unsatisfiable constraints:
  bash (missing):
    required by: world[bash]
  git (missing):
    required by: world[git]
  make (missing):
    required by: world[make]
The command '/bin/sh -c apk add --no-cache ca-certificates make git bash' returned a non-zero code: 3
build_danm.sh error on line : 123 command was: ${BUILD_COMMAND}
Terminating with error!

Looks like #152, but seems no valuable solutions there.

I CAN wget the two tar.gz file from the same machine, so I do not think it's network issue. Please help me, thank you.

What you expected to happen:

How to reproduce it:

Anything else we need to know?:

Environment:

Panlichen commented 3 years ago

After reboot, it's OK.

Wired net issue..