Blockstream / esplora

Explorer for Bitcoin and Liquid
MIT License
994 stars 397 forks source link

failed to compile `electrs v0.4.1 (/electrs)`, intermediate artifacts can be found at `/electrs/target` #336

Closed Trudko closed 3 years ago

Trudko commented 3 years ago

I've tried to build esplora base using by running docker build -t blockstream/esplora-base:latest -f Dockerfile.deps . I wanted to use my own fork of esplora/electrs to build. Even with default Dockerfile.deps the built has failed. Using latest version of esplora, Docker version 20.10.8, build 3967b7d. Full output:

 => [internal] load build definition from Dockerfile.deps                                                                                                                                                                                                  0.0s
 => => transferring dockerfile: 3.52kB                                                                                                                                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                          0.0s
 => => transferring context: 294B                                                                                                                                                                                                                          0.0s
 => [internal] load metadata for docker.io/library/debian:buster@sha256:1092695e843ad975267131f27a2b523128c4e03d2d96574bbdd7cf949ed51475                                                                                                                   1.2s
 => [internal] load metadata for docker.io/greenaddress/wallycore@sha256:d63d222be12f6b2535e1548aa7f21cf649e2230d6c9e01bd518c23eb0bccd46f                                                                                                                  1.9s
 => [auth] greenaddress/wallycore:pull token for registry-1.docker.io                                                                                                                                                                                      0.0s
 => [auth] library/debian:pull token for registry-1.docker.io                                                                                                                                                                                              0.0s
 => CACHED [stage-1 1/9] FROM docker.io/library/debian:buster@sha256:1092695e843ad975267131f27a2b523128c4e03d2d96574bbdd7cf949ed51475                                                                                                                      0.0s
 => [libwally-wasm 1/2] FROM docker.io/greenaddress/wallycore@sha256:d63d222be12f6b2535e1548aa7f21cf649e2230d6c9e01bd518c23eb0bccd46f                                                                                                                    853.9s
 => => resolve docker.io/greenaddress/wallycore@sha256:d63d222be12f6b2535e1548aa7f21cf649e2230d6c9e01bd518c23eb0bccd46f                                                                                                                                    0.0s
 => => sha256:c9d783e0f49609abc855e0a9adb4283e356f3799394f7b942b6a2d698838c166 2.51kB / 2.51kB                                                                                                                                                             0.0s
 => => sha256:756975cb9c7e7933d824af9319b512dd72a50894232761d06ef3be59981df838 50.40MB / 50.40MB                                                                                                                                                          19.4s
 => => sha256:56d7eeb04352033b5b15685117371a47328a41aca66ac6664875ee64f0809227 748B / 748B                                                                                                                                                                 0.6s
 => => sha256:f17d018f37e5720d983b5961c7c02e3af9460c0c702e9edf740bb16d800ac9bf 2.61GB / 2.61GB                                                                                                                                                           622.5s
 => => sha256:d63d222be12f6b2535e1548aa7f21cf649e2230d6c9e01bd518c23eb0bccd46f 950B / 950B                                                                                                                                                                 0.0s
 => => extracting sha256:756975cb9c7e7933d824af9319b512dd72a50894232761d06ef3be59981df838                                                                                                                                                                  2.2s
 => => extracting sha256:56d7eeb04352033b5b15685117371a47328a41aca66ac6664875ee64f0809227                                                                                                                                                                  0.0s
 => => extracting sha256:f17d018f37e5720d983b5961c7c02e3af9460c0c702e9edf740bb16d800ac9bf                                                                                                                                                                228.8s
 => [stage-1 2/9] RUN mkdir -p /srv/explorer  && apt-get -yqq update  && apt-get -yqq upgrade  && apt-get -yqq install clang cmake curl git tor                                                                                                          152.2s 
 => [stage-1 3/9] RUN git clone --quiet --depth 1 --single-branch --branch v0.33.11 https://github.com/creationix/nvm.git /root/.nvm  && rm -rf /root/.nvm/.git  && source /root/.nvm/nvm.sh  && nvm install v12.16.1                                     15.3s 
 => [stage-1 4/9] RUN curl -sL -o bitcoin.tar.gz "https://bitcoincore.org/bin/bitcoin-core-0.21.1/bitcoin-0.21.1-x86_64-linux-gnu.tar.gz"  && echo "366eb44a7a0aa5bd342deea215ec19a184a11f2ca22220304ebb20b9c8917e2b  bitcoin.tar.gz" | sha256sum --chec  31.3s 
 => [stage-1 5/9] RUN curl -sL -o elements.tar.gz "https://github.com/ElementsProject/elements/releases/download/elements-0.18.1.12/elements-0.18.1.12-x86_64-linux-gnu.tar.gz"  && echo "b4038a34fcb3f1ed55acc0891cea8cd988ac8f164be2bb93d6dee24779744f  11.8s 
 => [stage-1 6/9] RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.50.0                                                                                                                                                             70.6s 
 => ERROR [stage-1 7/9] RUN source /root/.cargo/env  && mkdir -p /srv/explorer/electrs{,_liquid}  && git clone --no-checkout https://github.com/blockstream/electrs.git  && cd electrs  && git checkout abfbce73eb0504630a09f1e6599114ef4fa25bda  && cp  737.0s 
 => [libwally-wasm 2/2] RUN sh -c '[ -n "$NO_LIQUID" ] && mkdir -p /wally/wally_dist || (     cd /opt/emsdk && . ./emsdk_env.sh     && git clone --no-checkout https://github.com/elementsproject/libwally-core /wally     && cd /wally && git checkout   95.3s 
------                                                                                                                                                                                                                                                          
 > [stage-1 7/9] RUN source /root/.cargo/env  && mkdir -p /srv/explorer/electrs{,_liquid}  && git clone --no-checkout https://github.com/blockstream/electrs.git  && cd electrs  && git checkout abfbce73eb0504630a09f1e6599114ef4fa25bda  && cp contrib/popular-scripts.txt /srv/explorer  && cargo install --root /srv/explorer/electrs_bitcoin --locked --path . --features electrum-discovery  && cargo install --root /srv/explorer/electrs_liquid --locked --path . --features electrum-discovery,liquid  && cd ..  && rm -fr /root/.cargo electrs  && strip /srv/explorer/electrs_*/bin/electrs:                                                                                                                                                                                         
#12 0.296 Cloning into 'electrs'...                                                                                                                                                                                                                             
#12 3.289 Note: checking out 'abfbce73eb0504630a09f1e6599114ef4fa25bda'.                                                                                                                                                                                        
#12 3.289                                                                                                                                                                                                                                                       
#12 3.289 You are in 'detached HEAD' state. You can look around, make experimental                                                                                                                                                                              
#12 3.289 changes and commit them, and you can discard any commits you make in this                                                                                                                                                                             
#12 3.289 state without impacting any branches by performing another checkout.                                                                                                                                                                                  
#12 3.289                                                                                                                                                                                                                                                       
#12 3.289 If you want to create a new branch to retain commits you create, you may                                                                                                                                                                              
#12 3.289 do so (now or later) by using -b with the checkout command again. Example:
#12 3.289 
#12 3.289   git checkout -b <new-branch-name>
#12 3.289 
#12 3.289 HEAD is now at abfbce7 Report the indexed tip height as a Prometheus metric (#37)
#12 3.539   Installing electrs v0.4.1 (/electrs)
#12 3.547     Updating git repository `https://github.com/blockstream/rust-bitcoin`
#12 7.677     Updating git repository `https://github.com/Blockstream/rust-electrum-client`
#12 8.747     Updating git repository `https://github.com/elementsproject/rust-elements`
#12 10.18     Updating crates.io index
#12 106.5 warning: package `arc-swap v0.4.7` in Cargo.lock is yanked in registry `crates.io`, consider running without --locked
#12 106.5 warning: package `crossbeam-deque v0.8.0` in Cargo.lock is yanked in registry `crates.io`, consider running without --locked
#12 106.5 warning: package `crossbeam-epoch v0.9.1` in Cargo.lock is yanked in registry `crates.io`, consider running without --locked
#12 106.5 warning: package `futures-util v0.3.5` in Cargo.lock is yanked in registry `crates.io`, consider running without --locked
#12 106.5 warning: package `miow v0.2.1` in Cargo.lock is yanked in registry `crates.io`, consider running without --locked
#12 106.5 warning: package `net2 v0.2.34` in Cargo.lock is yanked in registry `crates.io`, consider running without --locked
#12 106.5 warning: package `pin-project-lite v0.1.7` in Cargo.lock is yanked in registry `crates.io`, consider running without --locked
#12 106.9 warning: Patch `elements v0.12.1 (https://github.com/elementsproject/rust-elements?rev=98e0c4ba1b55cd876d1d8bcff64bcf01c4c370b6#98e0c4ba)` was not used in the crate graph.
#12 106.9 Check that the patched package version and available features are compatible
#12 106.9 with the dependency requirements. If the patch has a different version from
#12 106.9 what is locked in the Cargo.lock file, run `cargo update` to use the new
#12 106.9 version. This may also occur with an optional dependency that is not enabled.
#12 106.9  Downloading crates ...
#12 107.8   Downloaded crossbeam-deque v0.8.0
#12 107.9   Downloaded itertools v0.9.0
#12 107.9   Downloaded errno v0.2.5
#12 108.0   Downloaded rustc-demangle v0.1.16
#12 108.0   Downloaded libloading v0.5.2
#12 108.0   Downloaded rustc-hash v1.1.0
#12 108.1   Downloaded aho-corasick v0.7.13
#12 108.1   Downloaded backtrace v0.3.50
#12 108.2   Downloaded ryu v1.0.5
#12 108.2   Downloaded want v0.3.0
#12 108.2   Downloaded unicode-width v0.1.8
#12 108.2   Downloaded crossbeam-channel v0.5.0
#12 108.3   Downloaded clang-sys v0.29.3
#12 108.3   Downloaded crossbeam-epoch v0.9.1
#12 108.3   Downloaded dirs v3.0.1
#12 108.3   Downloaded dirs-sys v0.3.5
#12 108.3   Downloaded ascii v1.0.0
#12 108.4   Downloaded base64 v0.13.0
#12 108.4   Downloaded env_logger v0.7.1
#12 108.4   Downloaded autocfg v1.0.0
#12 108.4   Downloaded hex v0.3.2
#12 108.5   Downloaded hex v0.4.2
#12 108.6   Downloaded hyper v0.13.6
#12 108.6   Downloaded httparse v1.3.4
#12 108.6   Downloaded clap v2.33.3
#12 108.7   Downloaded indexmap v1.4.0
#12 108.7   Downloaded http-body v0.3.1
#12 108.8   Downloaded lazy_static v1.4.0
#12 108.8   Downloaded memoffset v0.6.1
#12 108.8   Downloaded once_cell v1.4.0
#12 109.0   Downloaded rayon-core v1.9.0
#12 109.2   Downloaded lock_api v0.4.2
#12 109.2   Downloaded matches v0.1.8
#12 109.2   Downloaded log v0.4.11
#12 109.3   Downloaded memchr v2.3.3
#12 109.3   Downloaded mio v0.6.22
#12 109.3   Downloaded net2 v0.2.34
#12 109.4   Downloaded page_size v0.4.2
#12 109.4   Downloaded nom v5.1.2
#12 109.4   Downloaded proc-macro-nested v0.1.6
#12 109.4   Downloaded percent-encoding v2.1.0
#12 109.4   Downloaded regex-syntax v0.6.18
#12 109.5   Downloaded smallvec v1.5.1
#12 109.5   Downloaded rayon v1.5.0
#12 109.5   Downloaded stderrlog v0.5.0
#12 109.5   Downloaded textwrap v0.11.0
#12 109.6   Downloaded thiserror v1.0.20
#12 109.6   Downloaded tiny_http v0.7.0
#12 109.6   Downloaded spin v0.5.2
#12 109.6   Downloaded sct v0.6.0
#12 109.7   Downloaded standback v0.2.9
#12 109.7   Downloaded thread_local v1.0.1
#12 109.8   Downloaded syn v1.0.33
#12 109.8   Downloaded time v0.1.43
#12 109.8   Downloaded tinyvec v0.3.3
#12 109.8   Downloaded tokio-util v0.3.1
#12 109.8   Downloaded addr2line v0.13.0
#12 109.8   Downloaded ansi_term v0.11.0
#12 109.8   Downloaded arc-swap v0.4.7
#12 109.9   Downloaded arrayref v0.3.6
#12 109.9   Downloaded arraydeque v0.4.5
#12 109.9   Downloaded atty v0.2.11
#12 109.9   Downloaded base64 v0.10.1
#12 109.9   Downloaded bech32 v0.7.2
#12 109.9   Downloaded bincode v1.3.1
#12 110.0   Downloaded bindgen v0.54.0
#12 110.0   Downloaded bitcoin_hashes v0.7.6
#12 110.0   Downloaded bitflags v1.2.1
#12 110.0   Downloaded byteorder v1.3.4
#12 110.0   Downloaded bytes v0.5.5
#12 110.1   Downloaded cc v1.0.41
#12 110.1   Downloaded cfg-if v1.0.0
#12 110.1   Downloaded cexpr v0.4.0
#12 110.1   Downloaded try-lock v0.2.2
#12 110.1   Downloaded chrono v0.4.13
#12 110.2   Downloaded chunked_transfer v1.2.0
#12 110.2   Downloaded either v1.5.3
#12 110.2   Downloaded fnv v1.0.7
#12 110.2   Downloaded crossbeam-utils v0.8.1
#12 110.2   Downloaded form_urlencoded v1.0.0
#12 110.2   Downloaded futures-channel v0.3.5
#12 110.2   Downloaded futures-core v0.3.5
#12 110.2   Downloaded futures-task v0.3.5
#12 110.2   Downloaded futures-sink v0.3.5
#12 110.3   Downloaded unicode-normalization v0.1.13
#12 110.3   Downloaded version_check v0.9.2
#12 110.3   Downloaded glob v0.3.0
#12 110.4   Downloaded pin-project v0.4.22
#12 110.4   Downloaded rand v0.3.23
#12 110.4   Downloaded h2 v0.2.5
#12 110.4   Downloaded humantime v1.3.0
#12 110.5   Downloaded idna v0.2.0
#12 110.5   Downloaded itoa v0.4.6
#12 110.5   Downloaded instant v0.1.9
#12 110.5   Downloaded http v0.2.1
#12 110.5   Downloaded iovec v0.1.4
#12 110.5   Downloaded libc v0.2.81
#12 110.5   Downloaded miniz_oxide v0.4.0
#12 110.5   Downloaded adler v0.2.2
#12 110.7   Downloaded cfg-if v0.1.10
#12 110.7   Downloaded error-chain v0.12.4
#12 110.7   Downloaded futures-macro v0.3.5
#12 110.7   Downloaded futures-util v0.3.5
#12 110.7   Downloaded mio-uds v0.6.8
#12 110.7   Downloaded kernel32-sys v0.2.2
#12 110.7   Downloaded num-integer v0.1.43
#12 110.7   Downloaded hyperlocal v0.7.0
#12 110.8   Downloaded num-traits v0.2.12
#12 110.8   Downloaded num_cpus v1.13.0
#12 110.8   Downloaded pin-project-internal v0.4.22
#12 110.8   Downloaded proc-macro2 v1.0.18
#12 110.8   Downloaded prometheus v0.11.0
#12 110.8   Downloaded rand v0.4.6
#12 110.8   Downloaded signal-hook-registry v1.2.0
#12 110.9   Downloaded parking_lot_core v0.8.1
#12 110.9   Downloaded vec_map v0.8.2
#12 110.9   Downloaded proc-macro-hack v0.5.16
#12 110.9   Downloaded object v0.20.0
#12 111.0   Downloaded peeking_take_while v0.1.2
#12 111.0   Downloaded parking_lot v0.11.1
#12 111.0   Downloaded pin-project-lite v0.1.7
#12 111.0   Downloaded lazycell v1.2.1
#12 111.0   Downloaded quick-error v1.2.3
#12 111.1   Downloaded rustls v0.16.0
#12 111.1   Downloaded rocksdb v0.15.0
#12 111.2   Downloaded winapi v0.2.8
#12 111.4   Downloaded scopeguard v1.1.0
#12 111.4   Downloaded secp256k1 v0.17.2
#12 111.4   Downloaded gimli v0.22.0
#12 111.6   Downloaded serde_derive v1.0.118
#12 111.7   Downloaded serde v1.0.118
#12 111.8   Downloaded serde_json v1.0.60
#12 111.9   Downloaded shlex v0.1.1
#12 111.9   Downloaded regex v1.3.9
#12 112.0   Downloaded secp256k1-sys v0.1.2
#12 112.0   Downloaded which v3.1.1
#12 112.0   Downloaded signal-hook v0.2.2
#12 112.0   Downloaded slab v0.4.2
#12 112.1   Downloaded socket2 v0.3.18
#12 112.1   Downloaded strsim v0.8.0
#12 112.1   Downloaded socks v0.3.2
#12 112.1   Downloaded thiserror-impl v1.0.20
#12 112.2   Downloaded time-macros v0.1.0
#12 112.2   Downloaded time v0.2.23
#12 112.2   Downloaded tokio-macros v0.2.5
#12 112.3   Downloaded time-macros-impl v0.1.1
#12 112.3   Downloaded unicode-bidi v0.3.4
#12 112.3   Downloaded untrusted v0.7.1
#12 112.3   Downloaded unicode-xid v0.2.1
#12 112.4   Downloaded url v2.2.0
#12 112.4   Downloaded webpki v0.21.2
#12 112.5   Downloaded winapi-build v0.1.1
#12 112.5   Downloaded const_fn v0.4.4
#12 112.5   Downloaded gcc v0.3.55
#12 112.6   Downloaded quote v1.0.7
#12 112.6   Downloaded sysconf v0.3.4
#12 112.6   Downloaded termcolor v1.1.0
#12 112.6   Downloaded tower-service v0.3.0
#12 112.6   Downloaded pin-utils v0.1.0
#12 112.9   Downloaded protobuf v2.16.2
#12 113.0   Downloaded webpki-roots v0.19.0
#12 113.0   Downloaded rustc-serialize v0.3.24
#12 113.1   Downloaded tokio v0.2.6
#12 114.5   Downloaded rust-crypto v0.2.36
#12 115.0   Downloaded librocksdb-sys v6.11.4
#12 119.0   Downloaded ring v0.16.12
#12 119.2    Compiling libc v0.2.81
#12 119.2    Compiling autocfg v1.0.0
#12 119.2    Compiling const_fn v0.4.4
#12 119.2    Compiling proc-macro2 v1.0.18
#12 119.2    Compiling lazy_static v1.4.0
#12 119.2    Compiling unicode-xid v0.2.1
#12 119.9    Compiling rayon-core v1.9.0
#12 119.9    Compiling cfg-if v1.0.0
#12 120.2    Compiling scopeguard v1.1.0
#12 120.7    Compiling syn v1.0.33
#12 121.0    Compiling either v1.5.3
#12 121.0    Compiling log v0.4.11
#12 121.0    Compiling memchr v2.3.3
#12 121.0    Compiling version_check v0.9.2
#12 121.8    Compiling cfg-if v0.1.10
#12 122.1    Compiling bitflags v1.2.1
#12 122.2    Compiling glob v0.3.0
#12 122.2    Compiling serde_derive v1.0.118
#12 122.3    Compiling slab v0.4.2
#12 122.4    Compiling serde v1.0.118
#12 122.8    Compiling proc-macro-hack v0.5.16
#12 122.8    Compiling fnv v1.0.7
#12 123.1    Compiling itoa v0.4.6
#12 123.2    Compiling pin-project-internal v0.4.22
#12 123.3    Compiling regex-syntax v0.6.18
#12 123.6    Compiling quick-error v1.2.3
#12 123.6    Compiling futures-core v0.3.5
#12 124.1    Compiling unicode-width v0.1.8
#12 124.1    Compiling byteorder v1.3.4
#12 124.2    Compiling bytes v0.5.5
#12 124.3    Compiling termcolor v1.1.0
#12 124.4    Compiling ansi_term v0.11.0
#12 125.5    Compiling strsim v0.8.0
#12 125.6    Compiling untrusted v0.7.1
#12 125.7    Compiling proc-macro-nested v0.1.6
#12 126.1    Compiling bindgen v0.54.0
#12 126.5    Compiling spin v0.5.2
#12 126.9    Compiling vec_map v0.8.2
#12 126.9    Compiling lazycell v1.2.1
#12 126.9    Compiling matches v0.1.8
#12 127.0    Compiling peeking_take_while v0.1.2
#12 127.2    Compiling shlex v0.1.1
#12 127.3    Compiling pin-project-lite v0.1.7
#12 127.3    Compiling once_cell v1.4.0
#12 127.3    Compiling rustc-hash v1.1.0
#12 127.4    Compiling httparse v1.3.4
#12 127.6    Compiling winapi-build v0.1.1
#12 127.7    Compiling pin-utils v0.1.0
#12 127.9    Compiling tinyvec v0.3.3
#12 127.9    Compiling ryu v1.0.5
#12 127.9    Compiling futures-sink v0.3.5
#12 128.4    Compiling protobuf v2.16.2
#12 128.6    Compiling serde_json v1.0.60
#12 129.3    Compiling gcc v0.3.55
#12 129.4    Compiling smallvec v1.5.1
#12 129.4    Compiling percent-encoding v2.1.0
#12 129.9    Compiling adler v0.2.2
#12 130.0    Compiling try-lock v0.2.2
#12 130.3    Compiling gimli v0.22.0
#12 130.4    Compiling winapi v0.2.8
#12 130.5    Compiling bech32 v0.7.2
#12 130.6    Compiling object v0.20.0
#12 131.3    Compiling tower-service v0.3.0
#12 131.8    Compiling arc-swap v0.4.7
#12 133.2    Compiling hex v0.3.2
#12 133.3    Compiling rustc-demangle v0.1.16
#12 135.9    Compiling prometheus v0.11.0
#12 136.5    Compiling arraydeque v0.4.5
#12 136.6    Compiling chunked_transfer v1.2.0
#12 138.9    Compiling hex v0.4.2
#12 139.4    Compiling rustc-serialize v0.3.24
#12 140.2    Compiling ascii v1.0.0
#12 141.3    Compiling base64 v0.13.0
#12 142.1    Compiling arrayref v0.3.6
#12 142.3    Compiling thread_local v1.0.1
#12 143.3    Compiling crossbeam-utils v0.8.1
#12 143.5    Compiling memoffset v0.6.1
#12 144.1    Compiling rayon v1.5.0
#12 144.2    Compiling num-traits v0.2.12
#12 144.2    Compiling indexmap v1.4.0
#12 144.7    Compiling num-integer v0.1.43
#12 145.4    Compiling instant v0.1.9
#12 145.6    Compiling nom v5.1.2
#12 145.6    Compiling standback v0.2.9
#12 145.9    Compiling error-chain v0.12.4
#12 146.5    Compiling time v0.2.23
#12 147.3    Compiling humantime v1.3.0
#12 147.4    Compiling futures-channel v0.3.5
#12 148.0    Compiling clang-sys v0.29.3
#12 148.4    Compiling lock_api v0.4.2
#12 148.5    Compiling textwrap v0.11.0
#12 149.4    Compiling http v0.2.1
#12 149.5    Compiling unicode-bidi v0.3.4
#12 149.8    Compiling futures-task v0.3.5
#12 150.1    Compiling kernel32-sys v0.2.2
#12 150.7    Compiling unicode-normalization v0.1.13
#12 151.4    Compiling form_urlencoded v1.0.0
#12 153.0    Compiling miniz_oxide v0.4.0
#12 153.2    Compiling itertools v0.9.0
#12 154.7    Compiling rust-crypto v0.2.36
#12 158.1    Compiling addr2line v0.13.0
#12 168.4    Compiling idna v0.2.0
#12 169.1    Compiling http-body v0.3.1
#12 170.5    Compiling net2 v0.2.34
#12 170.6    Compiling iovec v0.1.4
#12 171.0    Compiling time v0.1.43
#12 171.8    Compiling parking_lot_core v0.8.1
#12 172.5    Compiling num_cpus v1.13.0
#12 175.1    Compiling atty v0.2.11
#12 175.6    Compiling socket2 v0.3.18
#12 175.9    Compiling rand v0.4.6
#12 178.7    Compiling signal-hook-registry v1.2.0
#12 181.0    Compiling backtrace v0.3.50
#12 181.2    Compiling dirs-sys v0.3.5
#12 183.4    Compiling errno v0.2.5
#12 185.4    Compiling page_size v0.4.2
#12 189.1    Compiling which v3.1.1
#12 190.1    Compiling quote v1.0.7
#12 195.3    Compiling aho-corasick v0.7.13
#12 197.8    Compiling want v0.3.0
#12 207.9    Compiling base64 v0.10.1
#12 209.4    Compiling socks v0.3.2
#12 210.8    Compiling url v2.2.0
#12 213.5    Compiling mio v0.6.22
#12 216.6    Compiling parking_lot v0.11.1
#12 217.9    Compiling clap v2.33.3
#12 223.3    Compiling signal-hook v0.2.2
#12 223.6    Compiling dirs v3.0.1
#12 224.1    Compiling rand v0.3.23
#12 226.5    Compiling crossbeam-epoch v0.9.1
#12 229.1    Compiling crossbeam-channel v0.5.0
#12 232.8    Compiling regex v1.3.9
#12 246.8    Compiling sysconf v0.3.4
#12 247.4    Compiling cexpr v0.4.0
#12 248.4    Compiling mio-uds v0.6.8
#12 252.1    Compiling crossbeam-deque v0.8.0
#12 253.2    Compiling env_logger v0.7.1
#12 253.2    Compiling chrono v0.4.13
#12 261.0    Compiling tokio-macros v0.2.5
#12 265.7    Compiling futures-macro v0.3.5
#12 266.5    Compiling time-macros-impl v0.1.1
#12 270.0    Compiling thiserror-impl v1.0.20
#12 274.5    Compiling stderrlog v0.5.0
#12 275.4    Compiling tiny_http v0.7.0
#12 276.4    Compiling tokio v0.2.6
#12 277.1    Compiling time-macros v0.1.0
#12 277.9    Compiling pin-project v0.4.22
#12 278.2    Compiling thiserror v1.0.20
#12 286.1    Compiling futures-util v0.3.5
#12 287.9    Compiling tokio-util v0.3.1
#12 288.9    Compiling cc v1.0.41
#12 290.0    Compiling bitcoin_hashes v0.7.6
#12 291.0    Compiling bincode v1.3.1
#12 292.8    Compiling libloading v0.5.2
#12 292.8    Compiling ring v0.16.12
#12 295.0    Compiling secp256k1-sys v0.1.2
#12 297.6    Compiling h2 v0.2.5
#12 304.8    Compiling secp256k1 v0.17.2
#12 306.6    Compiling bitcoin v0.23.0 (https://github.com/blockstream/rust-bitcoin?rev=0.23-electrs#dd131855)
#12 309.9    Compiling hyper v0.13.6
#12 315.3    Compiling webpki v0.21.2
#12 319.0    Compiling sct v0.6.0
#12 319.6    Compiling webpki-roots v0.19.0
#12 320.1    Compiling hyperlocal v0.7.0
#12 320.7    Compiling rustls v0.16.0
#12 329.0    Compiling electrum-client v0.1.0-beta.6 (https://github.com/Blockstream/rust-electrum-client?rev=bd783aa70604fa1a0d8b29a3459326c640001354#bd783aa7)
#12 340.8    Compiling librocksdb-sys v6.11.4
#12 608.8    Compiling rocksdb v0.15.0
#12 609.7    Compiling electrs v0.4.1 (/electrs)
#12 611.1 warning: use of deprecated function `bincode::config`: please use `options()` instead
#12 611.1     --> src/new_index/schema.rs:1446:9
#12 611.1      |
#12 611.1 1446 |         bincode::config()
#12 611.1      |         ^^^^^^^^^^^^^^^
#12 611.1      |
#12 611.1      = note: `#[warn(deprecated)]` on by default
#12 611.1 
#12 611.1 warning: use of deprecated function `bincode::config`: please use `options()` instead
#12 611.1     --> src/new_index/schema.rs:1454:18
#12 611.1      |
#12 611.1 1454 |             key: bincode::config().big_endian().serialize(&self.key).unwrap(),
#12 611.1      |                  ^^^^^^^^^^^^^^^
#12 611.1 
#12 611.1 warning: use of deprecated function `bincode::config`: please use `options()` instead
#12 611.1     --> src/new_index/schema.rs:1460:19
#12 611.1      |
#12 611.1 1460 |         let key = bincode::config()
#12 611.1      |                   ^^^^^^^^^^^^^^^
#12 611.1 
#12 683.1 warning: 3 warnings emitted
#12 683.1 
#12 691.8 error: could not compile `electrs`
#12 691.8 
#12 691.8 Caused by:
#12 691.8   process didn't exit successfully: `rustc --crate-name electrs --edition=2018 src/bin/electrs.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C panic=abort -C lto -C codegen-units=1 --cfg 'feature="default"' --cfg 'feature="electrum-client"' --cfg 'feature="electrum-discovery"' --cfg 'feature="rocksdb"' -C metadata=ef5baae7da187ad3 -C extra-filename=-ef5baae7da187ad3 --out-dir /electrs/target/release/deps -L dependency=/electrs/target/release/deps --extern arraydeque=/electrs/target/release/deps/libarraydeque-2aaff4bc3b51adb2.rlib --extern arrayref=/electrs/target/release/deps/libarrayref-85228a9b7e32a0d8.rlib --extern base64=/electrs/target/release/deps/libbase64-01ac66331481b2b1.rlib --extern bincode=/electrs/target/release/deps/libbincode-ba3d5a75007f7009.rlib --extern bitcoin=/electrs/target/release/deps/libbitcoin-4878e1875dc6a90a.rlib --extern clap=/electrs/target/release/deps/libclap-2f1c2804f29e8b45.rlib --extern crossbeam_channel=/electrs/target/release/deps/libcrossbeam_channel-199e557ea2ee8937.rlib --extern dirs=/electrs/target/release/deps/libdirs-1b09d95f723a69a8.rlib --extern electrs=/electrs/target/release/deps/libelectrs-90fb55e9d6949777.rlib --extern electrum_client=/electrs/target/release/deps/libelectrum_client-cf568100d7a0c977.rlib --extern error_chain=/electrs/target/release/deps/liberror_chain-4e57f17375ea9f1a.rlib --extern glob=/electrs/target/release/deps/libglob-033b8e18e9691dfe.rlib --extern hex=/electrs/target/release/deps/libhex-de2ab984f514f008.rlib --extern hyper=/electrs/target/release/deps/libhyper-36034aa79acf2bb3.rlib --extern hyperlocal=/electrs/target/release/deps/libhyperlocal-e55e54185b4366bd.rlib --extern itertools=/electrs/target/release/deps/libitertools-306b8c88547a5c71.rlib --extern lazy_static=/electrs/target/release/deps/liblazy_static-53a9f424ece29290.rlib --extern libc=/electrs/target/release/deps/liblibc-9881c201b1934bf9.rlib --extern log=/electrs/target/release/deps/liblog-ab9d850b03ba55f1.rlib --extern num_cpus=/electrs/target/release/deps/libnum_cpus-60ab17632aecac9d.rlib --extern page_size=/electrs/target/release/deps/libpage_size-53be359076401604.rlib --extern prometheus=/electrs/target/release/deps/libprometheus-e0e98d4eca64ee40.rlib --extern rayon=/electrs/target/release/deps/librayon-187264329b09ae9e.rlib --extern rocksdb=/electrs/target/release/deps/librocksdb-6fe58768c1175af4.rlib --extern crypto=/electrs/target/release/deps/libcrypto-5a1cf6b91d4806dd.rlib --extern serde=/electrs/target/release/deps/libserde-27d1e8061ecb0fcc.rlib --extern serde_derive=/electrs/target/release/deps/libserde_derive-ccc8ddb34cd2a1b8.so --extern serde_json=/electrs/target/release/deps/libserde_json-61de7935e7c74f82.rlib --extern signal_hook=/electrs/target/release/deps/libsignal_hook-f0c8a002d8536e07.rlib --extern socket2=/electrs/target/release/deps/libsocket2-0042b15d31ce8445.rlib --extern stderrlog=/electrs/target/release/deps/libstderrlog-a825fc266ebfc757.rlib --extern sysconf=/electrs/target/release/deps/libsysconf-964dcd12c257ffa3.rlib --extern time=/electrs/target/release/deps/libtime-0826975f3a3c3e9c.rlib --extern tiny_http=/electrs/target/release/deps/libtiny_http-c2c8c6a50320e50b.rlib --extern tokio=/electrs/target/release/deps/libtokio-546a7b336979a1f7.rlib --extern url=/electrs/target/release/deps/liburl-1335e4504bffd69b.rlib -L native=/electrs/target/release/build/secp256k1-sys-2a0e258736af6f2d/out -L native=/electrs/target/release/build/ring-80bb60da4a6ad163/out -L native=/electrs/target/release/build/librocksdb-sys-ff70f02d3d2b536b/out -L native=/electrs/target/release/build/librocksdb-sys-ff70f02d3d2b536b/out -L native=/electrs/target/release/build/librocksdb-sys-ff70f02d3d2b536b/out -L native=/electrs/target/release/build/librocksdb-sys-ff70f02d3d2b536b/out -L native=/electrs/target/release/build/librocksdb-sys-ff70f02d3d2b536b/out -L native=/electrs/target/release/build/librocksdb-sys-ff70f02d3d2b536b/out -L native=/electrs/target/release/build/rust-crypto-1bcbf8eef8e0d98d/out` (signal: 9, SIGKILL: kill)
#12 691.8 warning: build failed, waiting for other jobs to finish...
#12 736.9 error: failed to compile `electrs v0.4.1 (/electrs)`, intermediate artifacts can be found at `/electrs/target`
#12 736.9 
#12 736.9 Caused by:
#12 736.9   build failed
------
executor failed running [/bin/bash -c source /root/.cargo/env  && mkdir -p /srv/explorer/electrs{,_liquid}  && git clone --no-checkout https://github.com/blockstream/electrs.git  && cd electrs  && git checkout abfbce73eb0504630a09f1e6599114ef4fa25bda  && cp contrib/popular-scripts.txt /srv/explorer  && cargo install --root /srv/explorer/electrs_bitcoin --locked --path . --features electrum-discovery  && cargo install --root /srv/explorer/electrs_liquid --locked --path . --features electrum-discovery,liquid  && cd ..  && rm -fr /root/.cargo electrs  && strip /srv/explorer/electrs_*/bin/electrs]: exit code: 101
shesek commented 3 years ago

That seems odd, it doesn't really say what the error was (the bincode deprecation are just warnings).

I tried building the image locally with a fresh checkout using the same electrs commit (abfbce7) and it completed successfully.

Are you still able to reproduce this? Which Docker version and host OS are you using?

Trudko commented 3 years ago

@shesek I've tried it again today, and It worked. Not sure what has changed. I've updated code. Previously I had to remove electrs_liquid from build for it to pass.

I am closing the issue, thanks for your time.