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

Example fails to run #41

Open
estk opened this issue Aug 26, 2020 · 4 comments
Open

Example fails to run #41

estk opened this issue Aug 26, 2020 · 4 comments

Comments

@estk
Copy link

estk commented Aug 26, 2020

On my mac (Catalina), I cloned rustwide and did a cargo run --example docs-builder. Below is the output:

     Running `target/debug/examples/docs-builder`
[2020-08-26T15:24:15Z INFO  rustwide::cmd::sandbox] pulling image rustops/crates-build-env from Docker Hub
[2020-08-26T15:24:15Z INFO  rustwide::cmd] running `Command { std: "docker" "pull" "rustops/crates-build-env", kill_on_drop: false }`
[2020-08-26T15:24:15Z INFO  rustwide::cmd] [stdout] Using default tag: latest
[2020-08-26T15:24:17Z INFO  rustwide::cmd] [stdout] latest: Pulling from rustops/crates-build-env
[2020-08-26T15:24:17Z INFO  rustwide::cmd] [stdout] Digest: sha256:e18d859f9e32a1da89bc7b2d7d51e13b57342044d1295d9fc0dd0068c58eb3d1
[2020-08-26T15:24:17Z INFO  rustwide::cmd] [stdout] Status: Image is up to date for rustops/crates-build-env:latest
[2020-08-26T15:24:17Z INFO  rustwide::cmd] [stdout] docker.io/rustops/crates-build-env:latest
[2020-08-26T15:24:17Z INFO  rustwide::cmd] running `Command { std: "docker" "inspect" "rustops/crates-build-env" "--format" "{{index .RepoDigests 0}}", kill_on_drop: false }`
[2020-08-26T15:24:17Z INFO  rustwide::cmd::sandbox] pulled image rustops/crates-build-env@sha256:e18d859f9e32a1da89bc7b2d7d51e13b57342044d1295d9fc0dd0068c58eb3d1
[2020-08-26T15:24:17Z INFO  rustwide::cmd::sandbox] checking the image rustops/crates-build-env@sha256:e18d859f9e32a1da89bc7b2d7d51e13b57342044d1295d9fc0dd0068c58eb3d1 is available locally
[2020-08-26T15:24:17Z INFO  rustwide::cmd] running `Command { std: "docker" "image" "inspect" "rustops/crates-build-env@sha256:e18d859f9e32a1da89bc7b2d7d51e13b57342044d1295d9fc0dd0068c58eb3d1", kill_on_drop: false }`
[2020-08-26T15:24:17Z INFO  rustwide::workspace] installing tools required by rustwide
[2020-08-26T15:24:17Z INFO  rustwide::tools] tool rustup is missing, installing it
[2020-08-26T15:24:17Z INFO  rustwide::cmd] running `Command { std: "/var/folders/th/snh0w5wx1ss9t8yxz4wbf39m0000gn/T/.tmpMTkXi4/rustup-init" "-y" "--no-modify-path" "--default-toolchain" "stable" "--profile" "minimal", kill_on_drop: false }`
[2020-08-26T15:24:17Z INFO  rustwide::cmd] [stderr] info: profile set to 'minimal'
[2020-08-26T15:24:17Z INFO  rustwide::cmd] [stderr] info: default host triple is x86_64-apple-darwin
[2020-08-26T15:24:17Z INFO  rustwide::cmd] [stderr] info: syncing channel updates for 'stable-x86_64-apple-darwin'
[2020-08-26T15:24:17Z INFO  rustwide::cmd] [stderr] info: latest update on 2020-08-03, rust version 1.45.2 (d3fb005a3 2020-07-31)
[2020-08-26T15:24:17Z INFO  rustwide::cmd] [stderr] info: downloading component 'cargo'
[2020-08-26T15:24:18Z INFO  rustwide::cmd] [stderr] info: downloading component 'rust-std'
[2020-08-26T15:24:18Z INFO  rustwide::cmd] [stderr] info: downloading component 'rustc'
[2020-08-26T15:24:19Z INFO  rustwide::cmd] [stderr] info: installing component 'cargo'
[2020-08-26T15:24:19Z INFO  rustwide::cmd] [stderr] info: Defaulting to 500.0 MiB unpack ram
[2020-08-26T15:24:19Z INFO  rustwide::cmd] [stderr] info: installing component 'rust-std'
[2020-08-26T15:24:21Z INFO  rustwide::cmd] [stderr] info: installing component 'rustc'
[2020-08-26T15:24:24Z INFO  rustwide::cmd] [stderr] info: default toolchain set to 'stable'
[2020-08-26T15:24:24Z INFO  rustwide::cmd] [stdout]
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout]   stable installed - rustc 1.45.2 (d3fb005a3 2020-07-31)
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout]
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout]
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout] Rust is installed now. Great!
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout]
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout] To get started you need Cargo's bin directory
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout] (/Users/evan/rust/rustwide/.workspaces/docs-builder/cargo-home/bin) in your
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout] PATH
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout] environment variable.
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout]
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout] To configure your current shell run
[2020-08-26T15:24:25Z INFO  rustwide::cmd] [stdout] source /Users/evan/rust/rustwide/.workspaces/docs-builder/cargo-home/env
[2020-08-26T15:24:25Z INFO  rustwide::tools] tool git-credential-null is missing, installing it
[2020-08-26T15:24:25Z INFO  rustwide::cmd] running `Command { std: "/Users/evan/rust/rustwide/.workspaces/docs-builder/cargo-home/bin/cargo" "+stable" "install" "git-credential-null", kill_on_drop: false }`
[2020-08-26T15:24:26Z INFO  rustwide::cmd] [stderr]     Updating crates.io index
[2020-08-26T15:24:46Z INFO  rustwide::cmd] [stderr]  Downloading crates ...
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stderr]   Downloaded git-credential-null v1.0.1
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stderr]   Installing git-credential-null v1.0.1
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stderr]    Compiling git-credential-null v1.0.1
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stderr]     Finished release [optimized] target(s) in 21.41s
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stderr]   Installing /Users/evan/rust/rustwide/.workspaces/docs-builder/cargo-home/bin/git-credential-null
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stderr]    Installed package `git-credential-null v1.0.1` (executable `git-credential-null`)
[2020-08-26T15:24:47Z INFO  rustwide::toolchain] installing toolchain stable
[2020-08-26T15:24:47Z INFO  rustwide::cmd] running `Command { std: "/Users/evan/rust/rustwide/.workspaces/docs-builder/cargo-home/bin/rustup" "toolchain" "install" "stable" "--profile" "minimal", kill_on_drop: false }`
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stderr] info: syncing channel updates for 'stable-x86_64-apple-darwin'
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stdout]
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stdout]   stable-x86_64-apple-darwin unchanged - rustc 1.45.2 (d3fb005a3 2020-07-31)
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stdout]
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stderr] info: checking for self-updates
[2020-08-26T15:24:47Z INFO  rustwide::crates::cratesio] fetching crate lazy_static 1.0.0...
[2020-08-26T15:24:47Z INFO  rustwide::crates::cratesio] extracting crate lazy_static 1.0.0 into .workspaces/docs-builder/builds/docs/source
[2020-08-26T15:24:47Z INFO  rustwide::prepare] validating manifest of crates.io crate lazy_static 1.0.0 on toolchain stable
[2020-08-26T15:24:47Z INFO  rustwide::cmd] running `Command { std: "/Users/evan/rust/rustwide/.workspaces/docs-builder/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[2020-08-26T15:24:47Z INFO  rustwide::prepare] started tweaking crates.io crate lazy_static 1.0.0
[2020-08-26T15:24:47Z INFO  rustwide::prepare] finished tweaking crates.io crate lazy_static 1.0.0
[2020-08-26T15:24:47Z INFO  rustwide::prepare] tweaked toml for crates.io crate lazy_static 1.0.0 written to .workspaces/docs-builder/builds/docs/source/Cargo.toml
[2020-08-26T15:24:47Z INFO  rustwide::cmd] running `Command { std: "/Users/evan/rust/rustwide/.workspaces/docs-builder/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[2020-08-26T15:24:47Z INFO  rustwide::cmd] [stderr]     Updating crates.io index
[2020-08-26T15:24:48Z INFO  rustwide::cmd] running `Command { std: "/Users/evan/rust/rustwide/.workspaces/docs-builder/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]  Downloading crates ...
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded dirs v2.0.2
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded arrayref v0.3.6
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded unicode-width v0.1.8
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded getopts v0.2.21
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded failure_derive v0.1.8
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded ryu v1.0.5
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded redox_users v0.3.4
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded quote v1.0.7
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded lazy_static v1.4.0
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded regex-syntax v0.6.18
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded unicode-xid v0.2.1
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded crossbeam-utils v0.7.2
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded diff v0.1.12
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded tester v0.6.0
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded term v0.6.1
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded failure v0.1.8
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded autocfg v1.0.1
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded base64 v0.11.0
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded addr2line v0.13.0
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded wasi v0.9.0+wasi-snapshot-preview1
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded synstructure v0.12.4
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded miniz_oxide v0.4.1
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded rustfix v0.4.6
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded thread_local v1.0.1
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded spin v0.4.10
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded itoa v0.4.6
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded rustc-demangle v0.1.16
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded compiletest_rs v0.3.26
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded backtrace v0.3.50
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded filetime v0.2.12
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded log v0.4.11
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded constant_time_eq v0.1.5
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded miow v0.3.5
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded memchr v2.3.3
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded getrandom v0.1.14
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded serde v1.0.115
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded aho-corasick v0.7.13
[2020-08-26T15:24:48Z INFO  rustwide::cmd] [stderr]   Downloaded winapi v0.3.9
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded serde_json v1.0.57
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded socket2 v0.3.12
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded object v0.20.0
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded adler v0.2.3
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded regex v1.3.9
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded serde_derive v1.0.115
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded proc-macro2 v1.0.19
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded redox_syscall v0.1.57
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded blake2b_simd v0.5.10
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded rust-argon2 v0.7.0
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded dirs-sys v0.3.5
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded cfg-if v0.1.10
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded gimli v0.22.0
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded arrayvec v0.5.1
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded libc v0.2.76
[2020-08-26T15:24:49Z INFO  rustwide::cmd] [stderr]   Downloaded winapi-x86_64-pc-windows-gnu v0.4.0
[2020-08-26T15:24:50Z INFO  rustwide::cmd] [stderr]   Downloaded winapi-i686-pc-windows-gnu v0.4.0
[2020-08-26T15:25:04Z INFO  rustwide::cmd] [stderr]   Downloaded syn v1.0.39
[2020-08-26T15:25:05Z INFO  rustwide::cmd] running `Command { std: "docker" "create" "-v" "/Users/evan/rust/rustwide/.workspaces/docs-builder/builds/docs/target:/opt/rustwide/target:rw,Z" "-v" "/Users/evan/rust/rustwide/.workspaces/docs-builder/builds/docs/source:/opt/rustwide/workdir:ro,Z" "-v" "/Users/evan/rust/rustwide/.workspaces/docs-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/Users/evan/rust/rustwide/.workspaces/docs-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1073741824" "--user" "501:20" "--network" "none" "rustops/crates-build-env@sha256:e18d859f9e32a1da89bc7b2d7d51e13b57342044d1295d9fc0dd0068c58eb3d1" "/opt/rustwide/cargo-home/bin/cargo" "+stable" "doc" "--no-deps", kill_on_drop: false }`
[2020-08-26T15:25:05Z INFO  rustwide::cmd] [stdout] 3db9a86e21556b6531a3c0f5bace34002248ae3e789f08721050a327e7d2509e
[2020-08-26T15:25:05Z INFO  rustwide::cmd] running `Command { std: "docker" "start" "-a" "3db9a86e21556b6531a3c0f5bace34002248ae3e789f08721050a327e7d2509e", kill_on_drop: false }`
[2020-08-26T15:25:05Z INFO  rustwide::cmd] [stderr] /opt/crates-build-env/entrypoint.sh: line 7: /etc/hosts: Permission denied
[2020-08-26T15:25:05Z INFO  rustwide::cmd] [stderr] /opt/crates-build-env/entrypoint.sh: line 28: /opt/rustwide/cargo-home/bin/cargo: cannot execute binary file: Exec format error
[2020-08-26T15:25:05Z INFO  rustwide::cmd] [stderr] /opt/crates-build-env/entrypoint.sh: line 28: /opt/rustwide/cargo-home/bin/cargo: Success
[2020-08-26T15:25:05Z INFO  rustwide::cmd] running `Command { std: "docker" "inspect" "3db9a86e21556b6531a3c0f5bace34002248ae3e789f08721050a327e7d2509e", kill_on_drop: false }`
[2020-08-26T15:25:05Z INFO  rustwide::cmd] running `Command { std: "docker" "rm" "-f" "3db9a86e21556b6531a3c0f5bace34002248ae3e789f08721050a327e7d2509e", kill_on_drop: false }`
[2020-08-26T15:25:05Z INFO  rustwide::cmd] [stdout] 3db9a86e21556b6531a3c0f5bace34002248ae3e789f08721050a327e7d2509e
Error: Compat { error: ExecutionFailed(ExitStatus(ExitStatus(32256))) }
@pietroalbini
Copy link
Member

Hmm, rustwide is meant to run on Linux and experimentally Windows. I think you're the first one testing it on macOS :)

@jyn514
Copy link
Member

jyn514 commented Nov 10, 2020

[2020-08-26T15:25:05Z INFO rustwide::cmd] [stderr] /opt/crates-build-env/entrypoint.sh: line 28: /opt/rustwide/cargo-home/bin/cargo: cannot execute binary file: Exec format error

This looks like rustwide is trying to execute a linux toolchain. I ran into issues with this in docs.rs, it's why I ended up suggesting a docker container just for running rustwide itself.

@Rustin170506
Copy link
Member

Same error on macos:

2021/03/23 00:14:24 [INFO] rustwide::cmd::sandbox: pulling image rustops/crates-build-env from Docker Hub
2021/03/23 00:14:24 [INFO] rustwide::cmd: running `Command { std: "docker" "pull" "rustops/crates-build-env", kill_on_drop: false }`
2021/03/23 00:14:24 [INFO] rustwide::cmd: [stdout] Using default tag: latest
2021/03/23 00:14:28 [INFO] rustwide::cmd: [stdout] latest: Pulling from rustops/crates-build-env
2021/03/23 00:14:28 [INFO] rustwide::cmd: [stdout] Digest: sha256:4f92631de1aa59f8320307485d3b3c869a5c90ab1d76ce2cffab9807b8c9a1fb
2021/03/23 00:14:28 [INFO] rustwide::cmd: [stdout] Status: Image is up to date for rustops/crates-build-env:latest
2021/03/23 00:14:28 [INFO] rustwide::cmd: [stdout] docker.io/rustops/crates-build-env:latest
2021/03/23 00:14:28 [INFO] rustwide::cmd: running `Command { std: "docker" "inspect" "rustops/crates-build-env" "--format" "{{index .RepoDigests 0}}", kill_on_drop: false }`
2021/03/23 00:14:28 [INFO] rustwide::cmd::sandbox: pulled image rustops/crates-build-env@sha256:4f92631de1aa59f8320307485d3b3c869a5c90ab1d76ce2cffab9807b8c9a1fb
2021/03/23 00:14:28 [INFO] rustwide::cmd::sandbox: checking the image rustops/crates-build-env@sha256:4f92631de1aa59f8320307485d3b3c869a5c90ab1d76ce2cffab9807b8c9a1fb is available locally
2021/03/23 00:14:28 [INFO] rustwide::cmd: running `Command { std: "docker" "image" "inspect" "rustops/crates-build-env@sha256:4f92631de1aa59f8320307485d3b3c869a5c90ab1d76ce2cffab9807b8c9a1fb", kill_on_drop: false }`
2021/03/23 00:14:29 [INFO] rustwide::workspace: installing tools required by rustwide
2021/03/23 00:14:29 [INFO] rustwide::tools: tool rustup is installed, trying to update it
2021/03/23 00:14:29 [INFO] rustwide::cmd: running `Command { std: "/Users/rustin/ClionProjects/docs.rs/.workspace/cargo-home/bin/rustup" "self" "update", kill_on_drop: false }`
2021/03/23 00:14:29 [INFO] rustwide::cmd: [stderr] info: checking for self-updates
2021/03/23 00:14:29 [INFO] rustwide::cmd: [stdout]   rustup unchanged - 1.23.1
2021/03/23 00:14:29 [INFO] rustwide::cmd: [stdout] 
2021/03/23 00:14:29 [INFO] rustwide::cmd: running `Command { std: "/Users/rustin/ClionProjects/docs.rs/.workspace/cargo-home/bin/rustup" "update" "stable", kill_on_drop: false }`
2021/03/23 00:14:29 [INFO] rustwide::cmd: [stderr] info: syncing channel updates for 'stable-x86_64-apple-darwin'
2021/03/23 00:14:30 [INFO] rustwide::cmd: [stdout] 
2021/03/23 00:14:30 [INFO] rustwide::cmd: [stdout]   stable-x86_64-apple-darwin unchanged - rustc 1.50.0 (cb75ad5db 2021-02-10)
2021/03/23 00:14:30 [INFO] rustwide::cmd: [stdout] 
2021/03/23 00:14:30 [INFO] rustwide::cmd: [stderr] info: checking for self-updates
2021/03/23 00:14:30 [INFO] rustwide::tools: tool git-credential-null is installed, trying to update it
2021/03/23 00:14:30 [INFO] rustwide::cmd: running `Command { std: "/Users/rustin/ClionProjects/docs.rs/.workspace/cargo-home/bin/cargo" "+stable" "install" "git-credential-null", kill_on_drop: false }`
2021/03/23 00:14:30 [INFO] rustwide::cmd: [stderr]     Updating crates.io index
2021/03/23 00:14:31 [INFO] rustwide::cmd: [stderr]      Ignored package `git-credential-null v1.0.1` is already installed, use --force to override
2021/03/23 00:14:31 [INFO] docs_rs::docbuilder::rustwide_builder: detecting rustc's version...
2021/03/23 00:14:31 [INFO] rustwide::cmd: running `Command { std: "/Users/rustin/ClionProjects/docs.rs/.workspace/cargo-home/bin/rustc" "+nightly" "--version", kill_on_drop: false }`
2021/03/23 00:14:31 [INFO] docs_rs::docbuilder::rustwide_builder: found rustc rustc 1.53.0-nightly (f82664191 2021-03-21)
2021/03/23 00:14:31 [INFO] docs_rs::docbuilder::rustwide_builder: building a dummy crate to get essential files
2021/03/23 00:14:31 [INFO] rustwide::crates::registry: crate empty-library 1.0.0 is already in cache
2021/03/23 00:14:31 [INFO] rustwide::crates::registry: extracting crate empty-library 1.0.0 into .workspace/builds/essential-files-20210321-1.53.0-nightly-f82664191/source
2021/03/23 00:14:31 [INFO] rustwide::prepare: validating manifest of crates.io crate empty-library 1.0.0 on toolchain nightly
2021/03/23 00:14:31 [INFO] rustwide::cmd: running `Command { std: "/Users/rustin/ClionProjects/docs.rs/.workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
2021/03/23 00:14:31 [INFO] rustwide::prepare: started tweaking crates.io crate empty-library 1.0.0
2021/03/23 00:14:31 [INFO] rustwide::prepare: finished tweaking crates.io crate empty-library 1.0.0
2021/03/23 00:14:31 [INFO] rustwide::prepare: tweaked toml for crates.io crate empty-library 1.0.0 written to .workspace/builds/essential-files-20210321-1.53.0-nightly-f82664191/source/Cargo.toml
2021/03/23 00:14:31 [INFO] rustwide::cmd: running `Command { std: "/Users/rustin/ClionProjects/docs.rs/.workspace/cargo-home/bin/cargo" "+nightly" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
2021/03/23 00:14:31 [INFO] rustwide::cmd: running `Command { std: "/Users/rustin/ClionProjects/docs.rs/.workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
2021/03/23 00:14:31 [INFO] rustwide::cmd: running `Command { std: "/Users/rustin/ClionProjects/docs.rs/.workspace/cargo-home/bin/cargo" "+nightly" "metadata" "--format-version" "1", kill_on_drop: false }`
2021/03/23 00:14:32 [INFO] rustwide::cmd: running `Command { std: "docker" "create" "-v" "/Users/rustin/ClionProjects/docs.rs/.workspace/builds/essential-files-20210321-1.53.0-nightly-f82664191/target:/opt/rustwide/target:rw,Z" "-v" "/Users/rustin/ClionProjects/docs.rs/.workspace/builds/essential-files-20210321-1.53.0-nightly-f82664191/source:/opt/rustwide/workdir:ro,Z" "-v" "/Users/rustin/ClionProjects/docs.rs/.workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/Users/rustin/ClionProjects/docs.rs/.workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--user" "501:20" "--network" "none" "rustops/crates-build-env@sha256:4f92631de1aa59f8320307485d3b3c869a5c90ab1d76ce2cffab9807b8c9a1fb" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs\"" "--" "-Z" "unstable-options" "--resource-suffix" "-20210321-1.53.0-nightly-f82664191" "--static-root-path" "/" "--cap-lints" "warn" "--disable-per-crate-search", kill_on_drop: false }`
2021/03/23 00:14:32 [INFO] rustwide::cmd: [stdout] 50afd929678c3a10de9b4cc98a9979765e746bb0b746b089e20ae28e0580e8f8
2021/03/23 00:14:32 [INFO] rustwide::cmd: running `Command { std: "docker" "start" "-a" "50afd929678c3a10de9b4cc98a9979765e746bb0b746b089e20ae28e0580e8f8", kill_on_drop: false }`
2021/03/23 00:14:32 [INFO] rustwide::cmd: [stderr] /opt/crates-build-env/entrypoint.sh: line 7: /etc/hosts: Permission denied
2021/03/23 00:14:32 [INFO] rustwide::cmd: [stderr] /opt/crates-build-env/entrypoint.sh: line 28: /opt/rustwide/cargo-home/bin/cargo: cannot execute binary file: Exec format error
2021/03/23 00:14:32 [INFO] rustwide::cmd: [stderr] /opt/crates-build-env/entrypoint.sh: line 28: /opt/rustwide/cargo-home/bin/cargo: Success
2021/03/23 00:14:32 [INFO] rustwide::cmd: running `Command { std: "docker" "inspect" "50afd929678c3a10de9b4cc98a9979765e746bb0b746b089e20ae28e0580e8f8", kill_on_drop: false }`
2021/03/23 00:14:33 [INFO] rustwide::cmd: running `Command { std: "docker" "rm" "-f" "50afd929678c3a10de9b4cc98a9979765e746bb0b746b089e20ae28e0580e8f8", kill_on_drop: false }`
2021/03/23 00:14:33 [INFO] rustwide::cmd: [stdout] 50afd929678c3a10de9b4cc98a9979765e746bb0b746b089e20ae28e0580e8f8
Error: failed to add essential files

@Rustin170506
Copy link
Member

@pietroalbini Do you have any suggestions for fixing this problem?

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

4 participants