zeta-chain / node

ZetaChain’s blockchain node and an observer validator client
https://zetachain.com
MIT License
167 stars 109 forks source link

Error when running `make zetanode` #1007

Closed fadeev closed 1 year ago

fadeev commented 1 year ago
make zetanode
Building zetanode
docker build -t zetanode -f ./Dockerfile .
[+] Building 79.4s (11/29)                                                                                                              
 => [internal] load build definition from Dockerfile                                                                               0.0s
 => => transferring dockerfile: 1.26kB                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                  0.0s
 => => transferring context: 91B                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/golang:1.19-alpine                                                              2.5s
 => [stage-0  1/25] FROM docker.io/library/golang:1.19-alpine@sha256:c5e8766b6a7b77fd60a48c2b932f7ea66f7001489c4cf18d0265cff59561  7.4s
 => => resolve docker.io/library/golang:1.19-alpine@sha256:c5e8766b6a7b77fd60a48c2b932f7ea66f7001489c4cf18d0265cff595613bee        0.0s
 => => sha256:8c6d1654570f041603f4cef49c320c8f6f3e401324913009d92a19132cbf1ac0 3.33MB / 3.33MB                                     0.4s
 => => sha256:5a768fa670f57b0faf1a0a8cb211432ed97307628729fa53e3ea9981ba7512d4 286.29kB / 286.29kB                                 0.8s
 => => sha256:b57156723c2f16d5ab4009bae120e0c6dcb0c19ab7cec048087f5deb8ccc3d1c 117.46MB / 117.46MB                                 3.9s
 => => sha256:c5e8766b6a7b77fd60a48c2b932f7ea66f7001489c4cf18d0265cff595613bee 1.65kB / 1.65kB                                     0.0s
 => => sha256:02ef01c4082297f218c606a88a190dedde32fb76f25f8f4f4aeea2acdf986239 1.16kB / 1.16kB                                     0.0s
 => => sha256:62add4b0701fe3a04f0977e0572c11c8b93ee03bc47011a834427d511076686c 5.20kB / 5.20kB                                     0.0s
 => => extracting sha256:8c6d1654570f041603f4cef49c320c8f6f3e401324913009d92a19132cbf1ac0                                          0.2s
 => => sha256:87014815a2c54b081320a788e711650f29173a4bc768b01d3efec8b0a45da233 155B / 155B                                         0.8s
 => => extracting sha256:5a768fa670f57b0faf1a0a8cb211432ed97307628729fa53e3ea9981ba7512d4                                          0.1s
 => => extracting sha256:b57156723c2f16d5ab4009bae120e0c6dcb0c19ab7cec048087f5deb8ccc3d1c                                          3.2s
 => => extracting sha256:87014815a2c54b081320a788e711650f29173a4bc768b01d3efec8b0a45da233                                          0.0s
 => [internal] load build context                                                                                                  4.5s
 => => transferring context: 110.84MB                                                                                              4.5s
 => [stage-0  2/25] RUN apk --no-cache add git make build-base jq openssh libusb-dev linux-headers bash curl tmux                  6.6s
 => [stage-0  3/25] RUN ssh-keygen -b 2048 -t rsa -f /root/.ssh/localtest.pem -q -N ""                                             0.3s 
 => [stage-0  4/25] WORKDIR /go/delivery/zeta-node                                                                                 0.0s 
 => [stage-0  5/25] COPY go.mod .                                                                                                  0.0s 
 => [stage-0  6/25] COPY go.sum .                                                                                                  0.0s
 => ERROR [stage-0  7/25] RUN --mount=type=cache,target=/root/.cache/go-build     go mod download                                 62.5s
------
 > [stage-0  7/25] RUN --mount=type=cache,target=/root/.cache/go-build     go mod download:
#11 60.84 -> unzip /go/pkg/mod/cache/download/github.com/klauspost/compress/@v/v1.16.0.zip: write /go/pkg/mod/github.com/klauspost/compress@v1.16.0/s2/testdata/fuzz/block-corpus-raw.zip: no space left on device
#11 61.57 -> unzip /go/pkg/mod/cache/download/gitlab.com/thorchain/binance-sdk/@v/v1.2.3-0.20210117202539-d569b6b9ba5d.zip: write /go/pkg/mod/gitlab.com/thorchain/binance-sdk@v1.2.3-0.20210117202539-d569b6b9ba5d/ReadMe.md: no space left on device
#11 61.57 -> unzip /go/pkg/mod/cache/download/golang.org/x/oauth2/@v/v0.8.0.zip: write /go/pkg/mod/golang.org/x/oauth2@v0.8.0/google/internal/externalaccount/basecredentials.go: no space left on device
#11 62.24 -> unzip /go/pkg/mod/cache/download/gopkg.in/ini.v1/@v/v1.67.0.zip: write /go/pkg/mod/gopkg.in/ini.v1@v1.67.0/.github/workflows/go.yml: no space left on device
#11 62.30 -> unzip /go/pkg/mod/cache/download/gopkg.in/natefinch/npipe.v2/@v/v2.0.0-20160621034901-c1b8fa8bdcce.zip: mkdir /go/pkg/mod/gopkg.in/natefinch/npipe.v2@v2.0.0-20160621034901-c1b8fa8bdcce: no space left on device
#11 62.37 go: unzip /go/pkg/mod/cache/download/github.com/klauspost/compress/@v/v1.16.0.zip: write /go/pkg/mod/github.com/klauspost/compress@v1.16.0/s2/testdata/fuzz/block-corpus-raw.zip: no space left on device
#11 62.37 go: github.com/tendermint/btcd@v0.1.1: read "https:/proxy.golang.org/@v/v0.1.1.zip": write /go/pkg/mod/cache/download/github.com/tendermint/btcd/@v/v0.1.1.zip617970007.tmp: no space left on device
#11 62.37 go: unzip /go/pkg/mod/cache/download/gitlab.com/thorchain/binance-sdk/@v/v1.2.3-0.20210117202539-d569b6b9ba5d.zip: write /go/pkg/mod/gitlab.com/thorchain/binance-sdk@v1.2.3-0.20210117202539-d569b6b9ba5d/ReadMe.md: no space left on device
#11 62.37 go: golang.org/x/crypto@v0.7.0: read "https:/proxy.golang.org/@v/v0.7.0.zip": write /go/pkg/mod/cache/download/golang.org/x/crypto/@v/v0.7.0.zip781917274.tmp: no space left on device
#11 62.37 go: golang.org/x/net@v0.10.0: read "https:/proxy.golang.org/@v/v0.10.0.zip": write /go/pkg/mod/cache/download/golang.org/x/net/@v/v0.10.0.zip422422786.tmp: no space left on device
#11 62.37 go: unzip /go/pkg/mod/cache/download/golang.org/x/oauth2/@v/v0.8.0.zip: write /go/pkg/mod/golang.org/x/oauth2@v0.8.0/google/internal/externalaccount/basecredentials.go: no space left on device
#11 62.37 go: golang.org/x/sys@v0.8.0: read "https:/proxy.golang.org/@v/v0.8.0.zip": write /go/pkg/mod/cache/download/golang.org/x/sys/@v/v0.8.0.zip716226724.tmp: no space left on device
#11 62.37 go: golang.org/x/text@v0.9.0: read "https:/proxy.golang.org/@v/v0.9.0.zip": write /go/pkg/mod/cache/download/golang.org/x/text/@v/v0.9.0.zip421523551.tmp: no space left on device
#11 62.37 go: golang.org/x/tools@v0.7.0: read "https:/proxy.golang.org/@v/v0.7.0.zip": write /go/pkg/mod/cache/download/golang.org/x/tools/@v/v0.7.0.zip998835708.tmp: no space left on device
#11 62.37 go: google.golang.org/api@v0.114.0: read "https:/proxy.golang.org/@v/v0.114.0.zip": write /go/pkg/mod/cache/download/google.golang.org/api/@v/v0.114.0.zip765289123.tmp: no space left on device
#11 62.37 go: google.golang.org/appengine@v1.6.7: read "https:/proxy.golang.org/@v/v1.6.7.zip": write /go/pkg/mod/cache/download/google.golang.org/appengine/@v/v1.6.7.zip451315837.tmp: no space left on device
#11 62.37 go: google.golang.org/protobuf@v1.30.0: read "https:/proxy.golang.org/@v/v1.30.0.zip": write /go/pkg/mod/cache/download/google.golang.org/protobuf/@v/v1.30.0.zip105736077.tmp: no space left on device
#11 62.37 go: unzip /go/pkg/mod/cache/download/gopkg.in/ini.v1/@v/v1.67.0.zip: write /go/pkg/mod/gopkg.in/ini.v1@v1.67.0/.github/workflows/go.yml: no space left on device
#11 62.37 go: unzip /go/pkg/mod/cache/download/gopkg.in/natefinch/npipe.v2/@v/v2.0.0-20160621034901-c1b8fa8bdcce.zip: mkdir /go/pkg/mod/gopkg.in/natefinch/npipe.v2@v2.0.0-20160621034901-c1b8fa8bdcce: no space left on device
#11 62.37 go: gopkg.in/tomb.v1@v1.0.0-20141024135613-dd632973f1e7: read "https:/proxy.golang.org/@v/v1.0.0-20141024135613-dd632973f1e7.zip": write /go/pkg/mod/cache/download/gopkg.in/tomb.v1/@v/v1.0.0-20141024135613-dd632973f1e7.zip248264686.tmp: no space left on device
#11 62.37 go: gopkg.in/yaml.v3@v3.0.1: read "https:/proxy.golang.org/@v/v3.0.1.zip": write /go/pkg/mod/cache/download/gopkg.in/yaml.v3/@v/v3.0.1.zip957975651.tmp: no space left on device
#11 62.37 go: lukechampine.com/blake3@v1.1.7: read "https:/proxy.golang.org/@v/v1.1.7.zip": write /go/pkg/mod/cache/download/lukechampine.com/blake3/@v/v1.1.7.zip620311659.tmp: no space left on device
#11 62.37 go: nhooyr.io/websocket@v1.8.6: read "https:/proxy.golang.org/@v/v1.8.6.zip": write /go/pkg/mod/cache/download/nhooyr.io/websocket/@v/v1.8.6.zip783027169.tmp: no space left on device
#11 62.37 go: sigs.k8s.io/yaml@v1.3.0: read "https:/proxy.golang.org/@v/v1.3.0.zip": write /go/pkg/mod/cache/download/sigs.k8s.io/yaml/@v/v1.3.0.zip864069576.tmp: no space left on device
------
executor failed running [/bin/sh -c go mod download]: exit code: 1
make: *** [zetanode] Error 1

Docker version 20.10.22, build 3a2c30b63a

lumtis commented 1 year ago

You might have lof dandling Docker images that took all the local space. You can see running docker images images with tag <none>. You can remove those with:

docker rmi $(docker images -f "dangling=true" -q)
fadeev commented 1 year ago

Running docker system prune -a resolved it for me. Thanks, @lumtis, for the suggestion!

lumtis commented 1 year ago

docker system prune -a removes everything. Next time with docker rmi $(docker images -f "dangling=true" -q) you prevent the need to rebuild the base images