Comments (2)
try: cargo run --example hello-world —features=“tokio”
from ntex.
@fafhrd91 can you check this pls:
trying to run the ntex tls https. is there a http2 example too?
(base) root@ubuntu:/usr/local/src/ntex/ntex-tls# RUST_BACKTRACE=full cargo run --example webserver
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
Running `/usr/local/src/ntex/target/debug/examples/webserver`
Started openssl web server: 127.0.0.1:8443
thread 'main' panicked at ntex-tls/examples/webserver.rs:20:10:
called `Result::unwrap()` on an `Err` value: ErrorStack([Error { code: 2147483650, library: "system library", function: "file_ctrl", file: "../crypto/bio/bss_file.c", line: 297, data: "calling fopen(../tests/key.pem, r)" }, Error { code: 268959746, library: "BIO routines", function: "file_ctrl", reason: "system lib", file: "../crypto/bio/bss_file.c", line: 300 }, Error { code: 168296450, library: "SSL routines", function: "SSL_CTX_use_PrivateKey_file", reason: "system lib", file: "../ssl/ssl_rsa.c", line: 367 }])
stack backtrace:
0: 0x559e2a96c926 - std::backtrace_rs::backtrace::libunwind::trace::hbee8a7973eeb6c93
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5
1: 0x559e2a96c926 - std::backtrace_rs::backtrace::trace_unsynchronized::hc8ac75eea3aa6899
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x559e2a96c926 - std::sys_common::backtrace::_print_fmt::hc7f3e3b5298b1083
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:68:5
3: 0x559e2a96c926 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hbb235daedd7c6190
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:44:22
4: 0x559e2a991310 - core::fmt::rt::Argument::fmt::h76c38a80d925a410
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/fmt/rt.rs:142:9
5: 0x559e2a991310 - core::fmt::write::h3ed6aeaa977c8e45
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/fmt/mod.rs:1120:17
6: 0x559e2a96989f - std::io::Write::write_fmt::h78b18af5775fedb5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/io/mod.rs:1810:15
7: 0x559e2a96c704 - std::sys_common::backtrace::_print::h5d645a07e0fcfdbb
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:47:5
8: 0x559e2a96c704 - std::sys_common::backtrace::print::h85035a511aafe7a8
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:34:9
9: 0x559e2a96df87 - std::panicking::default_hook::{{closure}}::hcce8cea212785a25
10: 0x559e2a96dce9 - std::panicking::default_hook::hf5fcb0f213fe709a
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:292:9
11: 0x559e2a96e418 - std::panicking::rust_panic_with_hook::h095fccf1dc9379ee
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:779:13
12: 0x559e2a96e2f2 - std::panicking::begin_panic_handler::{{closure}}::h032ba12139b353db
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:657:13
13: 0x559e2a96ce26 - std::sys_common::backtrace::__rust_end_short_backtrace::h9259bc2ff8fd0f76
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:171:18
14: 0x559e2a96e050 - rust_begin_unwind
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:645:5
15: 0x559e2a628825 - core::panicking::panic_fmt::h784f20a50eaab275
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/panicking.rs:72:14
16: 0x559e2a628e23 - core::result::unwrap_failed::h03d8a5018196e1cd
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1649:5
17: 0x559e2a7ffddb - core::result::Result<T,E>::unwrap::hca08f3f6e6e2b2e2
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/result.rs:1073:23
18: 0x559e2a62b78b - webserver::main::{{closure}}::hcea3ca1521717616
at /usr/local/src/ntex/ntex-tls/examples/webserver.rs:18:5
19: 0x559e2a65baf7 - ntex_rt::builder::block_on::{{closure}}::hd6585e52a157a4f0
at /usr/local/src/ntex/ntex-rt/src/builder.rs:167:25
20: 0x559e2a65e7eb - <core::pin::Pin<P> as core::future::future::Future>::poll::h4694aca0e15c9ed5
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/future/future.rs:124:9
21: 0x559e2a633c8e - <tokio::task::local::RunUntil<T> as core::future::future::Future>::poll::{{closure}}::h7ba88541d551f6e5
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/local.rs:978:42
22: 0x559e2a6338d0 - tokio::task::local::LocalSet::with::{{closure}}::hece5201cd85ca0e3
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/local.rs:730:13
23: 0x559e2a6675a4 - std::thread::local::LocalKey<T>::try_with::h811a37f202d15978
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:270:16
24: 0x559e2a6662ca - std::thread::local::LocalKey<T>::with::h92848e282fba6f5a
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:246:9
25: 0x559e2a633836 - tokio::task::local::LocalSet::with::h9f382d96ffee8843
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/local.rs:728:9
26: 0x559e2a633c05 - <tokio::task::local::RunUntil<T> as core::future::future::Future>::poll::h63d9a20fd047dad1
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/local.rs:968:9
27: 0x559e2a633b25 - tokio::task::local::LocalSet::run_until::{{closure}}::h26344f3e1238ba1d
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/local.rs:635:19
28: 0x559e2a65e83b - <core::pin::Pin<P> as core::future::future::Future>::poll::h7762258be7e770ac
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/future/future.rs:124:9
29: 0x559e2a65e734 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::h9b31ac0c8202a8a7
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/current_thread/mod.rs:659:57
30: 0x559e2a65e65a - tokio::runtime::coop::with_budget::h8b3bc7e670dc6303
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/coop.rs:107:5
31: 0x559e2a65e65a - tokio::runtime::coop::budget::had4f1f0536aac2fc
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/coop.rs:73:5
32: 0x559e2a65e65a - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h1a002f1bb6921dac
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/current_thread/mod.rs:659:25
33: 0x559e2a65d30c - tokio::runtime::scheduler::current_thread::Context::enter::h78b8a919f261d690
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/current_thread/mod.rs:404:19
34: 0x559e2a65de6b - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::hf53131aa09daae0c
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/current_thread/mod.rs:658:36
35: 0x559e2a65db7b - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::h05025b7df997d988
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/current_thread/mod.rs:737:68
36: 0x559e2a65a57b - tokio::runtime::context::scoped::Scoped<T>::set::h92f8181199323f4c
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/context/scoped.rs:40:9
37: 0x559e2a677c69 - tokio::runtime::context::set_scheduler::{{closure}}::hed20a5d03c6a1550
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/context.rs:176:26
38: 0x559e2a6669c6 - std::thread::local::LocalKey<T>::try_with::h2c0619a9b38b1b82
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:270:16
39: 0x559e2a66609a - std::thread::local::LocalKey<T>::with::h26a0f056bf99e86d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/thread/local.rs:246:9
40: 0x559e2a677c1d - tokio::runtime::context::set_scheduler::h0accc0a456789baa
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/context.rs:176:9
41: 0x559e2a65d910 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::h3043f1ee342c9c1a
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/current_thread/mod.rs:737:27
42: 0x559e2a65dbad - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h9515a0dba0fec069
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/current_thread/mod.rs:646:19
43: 0x559e2a65cae3 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::hc28214c381047417
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/current_thread/mod.rs:175:28
44: 0x559e2a66a3db - tokio::runtime::context::runtime::enter_runtime::h7384dcaa02a2b799
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/context/runtime.rs:65:16
45: 0x559e2a65c9de - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h227ce6ff89a0653b
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/current_thread/mod.rs:167:9
46: 0x559e2a677b8b - tokio::runtime::runtime::Runtime::block_on::ha9c77e00304e7050
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/runtime.rs:348:47
47: 0x559e2a633971 - tokio::task::local::LocalSet::block_on::hc30d2d78778e0ca8
at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/local.rs:592:9
48: 0x559e2a6762f8 - ntex_rt::tokio::block_on::h90f1297202b6381e
at /usr/local/src/ntex/ntex-rt/src/lib.rs:176:9
49: 0x559e2a65b424 - ntex_rt::builder::block_on::hbaccf4f5d358ec9c
at /usr/local/src/ntex/ntex-rt/src/builder.rs:161:5
50: 0x559e2a65aeef - ntex_rt::builder::SystemRunner::block_on::h05ba7ca1ec7f6588
at /usr/local/src/ntex/ntex-rt/src/builder.rs:132:15
51: 0x559e2a679848 - webserver::main::hfac60915e79a81f4
at /usr/local/src/ntex/ntex-tls/examples/webserver.rs:9:1
52: 0x559e2a64e91b - core::ops::function::FnOnce::call_once::h450a13d7b25bba05
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:250:5
53: 0x559e2a6697ee - std::sys_common::backtrace::__rust_begin_short_backtrace::h96a0addf27ed6c4e
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/sys_common/backtrace.rs:155:18
54: 0x559e2a64b9c1 - std::rt::lang_start::{{closure}}::h670685fd51de0fce
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:166:18
55: 0x559e2a964391 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h37600b1e5eea4ecd
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/core/src/ops/function.rs:284:13
56: 0x559e2a964391 - std::panicking::try::do_call::hb4bda49fa13a0c2b
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
57: 0x559e2a964391 - std::panicking::try::h8bbf75149211aaaa
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
58: 0x559e2a964391 - std::panic::catch_unwind::h8c78ec68ebea34cb
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
59: 0x559e2a964391 - std::rt::lang_start_internal::{{closure}}::hffdf44a19fd9e220
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:148:48
60: 0x559e2a964391 - std::panicking::try::do_call::hcb3194972c74716d
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:552:40
61: 0x559e2a964391 - std::panicking::try::hcdc6892c5f0dba4c
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panicking.rs:516:19
62: 0x559e2a964391 - std::panic::catch_unwind::h4910beb4573f4776
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/panic.rs:142:14
63: 0x559e2a964391 - std::rt::lang_start_internal::h6939038e2873596b
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:148:20
64: 0x559e2a64b99a - std::rt::lang_start::hacb4199419289abf
at /rustc/07dca489ac2d933c78d3c5158e3f43beefeb02ce/library/std/src/rt.rs:165:17
65: 0x559e2a67986e - main
66: 0x7f67d1629d90 - __libc_start_call_main
at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
67: 0x7f67d1629e40 - __libc_start_main_impl
at ./csu/../csu/libc-start.c:392:3
68: 0x559e2a629125 - _start
69: 0x0 - <unknown>
Panic in Arbiter thread.
from ntex.
Related Issues (20)
- [Bug] Unable to set length manually HOT 4
- Moving websocket to a feature HOT 3
- [ntex-server](Bug) Duplicates ctrlc_handler registration under win causing process crash HOT 2
- Program panicks upon ctrl+c HOT 3
- Wrong feature gate in ntex/ntex-net/src/compat.rs HOT 1
- Ntex runtime panic HOT 20
- How to convert web::types::Payload to AsyncRead HOT 1
- Is there a feature comparison with other frameworks ? HOT 1
- The `insert` method for `Extensions` does not return existed value HOT 1
- Compilation failed for windows HOT 2
- http client closes h2 connection HOT 1
- Can't access state in middleware HOT 6
- Ntex is a masterpiece ! SALUTE !!
- Causing the socket to not close HOT 5
- Help: How to return errors during serde serialization and deserialization HOT 3
- I would like to ask how I can ensure that when an error occurs in the middleware's call(), the return data type is set to JSON instead of text. HOT 1
- When it is a POST request, the socket cannot be closed HOT 1
- I cannot use the official Timeout middleware. HOT 6
- Help: How to clone payload in this middleware code from ntex-rs examples HOT 1
- Added support for HTTP3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntex.