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

MASP Indexer no longer running #35

Closed
renatodelgaudio opened this issue Jan 13, 2025 · 5 comments
Closed

MASP Indexer no longer running #35

renatodelgaudio opened this issue Jan 13, 2025 · 5 comments

Comments

@renatodelgaudio
Copy link

Recently setup a new machine and failed to build/run the latest code of the masp indexer:

sudo docker compose up -d

[+] Building 68.7s (14/19)                                                                                                   docker:default
 => [crawler internal] load build definition from Dockerfile                                                                           0.0s
 => => transferring dockerfile: 673B                                                                                                   0.0s
 => [crawler internal] load metadata for docker.io/lukemathwalker/cargo-chef:latest-rust-1.78-bookworm                                 0.7s
 => [crawler internal] load metadata for docker.io/library/debian:bookworm-slim                                                        0.7s
 => [crawler internal] load .dockerignore                                                                                              0.0s
 => => transferring context: 46B                                                                                                       0.0s
 => [crawler internal] load build context                                                                                              0.0s
 => => transferring context: 29.22kB                                                                                                   0.0s
 => [crawler chef 1/2] FROM docker.io/lukemathwalker/cargo-chef:latest-rust-1.78-bookworm@sha256:eb209ef7187a69539f0a312c05b9f304f060  0.0s
 => [crawler runtime 1/5] FROM docker.io/library/debian:bookworm-slim@sha256:d365f4920711a9074c4bcd178e8f457ee59250426441ab2a5f8106ed  0.0s
 => CACHED [crawler runtime 2/5] WORKDIR /app                                                                                          0.0s
 => CACHED [crawler chef 2/2] WORKDIR /app                                                                                             0.0s
 => [crawler planner 1/2] COPY . .                                                                                                     0.1s
 => [crawler planner 2/2] RUN cargo chef prepare --recipe-path recipe.json                                                            22.9s
 => CACHED [crawler builder 1/5] COPY --from=planner /app/recipe.json recipe.json                                                      0.0s
 => CACHED [crawler builder 2/5] RUN apt-get update && apt-get install -y protobuf-compiler build-essential clang-tools-14             0.0s
 => ERROR [crawler builder 3/5] RUN cargo chef cook --release --recipe-path recipe.json                                               44.9s
------
 > [crawler builder 3/5] RUN cargo chef cook --release --recipe-path recipe.json:
0.384     Updating crates.io index
0.452     Updating git repository `https://github.com/anoma/namada`
34.07     Updating git repository `https://github.com/heliaxdev/sparse-merkle-tree`
34.89     Updating git repository `https://github.com/heliaxdev/borsh-ext`
35.38     Updating git repository `https://github.com/heliaxdev/ethbridge-rs`
35.93     Updating git repository `https://github.com/heliaxdev/cosmos-ibc-rs`
37.75     Updating git repository `https://github.com/heliaxdev/index-set`
38.28     Updating git repository `https://github.com/heliaxdev/indexmap`
39.16     Updating git repository `https://github.com/anoma/masp`
40.74     Updating git repository `https://github.com/heliaxdev/smooth-operator`
41.33     Updating git repository `https://github.com/anoma/tiny-bip39.git`
42.20     Updating git repository `https://github.com/heliaxdev/bls12_381.git`
43.44     Updating git repository `https://github.com/heliaxdev/jubjub.git`
44.00     Updating git repository `https://github.com/heliaxdev/num-traits`
44.78 error: failed to get `num-traits` as a dependency of package `masp_primitives v1.0.0 (https://github.com/anoma/masp?rev=12ed8b060b295c06502a2ff8468e4a941cb7cca4#12ed8b06)`
44.78     ... which satisfies git dependency `masp_primitives` (locked to 1.0.0) of package `namada_core v0.46.0 (https://github.com/anoma/namada?tag=v0.46.0#cc531ec5)`
44.78     ... which satisfies git dependency `namada_core` (locked to 0.46.0) of package `chain v0.0.1 (/app/chain)`
44.78
44.78 Caused by:
44.78   failed to load source for dependency `num-traits`
44.78
44.78 Caused by:
44.78   Unable to update https://github.com/heliaxdev/num-traits?rev=3f3657caa34b8e116fdf3f8a3519c4ac29f012fe#3f3657ca
44.78
44.78 Caused by:
44.78   revspec '3f3657caa34b8e116fdf3f8a3519c4ac29f012fe' not found; class=Reference (4); code=NotFound (-3)
44.79 thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-chef-0.1.67/src/recipe.rs:218:27:
44.79 Exited with status code: 101
44.79 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------
failed to solve: process "/bin/sh -c cargo chef cook --release --recipe-path recipe.json" did not complete successfully: exit code: 101
@sirouk
Copy link

sirouk commented Jan 18, 2025

Yup, having the same issue. This is easy to reproduce with a simple:

sudo docker compose up -d

@sug0
Copy link
Contributor

sug0 commented Jan 19, 2025

See anoma/masp#89 (comment)

I tried running just build, and I was able to build all the binaries. Could you try building a docker image again?

@renatodelgaudio
Copy link
Author

See anoma/masp#89 (comment)

I tried running just build, and I was able to build all the binaries. Could you try building a docker image again?

just build works, but docker compose up does not.

@sug0
Copy link
Contributor

sug0 commented Jan 19, 2025

FROM lukemathwalker/cargo-chef:latest-rust-1.78-bookworm AS chef

the rust version in the docker file is likely outdated. the build might be fixed by bumping this to 1.81.0

@sirouk
Copy link

sirouk commented Jan 20, 2025

Looks like #37 took care of it 👍 ty!

@sug0 sug0 closed this as completed Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants