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

Not able to build zeta-chain node #3316

Open
nebojsa-ristovic opened this issue Dec 18, 2024 · 6 comments
Open

Not able to build zeta-chain node #3316

nebojsa-ristovic opened this issue Dec 18, 2024 · 6 comments
Assignees
Labels
bug Something isn't working infra Infrastructure and node related

Comments

@nebojsa-ristovic
Copy link

nebojsa-ristovic commented Dec 18, 2024

Describe the Bug
When I run docker build . -f Dockerfile

[+] Building 1.2s (12/20)
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                      0.0s
 => => transferring dockerfile: 2.34kB                                                                                                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                         0.0s
 => => transferring context: 230B                                                                                                                                                                                                                         0.0s
 => [internal] load metadata for docker.io/library/golang:1.22-alpine3.18                                                                                                                                                                                 0.0s
 => [internal] load metadata for docker.io/library/alpine:3.18                                                                                                                                                                                            0.0s
 => [internal] load build context                                                                                                                                                                                                                         0.8s
 => => transferring context: 17.26MB                                                                                                                                                                                                                      0.8s
 => [builder 1/8] FROM docker.io/library/golang:1.22-alpine3.18                                                                                                                                                                                           0.0s
 => [stage-1 1/7] FROM docker.io/library/alpine:3.18                                                                                                                                                                                                      0.0s
 => CACHED [builder 2/8] RUN apk --no-cache add git make build-base jq openssh libusb-dev linux-headers bash curl python3 py3-pip                                                                                                                         0.0s
 => CACHED [builder 3/8] WORKDIR /go/delivery/zeta-node                                                                                                                                                                                                   0.0s
 => CACHED [builder 4/8] COPY go.mod .                                                                                                                                                                                                                    0.0s
 => CACHED [builder 5/8] COPY go.sum .                                                                                                                                                                                                                    0.0s
 => ERROR [builder 6/8] RUN go mod download                                                                                                                                                                                                               0.4s
------
 > [builder 6/8] RUN go mod download:
#14 0.292 go: go.mod requires go >= 1.22.7 (running go 1.22.3; GOTOOLCHAIN=local)
------
executor failed running [/bin/sh -c go mod download]: exit code: 1

It's expected for image to be built.

Building on macOS Sonoma Version 14.5

p.s. It's the same issue from your github action - https://github.com/zeta-chain/node/actions/runs/12237577778/job/34133645670

@nebojsa-ristovic nebojsa-ristovic added the bug Something isn't working label Dec 18, 2024
@gartnera gartnera added the infra Infrastructure and node related label Dec 18, 2024
@gartnera
Copy link
Member

https://github.com/zeta-chain/zetacored-docker is our actively supported way of running zetacored in docker.

I can fix this up if you really need it. What do you use to automate the upgrades?

@gartnera gartnera self-assigned this Dec 18, 2024
@nebojsa-ristovic
Copy link
Author

https://github.com/zeta-chain/zetacored-docker is our actively supported way of running zetacored in docker.

I can fix this up if you really need it. What do you use to automate the upgrades?

This would be much needed for us, so our nodes can run. We don't use anything to automate upgrade unfortunately. zetacored-docker is not working for us since it's wiping disk and downloading full node snapshot and we run archive nodes.

@gartnera
Copy link
Member

gartnera commented Dec 19, 2024

zetacored-docker is not working for us since it's wiping disk and downloading full node snapshot and we run archive nodes.

You set ZETACHAIN_SNAPSHOT_TYPE=archive and mount a persistent volume on /root?

@nebojsa-ristovic
Copy link
Author

zetacored-docker is not working for us since it's wiping disk and downloading full node snapshot and we run archive nodes.

You set ZETACHAIN_SNAPSHOT_TYPE=archive and mount a persistent volume on /root?

But it would still download snapshot every time, right? And for archive node it's 5Tb.
Not sure for mounting persistent disk on /root, who this will effect nodedata, it'll be persistet, but wiping and snapshot download would be still present?

@gartnera
Copy link
Member

But it would still download snapshot every time, right?

If the snapshot restore completes it will not be restored again so long as you have a persistent volume mounted on /root.

I did attempt to test archive snapshot restore yesterday. It did end up failing around ~1TB, I think there are some issues with cloudflare and range headers.

@nebojsa-ristovic
Copy link
Author

Cool, we'll try this out. But is there a change you can provide image earlier on the dockerhub so we have nodes running until we switch to zetacored-docker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infra Infrastructure and node related
Projects
None yet
Development

No branches or pull requests

2 participants