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

docker-compose up fails #11

Closed
matthiasgeihs opened this issue Nov 1, 2021 · 2 comments · Fixed by #13
Closed

docker-compose up fails #11

matthiasgeihs opened this issue Nov 1, 2021 · 2 comments · Fixed by #13
Assignees

Comments

@matthiasgeihs
Copy link
Contributor

docker-compose up fails with:

Starting backend  ... done
Starting frontend ... done
Attaching to frontend, backend
backend     | 2021-11-01 12:08:22 Running in --dev mode, RPC CORS has been disabled.    
backend     | 2021-11-01 12:08:22 Substrate Node    
backend     | 2021-11-01 12:08:22 ✌️  version 3.0.0-monthly-2021-09+1-unknown-x86_64-linux-gnu    
backend     | 2021-11-01 12:08:22 ❤️  by Substrate DevHub <https://github.com/substrate-developer-hub>, 2017-2021    
backend     | 2021-11-01 12:08:22 📋 Chain specification: Development    
backend     | 2021-11-01 12:08:22 🏷 Node name: attractive-pump-2920    
backend     | 2021-11-01 12:08:22 👤 Role: AUTHORITY    
backend     | 2021-11-01 12:08:22 💾 Database: RocksDb at /tmp/substraterUPhnQ/chains/dev/db    
backend     | 2021-11-01 12:08:22 ⛓  Native runtime: node-template-100 (node-template-1.tx1.au1)    
backend     | 2021-11-01 12:08:23 🔨 Initializing Genesis block/state (state: 0xdc8d…3e2d, header-hash: 0xecc0…b3f3)    
backend     | 2021-11-01 12:08:23 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.    
frontend    | ℹ 「wds」: Project is running at http://172.18.0.2/
frontend    | ℹ 「wds」: webpack output is served from /substrate-front-end-template
frontend    | ℹ 「wds」: Content not from webpack is served from /src/public
frontend    | ℹ 「wds」: 404s will fallback to /substrate-front-end-template/
frontend    | Starting the development server...
frontend    | 
frontend    | Error: error:0308010C:digital envelope routines::unsupported
frontend    |     at new Hash (node:internal/crypto/hash:67:19)
frontend    |     at Object.createHash (node:crypto:130:10)
frontend    |     at module.exports (/src/node_modules/webpack/lib/util/createHash.js:135:53)
frontend    |     at NormalModule._initBuildHash (/src/node_modules/webpack/lib/NormalModule.js:417:16)
frontend    |     at handleParseError (/src/node_modules/webpack/lib/NormalModule.js:471:10)
frontend    |     at /src/node_modules/webpack/lib/NormalModule.js:503:5
frontend    |     at /src/node_modules/webpack/lib/NormalModule.js:358:12
frontend    |     at /src/node_modules/loader-runner/lib/LoaderRunner.js:373:3
frontend    |     at iterateNormalLoaders (/src/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
frontend    |     at iterateNormalLoaders (/src/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
frontend    | /src/node_modules/react-scripts/scripts/start.js:19
frontend    |   throw err;
frontend    |   ^
frontend    | 
frontend    | Error: error:0308010C:digital envelope routines::unsupported
frontend    |     at new Hash (node:internal/crypto/hash:67:19)
frontend    |     at Object.createHash (node:crypto:130:10)
frontend    |     at module.exports (/src/node_modules/webpack/lib/util/createHash.js:135:53)
frontend    |     at NormalModule._initBuildHash (/src/node_modules/webpack/lib/NormalModule.js:417:16)
frontend    |     at /src/node_modules/webpack/lib/NormalModule.js:452:10
frontend    |     at /src/node_modules/webpack/lib/NormalModule.js:323:13
frontend    |     at /src/node_modules/loader-runner/lib/LoaderRunner.js:367:11
frontend    |     at /src/node_modules/loader-runner/lib/LoaderRunner.js:233:18
frontend    |     at context.callback (/src/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
frontend    |     at /src/node_modules/react-scripts/node_modules/babel-loader/lib/index.js:59:103 {
frontend    |   opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
frontend    |   library: 'digital envelope routines',
frontend    |   reason: 'unsupported',
frontend    |   code: 'ERR_OSSL_EVP_UNSUPPORTED'
frontend    | }
frontend    | 
frontend    | Node.js v17.0.1
frontend exited with code 1
backend     | 2021-11-01 12:08:26 ⏱  Loaded block-time = 1s from block 0xecc03babd4fba26bc031b3b1ed73d926764d21982daf17154fd8a8ce16e7b3f3    
backend     | 2021-11-01 12:08:26 Using default protocol ID "sup" because none is configured in the chain specs    
backend     | 2021-11-01 12:08:26 🏷 Local node identity is: 12D3KooWMoA9eNqtjiJZemJfr99jhtSqLuxH4G9f9ZF1EKoKACxb    
backend     | 
backend     | ====================
backend     | 
backend     | Version: 3.0.0-monthly-2021-09+1-unknown-x86_64-linux-gnu
backend     | 
backend     |    0: sp_panic_handler::panic_hook
backend     |              at /usr/local/cargo/git/checkouts/substrate-7e08433d4c370a21/20a9bbb/primitives/panic-handler/src/lib.rs:145:18
backend     |    1: sp_panic_handler::set::{{closure}}
backend     |              at /usr/local/cargo/git/checkouts/substrate-7e08433d4c370a21/20a9bbb/primitives/panic-handler/src/lib.rs:61:12
backend     |    2: std::panicking::rust_panic_with_hook
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:626:17
backend     |    3: std::panicking::begin_panic::{{closure}}
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:542:9
backend     |    4: std::sys_common::backtrace::__rust_end_short_backtrace
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:141:18
backend     |    5: std::panicking::begin_panic
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:541:12
backend     |    6: hyper_rustls::connector::HttpsConnector<hyper::client::connect::http::HttpConnector>::with_native_roots
backend     |              at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/hyper-rustls-0.22.1/src/connector.rs:45:13
backend     |    7: sc_offchain::api::http::SharedClient::new
backend     |              at /usr/local/cargo/git/checkouts/substrate-7e08433d4c370a21/20a9bbb/client/offchain/src/api/http.rs:54:46
backend     |    8: sc_offchain::OffchainWorkers<Client,Block>::new
backend     |              at /usr/local/cargo/git/checkouts/substrate-7e08433d4c370a21/20a9bbb/client/offchain/src/lib.rs:95:23
backend     |    9: sc_service::builder::build_offchain_workers
backend     |              at /usr/local/cargo/git/checkouts/substrate-7e08433d4c370a21/20a9bbb/client/service/src/builder.rs:507:39
backend     |   10: node_template::service::new_full
backend     |              at /var/www/node-template/node/src/service.rs:197:3
backend     |   11: node_template::command::run::{{closure}}::{{closure}}
backend     |              at /var/www/node-template/node/src/command.rs:133:11
backend     |   12: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/future/mod.rs:80:19
backend     |   13: tokio::park::thread::CachedParkThread::block_on::{{closure}}
backend     |              at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.11.0/src/park/thread.rs:263:54
backend     |   14: tokio::coop::with_budget::{{closure}}
backend     |              at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.11.0/src/coop.rs:106:9
backend     |   15: std::thread::local::LocalKey<T>::try_with
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/thread/local.rs:399:16
backend     |   16: std::thread::local::LocalKey<T>::with
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/thread/local.rs:375:9
backend     |   17: tokio::coop::with_budget
backend     |              at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.11.0/src/coop.rs:99:5
backend     |       tokio::coop::budget
backend     |              at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.11.0/src/coop.rs:76:5
backend     |       tokio::park::thread::CachedParkThread::block_on
backend     |              at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.11.0/src/park/thread.rs:263:31
backend     |   18: tokio::runtime::enter::Enter::block_on
backend     |              at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.11.0/src/runtime/enter.rs:151:13
backend     |   19: tokio::runtime::thread_pool::ThreadPool::block_on
backend     |              at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.11.0/src/runtime/thread_pool/mod.rs:72:9
backend     |   20: tokio::runtime::Runtime::block_on
backend     |              at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.11.0/src/runtime/mod.rs:459:43
backend     |   21: sc_cli::runner::Runner<C>::run_node_until_exit
backend     |              at /usr/local/cargo/git/checkouts/substrate-7e08433d4c370a21/20a9bbb/client/cli/src/runner.rs:162:26
backend     |   22: node_template::command::run
backend     |              at /var/www/node-template/node/src/command.rs:130:4
backend     |   23: node_template::main
backend     |              at /var/www/node-template/node/src/main.rs:12:2
backend     |   24: core::ops::function::FnOnce::call_once
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/ops/function.rs:227:5
backend     |   25: std::sys_common::backtrace::__rust_begin_short_backtrace
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/sys_common/backtrace.rs:125:18
backend     |   26: std::rt::lang_start::{{closure}}
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/rt.rs:63:18
backend     |   27: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/core/src/ops/function.rs:259:13
backend     |       std::panicking::try::do_call
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:401:40
backend     |       std::panicking::try
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:365:19
backend     |       std::panic::catch_unwind
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panic.rs:434:14
backend     |       std::rt::lang_start_internal::{{closure}}
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/rt.rs:45:48
backend     |       std::panicking::try::do_call
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:401:40
backend     |       std::panicking::try
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panicking.rs:365:19
backend     |       std::panic::catch_unwind
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/panic.rs:434:14
backend     |       std::rt::lang_start_internal
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/rt.rs:45:20
backend     |   28: std::rt::lang_start
backend     |              at /rustc/c8dfcfe046a7680554bf4eb612bad840e7631c4b/library/std/src/rt.rs:62:5
backend     |   29: main
backend     |   30: __libc_start_main
backend     |   31: _start
backend     | 
backend     | 
backend     | Thread 'main' panicked at 'no CA certificates found', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/hyper-rustls-0.22.1/src/connector.rs:45
backend     | 
backend     | This is a bug. Please report it at:
backend     | 
backend     |   support.anonymous.an
backend     | 
backend exited with code 1
@ggwpez
Copy link
Contributor

ggwpez commented Nov 1, 2021

Looks like it is paritytech/substrate#9984, #5 should fix this.
@matthiasgeihs

@matthiasgeihs
Copy link
Contributor Author

OK, so that means we need to update the Docker file? Could you do that?

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

Successfully merging a pull request may close this issue.

2 participants