nexus-xyz / network-api

Apache License 2.0
12 stars 13 forks source link

failed to run cli in docker container #25

Open sleeply7777 opened 1 week ago

sleeply7777 commented 1 week ago

ubuntu 22.04 apt update && apt install build-essential pkg-config git -y git checkout 0.3.2

thread 'tokio-runtime-worker' panicked at src/analytics.rs:52:14:
called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("api.mixpanel.com")), port: None, path: "/track", query: Some("ip=1"), fragment: None }, source: hyper_util::client::legacy::Error(Connect, Ssl(Error { code: ErrorCode(5), cause: None }, X509VerifyResult { code: 0, error: "ok" })) }

Where is the problem? What needs to be installed, or is it that it can't run inside the container?

shantnudon commented 1 week ago

Can u share your docker config file and an elaborated process on how are you doing that.

sleeply7777 commented 1 week ago
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y \
    sudo wget curl git build-essential libssl-dev pkg-config clang \
    && rm -rf /var/lib/apt/lists/*
CMD ["bash"]

Based on this base image, I created a container and installed Rust Cargo 1.79.0 as well as build-essential, pkg-config, and libssl-dev inside the container. I used the 0.3.2 tag to create the prover. The first execution showed a panic with

'time_zone': iana_time_zone::get_timezone().unwrap()

I resolved this issue by apt install tzdata. On restarting, the X509VerifyResult issue occurred. My device is an Apple M2.