ddimaria / rust-actix-example

Example Actix 2.x REST application implementing many features
MIT License
292 stars 56 forks source link

Error happened when running the demo #3

Open flyq opened 4 years ago

flyq commented 4 years ago

ENV

Ubuntu 18.04 in VMware

$ rustc --version
rustc 1.42.0 (b8cedc004 2020-03-09)

steps

follow the README.md:

  1. install postgres
  2. install diesel_cli(to make it succeed, I install mysql, libsqlite3-dev and so on)
  3. modify the Cargo.toml:
    [features]
    cockroach = []
    mysql = []
    postgres = []
    sqlite = []
    default = ["postgres"]
  4. modify the .env I JUST modify the DATABASE_URL to postgres link.
  5. diesel migration run it succeeds
  6. run:
    cargo run

    Problem

    What should I do to just use postgres? Because I think problem is caused by the program trying to connect other database like mysql, redis and so on: log:

    $ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
     Running `target/debug/rust_actix_example`
    [2020-04-08T02:46:17Z INFO  actix_server::builder] Starting 8 workers
    [2020-04-08T02:46:17Z INFO  actix_server::builder] Starting "actix-web-service-127.0.0.1:3000" service on 127.0.0.1:3000
    thread 'actix-rt:worker:1' panicked at 'Failed to create connection pool: Error(Some("MySQL connection URLs must be in the form `mysql://[[user]:[password]@]host[:port][/database]`"))', src/database.rs:75:16
    stack backtrace:
    0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
    1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
    2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:77
    3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
    4: core::fmt::write
             at src/libcore/fmt/mod.rs:1052
    5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1426
    6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:62
    7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
    8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:204
    9: std::panicking::default_hook
             at src/libstd/panicking.rs:224
    10: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:472
    11: rust_begin_unwind
             at src/libstd/panicking.rs:380
    12: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
    13: core::option::expect_none_failed
             at src/libcore/option.rs:1199
    14: core::result::Result<T,E>::expect
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/result.rs:991
    15: rust_actix_example::database::add_pool
             at src/database.rs:75
    16: core::ops::function::FnOnce::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/ops/function.rs:232
    17: actix_web::app::App<T,B>::configure
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/app.rs:183
    18: rust_actix_example::server::server::{{closure}}::{{closure}}
             at src/server.rs:24
    19: actix_web::server::HttpServer<F,I,S,B>::listen::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:261
    20: <F as actix_server::service::ServiceFactory<I>>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:183
    21: <actix_server::service::StreamNewService<F,Io> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:148
    22: <alloc::boxed::Box<dyn actix_server::service::InternalServiceFactory> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:170
    23: actix_server::worker::Worker::start::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/worker.rs:189
    24: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    25: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/future/future.rs:119
    26: <alloc::boxed::Box<F> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/boxed.rs:1131
    27: tokio::task::core::Core<T>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/core.rs:128
    28: tokio::task::harness::Harness<T,S>::poll::{{closure}}::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:120
    29: core::ops::function::FnOnce::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/ops/function.rs:232
    30: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:318
    31: std::panicking::try::do_call
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:305
    32: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:86
    33: std::panicking::try
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:281
    34: std::panic::catch_unwind
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:394
    35: tokio::task::harness::Harness<T,S>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:101
    36: tokio::loom::std::causal_cell::CausalCell<T>::with_mut
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/loom/std/causal_cell.rs:41
    37: tokio::task::harness::Harness<T,S>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:100
    38: tokio::task::raw::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:162
    39: tokio::task::raw::RawTask::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:113
    40: tokio::task::Task<S>::run
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/mod.rs:381
    41: tokio::task::local::Scheduler::tick
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:513
    42: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:407
    43: tokio::task::local::Scheduler::with::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:478
    44: std::thread::local::LocalKey<T>::try_with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:262
    45: std::thread::local::LocalKey<T>::with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:239
    46: tokio::task::local::Scheduler::with
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:474
    47: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:402
    48: std::future::poll_with_tls_context
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:98
    49: tokio::task::local::LocalSet::run_until::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:358
    50: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    51: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/basic_scheduler.rs:138
    52: tokio::runtime::Runtime::block_on::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:411
    53: tokio::runtime::context::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/context.rs:72
    54: tokio::runtime::handle::Handle::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/handle.rs:34
    55: tokio::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:408
    56: tokio::task::local::LocalSet::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:321
    57: actix_rt::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/runtime.rs:89
    58: actix_rt::arbiter::Arbiter::new::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/arbiter.rs:125
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
    thread 'actix-rt:worker:0' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250:25
    stack backtrace:
    0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
    1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
    2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:77
    3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
    4: core::fmt::write
             at src/libcore/fmt/mod.rs:1052
    5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1426
    6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:62
    7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
    8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:204
    9: std::panicking::default_hook
             at src/libstd/panicking.rs:224
    10: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:472
    11: rust_begin_unwind
             at src/libstd/panicking.rs:380
    12: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
    13: core::option::expect_none_failed
             at src/libcore/option.rs:1199
    14: core::result::Result<T,E>::unwrap
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/result.rs:963
    15: actix_web::server::HttpServer<F,I,S,B>::listen::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250
    16: <F as actix_server::service::ServiceFactory<I>>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:183
    17: <actix_server::service::StreamNewService<F,Io> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:148
    18: <alloc::boxed::Box<dyn actix_server::service::InternalServiceFactory> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:170
    19: actix_server::worker::Worker::start::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/worker.rs:189
    20: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    21: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/future/future.rs:119
    22: <alloc::boxed::Box<F> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/boxed.rs:1131
    23: tokio::task::core::Core<T>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/core.rs:128
    24: tokio::task::harness::Harness<T,S>::poll::{{closure}}::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:120
    25: core::ops::function::FnOnce::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/ops/function.rs:232
    26: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:318
    27: std::panicking::try::do_call
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:305
    28: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:86
    29: std::panicking::try
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:281
    30: std::panic::catch_unwind
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:394
    31: tokio::task::harness::Harness<T,S>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:101
    32: tokio::loom::std::causal_cell::CausalCell<T>::with_mut
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/loom/std/causal_cell.rs:41
    33: tokio::task::harness::Harness<T,S>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:100
    34: tokio::task::raw::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:162
    35: tokio::task::raw::RawTask::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:113
    36: tokio::task::Task<S>::run
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/mod.rs:381
    37: tokio::task::local::Scheduler::tick
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:513
    38: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:407
    39: tokio::task::local::Scheduler::with::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:478
    40: std::thread::local::LocalKey<T>::try_with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:262
    41: std::thread::local::LocalKey<T>::with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:239
    42: tokio::task::local::Scheduler::with
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:474
    43: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:402
    44: std::future::poll_with_tls_context
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:98
    45: tokio::task::local::LocalSet::run_until::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:358
    46: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    47: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/basic_scheduler.rs:138
    48: tokio::runtime::Runtime::block_on::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:411
    49: tokio::runtime::context::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/context.rs:72
    50: tokio::runtime::handle::Handle::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/handle.rs:34
    51: tokio::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:408
    52: tokio::task::local::LocalSet::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:321
    53: actix_rt::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/runtime.rs:89
    54: actix_rt::arbiter::Arbiter::new::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/arbiter.rs:125
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
    thread 'actix-rt:worker:2' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250:25
    stack backtrace:
    0: backtrace::backtrace::libunwind::[2020-04-08T02:46:48Z ERROR actix_redis::redis] Can not connect to redis server: Connection refused (os error 111)
    trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
    1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
    2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:77
    3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
    4: core::fmt::write
             at src/libcore/fmt/mod.rs:1052
    5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1426
    6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:62
    7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
    8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:204
    9: std::panicking::default_hook
             at src/libstd/panicking.rs:224
    10: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:472
    11: rust_begin_unwind
             at src/libstd/panicking.rs:380
    12: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
    13: core::option::expect_none_failed
             at src/libcore/option.rs:1199
    14: core::result::Result<T,E>::unwrap
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/result.rs:963
    15: actix_web::server::HttpServer<F,I,S,B>::listen::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250
    16: <F as actix_server::service::ServiceFactory<I>>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:183
    17: <actix_server::service::StreamNewService<F,Io> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:148
    18: <alloc::boxed::Box<dyn actix_server::service::InternalServiceFactory> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:170
    19: actix_server::worker::Worker::start::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/worker.rs:189
    20: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    21: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/future/future.rs:119
    22: <alloc::boxed::Box<F> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/boxed.rs:1131
    23: tokio::task::core::Core<T>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/core.rs:128
    24: tokio::task::harness::Harness<T,S>::poll::{{closure}}::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:120
    25: core::ops::function::FnOnce::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/ops/function.rs:232
    26: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:318
    27: std::panicking::try::do_call
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:305
    28: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:86
    29: std::panicking::try
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:281
    30: std::panic::catch_unwind
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:394
    31: tokio::task::harness::Harness<T,S>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:101
    32: tokio::loom::std::causal_cell::CausalCell<T>::with_mut
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/loom/std/causal_cell.rs:41
    33: tokio::task::harness::Harness<T,S>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:100
    34: tokio::task::raw::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:162
    35: tokio::task::raw::RawTask::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:113
    36: tokio::task::Task<S>::run
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/mod.rs:381
    37: tokio::task::local::Scheduler::tick
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:513
    38: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:407
    39: tokio::task::local::Scheduler::with::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:478
    40: std::thread::local::LocalKey<T>::try_with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:262
    41: std::thread::local::LocalKey<T>::with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:239
    42: tokio::task::local::Scheduler::with
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:474
    43: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:402
    44: std::future::poll_with_tls_context
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:98
    45: tokio::task::local::LocalSet::run_until::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:358
    46: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    47: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/basic_scheduler.rs:138
    48: tokio::runtime::Runtime::block_on::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:411
    49: tokio::runtime::context::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/context.rs:72
    50: tokio::runtime::handle::Handle::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/handle.rs:34
    51: tokio::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:408
    52: tokio::task::local::LocalSet::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:321
    53: actix_rt::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/runtime.rs:89
    54: actix_rt::arbiter::Arbiter::new::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/arbiter.rs:125
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
    thread 'actix-rt:worker:3' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250:25
    stack backtrace:
    0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
    1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
    2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:77
    3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
    4: core::fmt::write
             at src/libcore/fmt/mod.rs:1052
    5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1426
    6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:62
    7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
    8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:204
    9: std::panicking::default_hook
             at src/libstd/panicking.rs:224
    10: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:472
    11: rust_begin_unwind
             at src/libstd/panicking.rs:380
    12: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
    13: core::option::expect_none_failed
             at src/libcore/option.rs:1199
    14: core::result::Result<T,E>::unwrap
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/result.rs:963
    15: actix_web::server::HttpServer<F,I,S,B>::listen::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250
    16: <F as actix_server::service::ServiceFactory<I>>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:183
    17: <actix_server::service::StreamNewService<F,Io> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:148
    18: <alloc::boxed::Box<dyn actix_server::service::InternalServiceFactory> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:170
    19: actix_server::worker::Worker::start::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/worker.rs:189
    20: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    21: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/future/future.rs:119
    22: <alloc::boxed::Box<F> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/boxed.rs:1131
    23: tokio::task::core::Core<T>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/core.rs:128
    24: tokio::task::harness::Harness<T,S>::poll::{{closure}}::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:120
    25: core::ops::function::FnOnce::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/ops/function.rs:232
    26: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:318
    27: std::panicking::try::do_call
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:305
    28: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:86
    29: std::panicking::try
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:281
    30: std::panic::catch_unwind
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:394
    31: tokio::task::harness::Harness<T,S>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:101
    32: tokio::loom::std::causal_cell::CausalCell<T>::with_mut
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/loom/std/causal_cell.rs:41
    33: tokio::task::harness::Harness<T,S>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:100
    34: tokio::task::raw::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:162
    35: tokio::task::raw::RawTask::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:113
    36: tokio::task::Task<S>::run
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/mod.rs:381
    37: tokio::task::local::Scheduler::tick
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:513
    38: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:407
    39: tokio::task::local::Scheduler::with::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:478
    40: std::thread::local::LocalKey<T>::try_with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:262
    41: std::thread::local::LocalKey<T>::with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:239
    42: tokio::task::local::Scheduler::with
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:474
    43: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:402
    44: std::future::poll_with_tls_context
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:98
    45: tokio::task::local::LocalSet::run_until::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:358
    46: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    47: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/basic_scheduler.rs:138
    48: tokio::runtime::Runtime::block_on::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:411
    49: tokio::runtime::context::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/context.rs:72
    50: tokio::runtime::handle::Handle::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/handle.rs:34
    51: tokio::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:408
    52: tokio::task::local::LocalSet::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:321
    53: actix_rt::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/runtime.rs:89
    54: actix_rt::arbiter::Arbiter::new::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/arbiter.rs:125
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
    thread 'actix-rt:worker:4' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250:25
    stack backtrace:
    0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
    1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
    2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:77
    3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
    4: core::fmt::write
             at src/libcore/fmt/mod.rs:1052
    5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1426
    6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:62
    7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
    8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:204
    9: std::panicking::default_hook
             at src/libstd/panicking.rs:224
    10: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:472
    11: rust_begin_unwind
             at src/libstd/panicking.rs:380
    12: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
    13: core::option::expect_none_failed
             at src/libcore/option.rs:1199
    14: core::result::Result<T,E>::unwrap
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/result.rs:963
    15: actix_web::server::HttpServer<F,I,S,B>::listen::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250
    16: <F as actix_server::service::ServiceFactory<I>>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:183
    17: <actix_server::service::StreamNewService<F,Io> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:148
    18: <alloc::boxed::Box<dyn actix_server::service::InternalServiceFactory> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:170
    19: actix_server::worker::Worker::start::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/worker.rs:189
    20: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    21: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/future/future.rs:119
    22: <alloc::boxed::Box<F> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/boxed.rs:1131
    23: tokio::task::core::Core<T>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/core.rs:128
    24: tokio::task::harness::Harness<T,S>::poll::{{closure}}::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:120
    25: core::ops::function::FnOnce::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/ops/function.rs:232
    26: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:318
    27: std::panicking::try::do_call
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:305
    28: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:86
    29: std::panicking::try
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:281
    30: std::panic::catch_unwind
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:394
    31: tokio::task::harness::Harness<T,S>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:101
    32: tokio::loom::std::causal_cell::CausalCell<T>::with_mut
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/loom/std/causal_cell.rs:41
    33: tokio::task::harness::Harness<T,S>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:100
    34: tokio::task::raw::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:162
    35: tokio::task::raw::RawTask::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:113
    36: tokio::task::Task<S>::run
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/mod.rs:381
    37: tokio::task::local::Scheduler::tick
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:513
    38: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:407
    39: tokio::task::local::Scheduler::with::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:478
    40: std::thread::local::LocalKey<T>::try_with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:262
    41: std::thread::local::LocalKey<T>::with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:239
    42: tokio::task::local::Scheduler::with
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:474
    43: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:402
    44: std::future::poll_with_tls_context
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:98
    45: tokio::task::local::LocalSet::run_until::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:358
    46: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    47: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/basic_scheduler.rs:138
    48: tokio::runtime::Runtime::block_on::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:411
    49: tokio::runtime::context::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/context.rs:72
    50: tokio::runtime::handle::Handle::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/handle.rs:34
    51: tokio::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:408
    52: tokio::task::local::LocalSet::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:321
    53: actix_rt::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/runtime.rs:89
    54: actix_rt::arbiter::Arbiter::new::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/arbiter.rs:125
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
    thread 'actix-rt:worker:5' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250:25
    stack backtrace:
    0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
    1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
    2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:77
    3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
    4: core::fmt::write
             at src/libcore/fmt/mod.rs:1052
    5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1426
    6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:62
    7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
    8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:204
    9: std::panicking::default_hook
             at src/libstd/panicking.rs:224
    10: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:472
    11: rust_begin_unwind
             at src/libstd/panicking.rs:380
    12: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
    13: core::option::expect_none_failed
             at src/libcore/option.rs:1199
    14: core::result::Result<T,E>::unwrap
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/result.rs:963
    15: actix_web::server::HttpServer<F,I,S,B>::listen::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250
    16: <F as actix_server::service::ServiceFactory<I>>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:183
    17: <actix_server::service::StreamNewService<F,Io> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:148
    18: <alloc::boxed::Box<dyn actix_server::service::InternalServiceFactory> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:170
    19: actix_server::worker::Worker::start::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/worker.rs:189
    20: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    21: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/future/future.rs:119
    22: <alloc::boxed::Box<F> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/boxed.rs:1131
    23: tokio::task::core::Core<T>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/core.rs:128
    24: tokio::task::harness::Harness<T,S>::poll::{{closure}}::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:120
    25: core::ops::function::FnOnce::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/ops/function.rs:232
    26: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:318
    27: std::panicking::try::do_call
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:305
    28: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:86
    29: std::panicking::try
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:281
    30: std::panic::catch_unwind
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:394
    31: tokio::task::harness::Harness<T,S>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:101
    32: tokio::loom::std::causal_cell::CausalCell<T>::with_mut
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/loom/std/causal_cell.rs:41
    33: tokio::task::harness::Harness<T,S>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:100
    34: tokio::task::raw::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:162
    35: tokio::task::raw::RawTask::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:113
    36: tokio::task::Task<S>::run
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/mod.rs:381
    37: tokio::task::local::Scheduler::tick
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:513
    38: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:407
    39: tokio::task::local::Scheduler::with::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:478
    40: std::thread::local::LocalKey<T>::try_with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:262
    41: std::thread::local::LocalKey<T>::with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:239
    42: tokio::task::local::Scheduler::with
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:474
    43: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:402
    44: std::future::poll_with_tls_context
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:98
    45: tokio::task::local::LocalSet::run_until::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:358
    46: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    47: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/basic_scheduler.rs:138
    48: tokio::runtime::Runtime::block_on::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:411
    49: tokio::runtime::context::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/context.rs:72
    50: tokio::runtime::handle::Handle::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/handle.rs:34
    51: tokio::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:408
    52: tokio::task::local::LocalSet::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:321
    53: actix_rt::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/runtime.rs:89
    54: actix_rt::arbiter::Arbiter::new::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/arbiter.rs:125
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
    thread 'actix-rt:worker:6' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250:25
    stack backtrace:
    0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
    1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
    2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:77
    3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
    4: core::fmt::write
             at src/libcore/fmt/mod.rs:1052
    5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1426
    6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:62
    7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
    8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:204
    9: std::panicking::default_hook
             at src/libstd/panicking.rs:224
    10: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:472
    11: rust_begin_unwind
             at src/libstd/panicking.rs:380
    12: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
    13: core::option::expect_none_failed
             at src/libcore/option.rs:1199
    14: core::result::Result<T,E>::unwrap
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/result.rs:963
    15: actix_web::server::HttpServer<F,I,S,B>::listen::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250
    16: <F as actix_server::service::ServiceFactory<I>>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:183
    17: <actix_server::service::StreamNewService<F,Io> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:148
    18: <alloc::boxed::Box<dyn actix_server::service::InternalServiceFactory> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:170
    19: actix_server::worker::Worker::start::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/worker.rs:189
    20: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    21: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/future/future.rs:119
    22: <alloc::boxed::Box<F> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/boxed.rs:1131
    23: tokio::task::core::Core<T>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/core.rs:128
    24: tokio::task::harness::Harness<T,S>::poll::{{closure}}::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:120
    25: core::ops::function::FnOnce::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/ops/function.rs:232
    26: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:318
    27: std::panicking::try::do_call
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:305
    28: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:86
    29: std::panicking::try
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:281
    30: std::panic::catch_unwind
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:394
    31: tokio::task::harness::Harness<T,S>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:101
    32: tokio::loom::std::causal_cell::CausalCell<T>::with_mut
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/loom/std/causal_cell.rs:41
    33: tokio::task::harness::Harness<T,S>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:100
    34: tokio::task::raw::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:162
    35: tokio::task::raw::RawTask::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:113
    36: tokio::task::Task<S>::run
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/mod.rs:381
    37: tokio::task::local::Scheduler::tick
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:513
    38: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:407
    39: tokio::task::local::Scheduler::with::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:478
    40: std::thread::local::LocalKey<T>::try_with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:262
    41: std::thread::local::LocalKey<T>::with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:239
    42: tokio::task::local::Scheduler::with
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:474
    43: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:402
    44: std::future::poll_with_tls_context
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:98
    45: tokio::task::local::LocalSet::run_until::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:358
    46: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    47: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/basic_scheduler.rs:138
    48: tokio::runtime::Runtime::block_on::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:411
    49: tokio::runtime::context::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/context.rs:72
    50: tokio::runtime::handle::Handle::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/handle.rs:34
    51: tokio::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:408
    52: tokio::task::local::LocalSet::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:321
    53: actix_rt::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/runtime.rs:89
    54: actix_rt::arbiter::Arbiter::new::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/arbiter.rs:125
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
    thread 'actix-rt:worker:7' panicked at 'called `Result::unwrap()` on an `Err` value: "PoisonError { inner: .. }"', /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250:25
    stack backtrace:
    0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88
    1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66
    2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:77
    3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
    4: core::fmt::write
             at src/libcore/fmt/mod.rs:1052
    5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1426
    6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:62
    7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
    8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:204
    9: std::panicking::default_hook
             at src/libstd/panicking.rs:224
    10: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:472
    11: rust_begin_unwind
             at src/libstd/panicking.rs:380
    12: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
    13: core::option::expect_none_failed
             at src/libcore/option.rs:1199
    14: core::result::Result<T,E>::unwrap
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/result.rs:963
    15: actix_web::server::HttpServer<F,I,S,B>::listen::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-2.0.0/src/server.rs:250
    16: <F as actix_server::service::ServiceFactory<I>>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:183
    17: <actix_server::service::StreamNewService<F,Io> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:148
    18: <alloc::boxed::Box<dyn actix_server::service::InternalServiceFactory> as actix_server::service::InternalServiceFactory>::create
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/service.rs:170
    19: actix_server::worker::Worker::start::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-server-1.0.1/src/worker.rs:189
    20: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    21: <core::pin::Pin<P> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/future/future.rs:119
    22: <alloc::boxed::Box<F> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/liballoc/boxed.rs:1131
    23: tokio::task::core::Core<T>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/core.rs:128
    24: tokio::task::harness::Harness<T,S>::poll::{{closure}}::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:120
    25: core::ops::function::FnOnce::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libcore/ops/function.rs:232
    26: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:318
    27: std::panicking::try::do_call
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:305
    28: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:86
    29: std::panicking::try
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panicking.rs:281
    30: std::panic::catch_unwind
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/panic.rs:394
    31: tokio::task::harness::Harness<T,S>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:101
    32: tokio::loom::std::causal_cell::CausalCell<T>::with_mut
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/loom/std/causal_cell.rs:41
    33: tokio::task::harness::Harness<T,S>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/harness.rs:100
    34: tokio::task::raw::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:162
    35: tokio::task::raw::RawTask::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/raw.rs:113
    36: tokio::task::Task<S>::run
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/mod.rs:381
    37: tokio::task::local::Scheduler::tick
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:513
    38: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:407
    39: tokio::task::local::Scheduler::with::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:478
    40: std::thread::local::LocalKey<T>::try_with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:262
    41: std::thread::local::LocalKey<T>::with
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/thread/local.rs:239
    42: tokio::task::local::Scheduler::with
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:474
    43: <tokio::task::local::LocalFuture<F> as core::future::future::Future>::poll
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:402
    44: std::future::poll_with_tls_context
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:98
    45: tokio::task::local::LocalSet::run_until::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:358
    46: <std::future::GenFuture<T> as core::future::future::Future>::poll
             at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447/src/libstd/future.rs:43
    47: tokio::runtime::basic_scheduler::BasicScheduler<P>::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/basic_scheduler.rs:138
    48: tokio::runtime::Runtime::block_on::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:411
    49: tokio::runtime::context::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/context.rs:72
    50: tokio::runtime::handle::Handle::enter
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/handle.rs:34
    51: tokio::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/runtime/mod.rs:408
    52: tokio::task::local::LocalSet::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.11/src/task/local.rs:321
    53: actix_rt::runtime::Runtime::block_on
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/runtime.rs:89
    54: actix_rt::arbiter::Arbiter::new::{{closure}}
             at /home/flyq/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-1.0.0/src/arbiter.rs:125
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
    ^C[2020-04-08T02:52:30Z INFO  actix_server::builder] SIGINT received, exiting
sbignell commented 3 years ago

I've got it working with sqlite with no other databases. I did however need to install redis: apt-get install redis-server

The error appears to be looking for a MySQL connection.. maybe double check the postgres entry in the .env, maybe run a 'cargo build' before the 'cargo run' too.

Hope this helps