build-containers fails when installing packages (networking issue?) #17

Open
opened 2025-05-02 00:08:13 +00:00 by zramsay · 1 comment
Member

I'm setting up a Service Provider and when the playbook gets to this line: https://git.vdb.to/cerc-io/testnet-ops/src/branch/main/service-provider-setup/run-laconicd.yml#L19 encounter the following error:

 "The command '/bin/sh -c go mod download' returned a non-zero code: 1"], "stdout": "Sending build context to Docker daemon  6.927MB\r\r\nStep 1/12 : FROM golang:1.21-bullseye AS builder\n1.21-bullseye: Pulling from library/golang\n203e9cf21bd2: Pulling fs layer\n9a3438c04e45: Pulling fs layer\n6665b6f4bd77: Pulling fs layer\na818415ef02f: Pulling fs layer\n54bf7053e2d9: Pulling fs layer\n0cc3eeb8d099: Pulling fs layer\n4f4fb700ef54: Pulling fs layer\n54bf7053e2d9: Waiting\n0cc3eeb8d099: Waiting\n4f4fb700ef54: Waiting\na818415ef02f: Waiting\n9a3438c04e45: Verifying Checksum\n9a3438c04e45: Download complete\n6665b6f4bd77: Verifying Checksum\n6665b6f4bd77: Download complete\n203e9cf21bd2: Verifying Checksum\n203e9cf21bd2: Download complete\n0cc3eeb8d099: Verifying Checksum\n0cc3eeb8d099: Download complete\na818415ef02f: Verifying Checksum\na818415ef02f: Download complete\n4f4fb700ef54: Verifying Checksum\n4f4fb700ef54: Download complete\n54bf7053e2d9: Verifying Checksum\n54bf7053e2d9: Download complete\n203e9cf21bd2: Pull complete\n9a3438c04e45: Pull complete\n6665b6f4bd77: Pull complete\na818415ef02f: Pull complete\n54bf7053e2d9: Pull complete\n0cc3eeb8d099: Pull complete\n4f4fb700ef54: Pull complete\nDigest: sha256:40a67e6626bead90d5c7957bd0354cfeb8400e61acc3adc256e03252630014a6\nStatus: Downloaded newer image for golang:1.21-bullseye\n ---> 3e3b31e004ad\nStep 2/12 : WORKDIR /go/src/git.vdb.to/cerc-io/laconicd\n ---> Running in 0a8fadf1ea5d\n ---> Removed intermediate container 0a8fadf1ea5d\n ---> 7a6bcc01c297\nStep 3/12 : COPY go.mod go.sum ./\n ---> 172b99fc4070\nStep 4/12 : RUN go mod download\n ---> Running in e87f4f852abc\n\u001b[91mgo: cosmossdk.io/api@v0.7.2: Get \"https://proxy.golang.org/cosmossdk.io/api/@v/v0.7.2.mod\": dial tcp: lookup proxy.golang.org on 67.207.67.3:53: read udp 172.17.0.2:38060->67.207.67.3:53: read: no route to host\n\u001b[0mDev Root is: /home/zach/cerc\nBuilding: cerc/laconicd\nError running build for cerc/laconicd\nERROR: container build failed and --continue-on-error not set, exiting"

To move on, I configure things to connect to the existing testnet, but then when deploying the backend, this line https://git.vdb.to/cerc-io/testnet-ops/src/branch/main/service-provider-setup/deploy-backend.yml#L37 throws this error:

"The command '/bin/sh -c apt update &&       apt install -y --no-install-recommends --no-install-suggests       netcat-traditional ca-certificates curl gnupg git fuse-overlayfs iproute2 podman iptables' returned a non-zero code: 100"], "stdout": "Sending build context to Docker daemon  487.9kB\r\r\nStep 1/19 : FROM ubuntu:22.04\n22.04: Pulling from library/ubuntu\n30a9c22ae099: Pulling fs layer\n30a9c22ae099: Verifying Checksum\n30a9c22ae099: Download complete\n30a9c22ae099: Pull complete\nDigest: sha256:d80997daaa3811b175119350d84305e1ec9129e1799bba0bd1e3120da3ff52c3\nStatus: Downloaded newer image for ubuntu:22.04\n ---> cc934a90cd99\nStep 2/19 : RUN apt update &&       apt install -y --no-install-recommends --no-install-suggests       netcat-traditional ca-certificates curl gnupg git fuse-overlayfs iproute2 podman iptables\n ---> Running in 0fec6b66d8ed\n\u001b[91m\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n\u001b[0mIgn:1 http://archive.ubuntu.com/ubuntu jammy InRelease\nIgn:2 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nIgn:2 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nIgn:2 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:1 http://archive.ubuntu.com/ubuntu jammy InRelease\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nErr:2 http://security.ubuntu.com/ubuntu jammy-security InRelease\n  Temporary failure resolving 'security.ubuntu.com'\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nIgn:1 http://archive.ubuntu.com/ubuntu jammy InRelease\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nErr:1 http://archive.ubuntu.com/ubuntu jammy InRelease\n  Temporary failure resolving 'archive.ubuntu.com'
I'm setting up a Service Provider and when the playbook gets to this line: https://git.vdb.to/cerc-io/testnet-ops/src/branch/main/service-provider-setup/run-laconicd.yml#L19 encounter the following error: ``` "The command '/bin/sh -c go mod download' returned a non-zero code: 1"], "stdout": "Sending build context to Docker daemon 6.927MB\r\r\nStep 1/12 : FROM golang:1.21-bullseye AS builder\n1.21-bullseye: Pulling from library/golang\n203e9cf21bd2: Pulling fs layer\n9a3438c04e45: Pulling fs layer\n6665b6f4bd77: Pulling fs layer\na818415ef02f: Pulling fs layer\n54bf7053e2d9: Pulling fs layer\n0cc3eeb8d099: Pulling fs layer\n4f4fb700ef54: Pulling fs layer\n54bf7053e2d9: Waiting\n0cc3eeb8d099: Waiting\n4f4fb700ef54: Waiting\na818415ef02f: Waiting\n9a3438c04e45: Verifying Checksum\n9a3438c04e45: Download complete\n6665b6f4bd77: Verifying Checksum\n6665b6f4bd77: Download complete\n203e9cf21bd2: Verifying Checksum\n203e9cf21bd2: Download complete\n0cc3eeb8d099: Verifying Checksum\n0cc3eeb8d099: Download complete\na818415ef02f: Verifying Checksum\na818415ef02f: Download complete\n4f4fb700ef54: Verifying Checksum\n4f4fb700ef54: Download complete\n54bf7053e2d9: Verifying Checksum\n54bf7053e2d9: Download complete\n203e9cf21bd2: Pull complete\n9a3438c04e45: Pull complete\n6665b6f4bd77: Pull complete\na818415ef02f: Pull complete\n54bf7053e2d9: Pull complete\n0cc3eeb8d099: Pull complete\n4f4fb700ef54: Pull complete\nDigest: sha256:40a67e6626bead90d5c7957bd0354cfeb8400e61acc3adc256e03252630014a6\nStatus: Downloaded newer image for golang:1.21-bullseye\n ---> 3e3b31e004ad\nStep 2/12 : WORKDIR /go/src/git.vdb.to/cerc-io/laconicd\n ---> Running in 0a8fadf1ea5d\n ---> Removed intermediate container 0a8fadf1ea5d\n ---> 7a6bcc01c297\nStep 3/12 : COPY go.mod go.sum ./\n ---> 172b99fc4070\nStep 4/12 : RUN go mod download\n ---> Running in e87f4f852abc\n\u001b[91mgo: cosmossdk.io/api@v0.7.2: Get \"https://proxy.golang.org/cosmossdk.io/api/@v/v0.7.2.mod\": dial tcp: lookup proxy.golang.org on 67.207.67.3:53: read udp 172.17.0.2:38060->67.207.67.3:53: read: no route to host\n\u001b[0mDev Root is: /home/zach/cerc\nBuilding: cerc/laconicd\nError running build for cerc/laconicd\nERROR: container build failed and --continue-on-error not set, exiting" ``` To move on, I configure things to connect to the existing testnet, but then when deploying the backend, this line https://git.vdb.to/cerc-io/testnet-ops/src/branch/main/service-provider-setup/deploy-backend.yml#L37 throws this error: ``` "The command '/bin/sh -c apt update && apt install -y --no-install-recommends --no-install-suggests netcat-traditional ca-certificates curl gnupg git fuse-overlayfs iproute2 podman iptables' returned a non-zero code: 100"], "stdout": "Sending build context to Docker daemon 487.9kB\r\r\nStep 1/19 : FROM ubuntu:22.04\n22.04: Pulling from library/ubuntu\n30a9c22ae099: Pulling fs layer\n30a9c22ae099: Verifying Checksum\n30a9c22ae099: Download complete\n30a9c22ae099: Pull complete\nDigest: sha256:d80997daaa3811b175119350d84305e1ec9129e1799bba0bd1e3120da3ff52c3\nStatus: Downloaded newer image for ubuntu:22.04\n ---> cc934a90cd99\nStep 2/19 : RUN apt update && apt install -y --no-install-recommends --no-install-suggests netcat-traditional ca-certificates curl gnupg git fuse-overlayfs iproute2 podman iptables\n ---> Running in 0fec6b66d8ed\n\u001b[91m\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\n\n\u001b[0mIgn:1 http://archive.ubuntu.com/ubuntu jammy InRelease\nIgn:2 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nIgn:2 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nIgn:2 http://security.ubuntu.com/ubuntu jammy-security InRelease\nIgn:1 http://archive.ubuntu.com/ubuntu jammy InRelease\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nErr:2 http://security.ubuntu.com/ubuntu jammy-security InRelease\n Temporary failure resolving 'security.ubuntu.com'\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nIgn:1 http://archive.ubuntu.com/ubuntu jammy InRelease\nIgn:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease\nIgn:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease\nErr:1 http://archive.ubuntu.com/ubuntu jammy InRelease\n Temporary failure resolving 'archive.ubuntu.com' ```
Author
Member

looks like adding:

{
  "dns": ["8.8.8.8", "8.8.4.4"]
}

to /etc/docker/daemon.json did the trick

looks like adding: ``` { "dns": ["8.8.8.8", "8.8.4.4"] } ``` to `/etc/docker/daemon.json` did the trick
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/testnet-ops#17
No description provided.