【问题标题】:spurious network error (2 tries remaining): [7] Couldn't connect to server虚假网络错误(剩余 2 次尝试):[7] 无法连接到服务器
【发布时间】:2021-05-30 02:08:51
【问题描述】:
gh@ubuntu:~/substrate-node-template$ CARGO_HTTP_MULTIPLEXING=false cargo build --release
    Updating crates.io index
warning: spurious network error (2 tries remaining): [7] Couldn't connect to server (Failed to connect to github.com port 443: Connection refused); class=Net (12)
warning: spurious network error (1 tries remaining): [35] SSL connect error (OpenSSL SSL_connect: Connection reset by peer in connection to github.com:443 ); class=Net (12)
error: failed to get `frame-benchmarking` as a dependency of package `node-template v3.0.0 (/home/gh/substrate-node-template/node)`

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  network failure seems to have happened
  if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  [28] Timeout was reached (Operation timed out after 30001 milliseconds with 0 out of 0 bytes received); class=Net (12)

我编译时出现上述错误 我正在使用 Ubuntu 20.04.2.0 ,基板 3.0.0

我的 rust 版本:

gh@ubuntu:~/substrate-node-template$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/gh/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-gnu

active toolchain
----------------

stable-x86_64-unknown-linux-gnu (default)
rustc 1.50.0 (cb75ad5db 2021-02-10)

我尝试在“货物构建 - 放松”_HTTP_Multiplexing = false“之前添加“货物”并执行。 但它不起作用。

【问题讨论】:

    标签: rust rust-cargo substrate


    【解决方案1】:

    这不是底物问题。

    尝试使用 VPN。或者使用镜像源。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-14
      • 2020-06-06
      • 1970-01-01
      • 2020-06-09
      • 1970-01-01
      • 2023-03-09
      • 1970-01-01
      • 2018-10-23
      相关资源
      最近更新 更多