Last active
August 15, 2019 04:14
-
-
Save vigneshsarma/426074f7e5bf76518be302bc4d8ff4ca to your computer and use it in GitHub Desktop.
kube-rs error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "foo" | |
version = "0.1.0" | |
authors = ["Vignesh"] | |
edition = "2018" | |
[dependencies] | |
kube = { version = "0.15.0", features = ["openapi"]} | |
k8s-openapi = { version = "0.5.0", features = ["v1_15"]} | |
actix = { version = "0.8"} | |
actix-web = { version = "1.0"} | |
[[bin]] | |
name = "foo" | |
path = "src/main.rs" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::env; | |
use k8s_openapi::api::batch::v1::{JobSpec, JobStatus}; | |
use kube::{ | |
api::{Api, ListParams, Object}, | |
client::APIClient, | |
config::load_kube_config, | |
}; | |
use actix_web::{web, App, HttpResponse, HttpServer, Responder}; | |
type JobObj = Object<JobSpec, JobStatus>; | |
fn get_ns() -> String { | |
if let Ok(ns) = env::var("POD_NAMESPACE") { | |
ns | |
} else { | |
panic!("No way to find k8s namespace"); | |
} | |
} | |
fn ls_jobs() { | |
let cfg = load_kube_config().unwrap(); | |
let client: Api<JobObj> = Api::v1Job(APIClient::new(cfg)).within(&get_ns()); | |
let jobs = client | |
.list(&ListParams { | |
..Default::default() | |
}) | |
.unwrap(); | |
for j in jobs.items { | |
println!("Jobs: {:?}", j.metadata.name); | |
} | |
} | |
fn get_jobs() -> impl Responder { | |
ls_jobs(); | |
HttpResponse::Ok().body("ok") | |
} | |
fn main() { | |
ls_jobs(); | |
let sys = actix::System::new("foo"); | |
HttpServer::new(move || { | |
App::new().service(web::resource("/foo/").route(web::get().to(get_jobs))) | |
}) | |
.bind("127.0.0.1:6666") | |
.unwrap() | |
.start(); | |
let _ = sys.run(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thread 'actix-rt:worker:0' panicked at 'called `Result::unwrap()` on an `Err` value: Error { inner: Error(BlockingClientInFutureContext, "https://192.168.198.128:8443/apis/batch/v1/namespaces/test/jobs?") | |
stack backtrace: | |
0: backtrace::backtrace::libunwind::trace::he5c6e037ce763159 (0x106869d2a) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/libunwind.rs:88 | |
backtrace::backtrace::trace_unsynchronized::h410541760786518c | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/mod.rs:66 | |
1: backtrace::backtrace::trace::h491144eb392625d9 (0x106869cb3) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/mod.rs:53 | |
2: backtrace::capture::Backtrace::create::hacce44d11ab552b1 (0x10685b707) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/capture.rs:163 | |
3: backtrace::capture::Backtrace::new_unresolved::h78bb5ec4defbb04a (0x10685b68b) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/capture.rs:157 | |
4: failure::backtrace::internal::InternalBacktrace::new::he512300e21f838fd (0x106859f80) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/backtrace/internal.rs:44 | |
5: failure::backtrace::Backtrace::new::h364bf7597002e1b4 (0x106859d0f) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/backtrace/mod.rs:111 | |
6: <failure::error::error_impl::ErrorImpl as core::convert::From<F>>::from::h6dfef3d3c4a3e765 (0x106140e64) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/error/error_impl.rs:19 | |
7: <failure::error::Error as core::convert::From<F>>::from::he775945a60910e27 (0x1060d7ef5) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/error/mod.rs:36 | |
8: <T as core::convert::Into<U>>::into::hb38300c3b7a1f5c0 (0x106131195) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/convert.rs:540 | |
9: failure::context::Context<D>::with_err::h9046b3d8fcd682ca (0x1061595b9) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/context.rs:105 | |
10: failure::Fail::context::he16e794b4783df6f (0x1061329d6) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/lib.rs:160 | |
11: <core::result::Result<T,E> as failure::result_ext::ResultExt<T,E>>::context::{{closure}}::h2e40bcc8c4c79ced (0x1060da53f) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/result_ext.rs:164 | |
12: core::result::Result<T,E>::map_err::h7188e3f8c5084fe8 (0x10611c8ec) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/result.rs:522 | |
13: <core::result::Result<T,E> as failure::result_ext::ResultExt<T,E>>::context::h1bd7a7e06f19f7ab (0x106123a14) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/failure-0.1.5/src/result_ext.rs:164 | |
14: kube::client::APIClient::send::h5bebd73025c6ae7d (0x1060f8db7) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/kube-0.15.0/src/client/mod.rs:84 | |
15: kube::client::APIClient::request::h7e9258c4c953ab15 (0x105e0310e) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/kube-0.15.0/src/client/mod.rs:92 | |
16: kube::api::typed::Api<K>::list::h5845f2ccb5ba6468 (0x105cd6b3a) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/kube-0.15.0/src/api/typed.rs:89 | |
17: foo::ls_jobs::h668fbae03adeace3 (0x105db0b25) | |
at src/main.rs:26 | |
18: foo::get_jobs::h08fe78e5fcd6e3d1 (0x105db0f31) | |
at src/main.rs:38 | |
19: core::ops::function::Fn::call::he3fcc6c8695b37b3 (0x105dd5658) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:69 | |
20: <F as actix_web::handler::Factory<(),R>>::call::hd7fcf8b7566fd39c (0x105e03ddc) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/handler.rs:28 | |
21: <actix_web::handler::Handler<F,T,R> as actix_service::Service>::call::h20ce5fc45d9241fa (0x105eaac2e) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/handler.rs:83 | |
22: <actix_web::handler::ExtractResponse<T,S> as futures::future::Future>::poll::h419bc3dbdd32db69 (0x105eab21a) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/handler.rs:369 | |
23: <actix_web::route::RouteServiceWrapper<T> as actix_service::Service>::call::h20524e8d2cc08103 (0x105cde4cc) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/route.rs:364 | |
24: <alloc::boxed::Box<S> as actix_service::Service>::call::h63d491e002dcc354 (0x105edd144) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-service-0.4.1/src/lib.rs:369 | |
25: <actix_web::route::RouteService as actix_service::Service>::call::hd05a6a3db8f12030 (0x105ee1d6f) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/route.rs:135 | |
26: <actix_web::resource::ResourceService as actix_service::Service>::call::h66b1328d428219bc (0x105ed8ff5) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/resource.rs:558 | |
27: <actix_service::boxed::ServiceWrapper<T> as actix_service::Service>::call::h063309f833b4f8bb (0x105f02fd4) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-service-0.4.1/src/boxed.rs:144 | |
28: <alloc::boxed::Box<S> as actix_service::Service>::call::h63d491e002dcc354 (0x105edd144) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-service-0.4.1/src/lib.rs:369 | |
29: <actix_web::app_service::AppRouting as actix_service::Service>::call::hcf82eddb0aeb8755 (0x105ed704c) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/app_service.rs:411 | |
30: <actix_web::app_service::AppInitService<T,B> as actix_service::Service>::call::h5f852f7c7096a35e (0x105e6bbbb) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/app_service.rs:255 | |
31: <actix_http::cloneable::CloneableService<T> as actix_service::Service>::call::h9d4b244104406e9f (0x105e2877f) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/cloneable.rs:40 | |
32: actix_http::h1::dispatcher::InnerDispatcher<T,S,B,X,U>::handle_request::h84a8ded30d74bd3f (0x105e168d5) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/h1/dispatcher.rs:471 | |
33: actix_http::h1::dispatcher::InnerDispatcher<T,S,B,X,U>::poll_request::h01ffde8949a23249 (0x105e11364) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/h1/dispatcher.rs:524 | |
34: <actix_http::h1::dispatcher::Dispatcher<T,S,B,X,U> as futures::future::Future>::poll::h5995945224050e0e (0x105e0dda6) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/h1/dispatcher.rs:715 | |
35: <actix_http::service::HttpServiceHandlerResponse<T,S,B,X,U> as futures::future::Future>::poll::h05a3b11a653e15c2 (0x105e9226f) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/service.rs:464 | |
36: <actix_http::service::HttpServiceHandlerResponse<T,S,B,X,U> as futures::future::Future>::poll::h05a3b11a653e15c2 (0x105e92cec) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/service.rs:514 | |
37: futures::future::chain::Chain<A,B,C>::poll::hebdc8371f8652225 (0x105dcbde4) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/future/chain.rs:26 | |
38: <futures::future::then::Then<A,B,F> as futures::future::Future>::poll::h5a47fe2b64ed74f6 (0x105e3f075) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/future/then.rs:32 | |
39: <alloc::boxed::Box<F> as futures::future::Future>::poll::hfe1c53e21ea35fcb (0x105ea9aa8) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/future/mod.rs:113 | |
40: <alloc::boxed::Box<F> as futures::future::Future>::poll::h2b7b8456be29e473 (0x105fe96f5) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/future/mod.rs:113 | |
41: futures::task_impl::Spawn<T>::poll_future_notify::{{closure}}::h4bb0739638bc7a5c (0x105ff03d5) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/mod.rs:329 | |
42: futures::task_impl::Spawn<T>::enter::{{closure}}::hd64063d0cc903435 (0x105ff09d0) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/mod.rs:399 | |
43: futures::task_impl::std::set::h9ca29ea9fe25bc1c (0x105ff9c51) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/std/mod.rs:83 | |
44: futures::task_impl::Spawn<T>::enter::h606606948c17c852 (0x105ff0568) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/mod.rs:399 | |
45: futures::task_impl::Spawn<T>::poll_fn_notify::hef9bd0785b8298b5 (0x105ff0168) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/mod.rs:291 | |
46: futures::task_impl::Spawn<T>::poll_future_notify::h817bd1dacf731d55 (0x105ff0325) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/mod.rs:329 | |
47: tokio_current_thread::scheduler::Scheduled<U>::tick::h87cd8c330d7e6758 (0x10600d924) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/scheduler.rs:351 | |
48: tokio_current_thread::scheduler::Scheduler<U>::tick::{{closure}}::hd40294d24ada6e6a (0x10600e3d5) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/scheduler.rs:330 | |
49: tokio_current_thread::Borrow<U>::enter::{{closure}}::{{closure}}::h0d8ac3a1097c98be (0x105ffacc5) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:788 | |
50: tokio_current_thread::CurrentRunner::set_spawn::h520518c8fb717e81 (0x105ffa420) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:825 | |
51: tokio_current_thread::Borrow<U>::enter::{{closure}}::hba19c7017bf3b900 (0x105ffabab) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:788 | |
52: std::thread::local::LocalKey<T>::try_with::h6e000e1c81817220 (0x105fe20c3) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:299 | |
53: std::thread::local::LocalKey<T>::with::hd95bf7d46be82289 (0x105fe0035) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:245 | |
54: tokio_current_thread::Borrow<U>::enter::h6125397c91f56215 (0x105ffa83b) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:786 | |
55: tokio_current_thread::scheduler::Scheduler<U>::tick::h9d742cd63e0038a6 (0x10600e2df) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/scheduler.rs:330 | |
56: tokio_current_thread::Entered<P>::tick::hef6f7ad9160188c6 (0x105ffaf04) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:612 | |
57: tokio_current_thread::Entered<P>::block_on::h5d9e6db842aa3b87 (0x105ffb391) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:502 | |
58: actix_rt::runtime::Runtime::block_on::{{closure}}::h0ad00847f19eaaa8 (0x105ff2f0d) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:128 | |
59: actix_rt::runtime::Runtime::enter::{{closure}}::{{closure}}::{{closure}}::{{closure}}::h8b579be9c86107a9 (0x105ff355f) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:168 | |
60: tokio_executor::global::with_default::{{closure}}::h1eb778195834dbc6 (0x106016d7a) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.8/src/global.rs:209 | |
61: std::thread::local::LocalKey<T>::try_with::h8c3a01a48d2f66ba (0x105fe2ba7) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:299 | |
62: std::thread::local::LocalKey<T>::with::h0b59d8f76e223caf (0x105fdf888) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:245 | |
63: tokio_executor::global::with_default::h2b6c58eae238e06c (0x106016c0b) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.8/src/global.rs:178 | |
64: actix_rt::runtime::Runtime::enter::{{closure}}::{{closure}}::{{closure}}::h3fc622b8bc7d03bc (0x105ff35fc) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:166 | |
65: tokio_timer::timer::handle::with_default::{{closure}}::h41ecff730f2739cf (0x10600bae5) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.11/src/timer/handle.rs:101 | |
66: std::thread::local::LocalKey<T>::try_with::hd24b64d8b84691c0 (0x105fe36bb) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:299 | |
67: std::thread::local::LocalKey<T>::with::h63504aeec08af20d (0x105fdfc88) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:245 | |
68: tokio_timer::timer::handle::with_default::hf607f7275ac17836 (0x10600b748) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.11/src/timer/handle.rs:84 | |
69: actix_rt::runtime::Runtime::enter::{{closure}}::{{closure}}::h5a6a368170c1d97f (0x105ff3819) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:159 | |
70: tokio_timer::clock::clock::with_default::{{closure}}::h7dac6d9c641f05f4 (0x106019946) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.11/src/clock/clock.rs:137 | |
71: std::thread::local::LocalKey<T>::try_with::h4752874361ac3bfd (0x105fe1608) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:299 | |
72: std::thread::local::LocalKey<T>::with::hf66e3875bf74e88a (0x105fe0259) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:245 | |
73: tokio_timer::clock::clock::with_default::h9bf54f9b9b9adc56 (0x1060197ea) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.11/src/clock/clock.rs:117 | |
74: actix_rt::runtime::Runtime::enter::{{closure}}::h5c3f925d41963cbd (0x105ff38bd) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:158 | |
75: tokio_reactor::with_default::{{closure}}::hc5fddf8f368a7861 (0x106000169) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.9/src/lib.rs:237 | |
76: std::thread::local::LocalKey<T>::try_with::h85cda563fcff2b60 (0x105fe293d) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:299 | |
77: std::thread::local::LocalKey<T>::with::hc64f58e09a108b1b (0x105fdfef9) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:245 | |
78: tokio_reactor::with_default::h4f0bafde6872b110 (0x105fff9af) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.9/src/lib.rs:217 | |
79: actix_rt::runtime::Runtime::enter::hd5354755b01e2f14 (0x105ff3314) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:157 | |
80: actix_rt::runtime::Runtime::block_on::h40fb21e3a73222e3 (0x105ff2da5) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:126 | |
81: actix_rt::arbiter::Arbiter::new::{{closure}}::hc2109631096ab077 (0x106014967) | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/arbiter.rs:109 | |
82: std::sys_common::backtrace::__rust_begin_short_backtrace::ha7ccd17aa79f9221 (0x10600f7f4) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136 | |
83: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h77aa45a0b5cd9885 (0x105ff4b04) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470 | |
84: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h44f1825b88b10a41 (0x105fedc5a) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315 | |
85: std::panicking::try::do_call::h251677191956e2ce (0x10601a440) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293 | |
86: __rust_maybe_catch_panic (0x106aff8cf) | |
at src/libpanic_unwind/lib.rs:85 | |
87: std::panicking::try::hfc49a24ecfefd88e (0x10601a285) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 | |
88: std::panic::catch_unwind::he1bc8d90b331abaf (0x105fee5b4) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 | |
89: std::thread::Builder::spawn_unchecked::{{closure}}::h8a24e251b8b68fc4 (0x105ff4934) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469 | |
90: core::ops::function::FnOnce::call_once{{vtable.shim}}::h3136bb0f36a50ae2 (0x105ff51b5) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 | |
91: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h184cdfe19b856bb1 (0x106ae77de) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 | |
92: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h687dc7242996f892 (0x106afeefe) | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 | |
std::sys_common::thread::start_thread::hb3096211393c563b | |
at src/libstd/sys_common/thread.rs:13 | |
std::sys::unix::thread::Thread::new::thread_start::he418bbb505b1b1b9 | |
at src/libstd/sys/unix/thread.rs:79 | |
93: <unknown> (0x7fff77d85305) | |
94: <unknown> (0x7fff77d8826f) | |
Error executing request }', src/libcore/result.rs:999:5 | |
stack backtrace: | |
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace | |
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 | |
1: std::sys_common::backtrace::_print | |
at src/libstd/sys_common/backtrace.rs:71 | |
2: std::panicking::default_hook::{{closure}} | |
at src/libstd/sys_common/backtrace.rs:59 | |
at src/libstd/panicking.rs:197 | |
3: std::panicking::default_hook | |
at src/libstd/panicking.rs:211 | |
4: <std::panicking::begin_panic::PanicPayload<A> as core::panic::BoxMeUp>::get | |
at src/libstd/panicking.rs:474 | |
5: std::panicking::continue_panic_fmt | |
at src/libstd/panicking.rs:381 | |
6: std::panicking::try::do_call | |
at src/libstd/panicking.rs:308 | |
7: <T as core::any::Any>::type_id | |
at src/libcore/panicking.rs:85 | |
8: core::result::unwrap_failed | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/macros.rs:18 | |
9: core::result::Result<T,E>::unwrap | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/result.rs:800 | |
10: foo::ls_jobs | |
at src/main.rs:26 | |
11: foo::get_jobs | |
at src/main.rs:38 | |
12: core::ops::function::Fn::call | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:69 | |
13: <F as actix_web::handler::Factory<(),R>>::call | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/handler.rs:28 | |
14: <actix_web::handler::Handler<F,T,R> as actix_service::Service>::call | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/handler.rs:83 | |
15: <actix_web::handler::ExtractResponse<T,S> as futures::future::Future>::poll | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/handler.rs:369 | |
16: <actix_web::route::RouteServiceWrapper<T> as actix_service::Service>::call | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/route.rs:364 | |
17: http::uri::Uri::path | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-service-0.4.1/src/lib.rs:369 | |
18: actix_web::route::Route::new::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/route.rs:135 | |
19: <actix_web::resource::CreateResourceService as futures::future::Future>::poll::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/resource.rs:558 | |
20: <core::cell::BorrowRefMut as core::ops::drop::Drop>::drop | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-service-0.4.1/src/boxed.rs:144 | |
21: http::uri::Uri::path | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-service-0.4.1/src/lib.rs:369 | |
22: <actix_web::app_service::AppRoutingFactoryResponse as futures::future::Future>::poll::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/app_service.rs:411 | |
23: <actix_web::app_service::AppInitService<T,B> as actix_service::Service>::call | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-web-1.0.5/src/app_service.rs:255 | |
24: <actix_http::cloneable::CloneableService<T> as actix_service::Service>::call | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/cloneable.rs:40 | |
25: actix_http::h1::dispatcher::InnerDispatcher<T,S,B,X,U>::handle_request | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/h1/dispatcher.rs:471 | |
26: actix_http::h1::dispatcher::InnerDispatcher<T,S,B,X,U>::poll_request | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/h1/dispatcher.rs:524 | |
27: <actix_http::h1::dispatcher::Dispatcher<T,S,B,X,U> as futures::future::Future>::poll | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/h1/dispatcher.rs:715 | |
28: <actix_http::service::HttpServiceHandlerResponse<T,S,B,X,U> as futures::future::Future>::poll | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/service.rs:464 | |
29: <actix_http::service::HttpServiceHandlerResponse<T,S,B,X,U> as futures::future::Future>::poll | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-http-0.2.9/src/service.rs:514 | |
30: futures::future::chain::Chain<A,B,C>::poll | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/future/chain.rs:26 | |
31: <futures::future::then::Then<A,B,F> as futures::future::Future>::poll | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/future/then.rs:32 | |
32: <alloc::boxed::Box<F> as futures::future::Future>::poll | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/future/mod.rs:113 | |
33: hashbrown::raw::is_full | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/future/mod.rs:113 | |
34: futures::task_impl::NotifyHandle::new | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/mod.rs:329 | |
35: futures::task_impl::NotifyHandle::new | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/mod.rs:399 | |
36: futures::task_impl::std::BorrowedUnpark::new | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/std/mod.rs:83 | |
37: futures::task_impl::NotifyHandle::new | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/mod.rs:399 | |
38: futures::task_impl::NotifyHandle::new | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/mod.rs:291 | |
39: futures::task_impl::NotifyHandle::new | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-0.1.28/src/task_impl/mod.rs:329 | |
40: tokio_timer::timer::handle::CURRENT_TIMER::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/scheduler.rs:351 | |
41: tokio_timer::timer::handle::CURRENT_TIMER::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/scheduler.rs:330 | |
42: tokio_current_thread::EXECUTOR_ID::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:788 | |
43: tokio_current_thread::EXECUTOR_ID::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:825 | |
44: tokio_current_thread::EXECUTOR_ID::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:788 | |
45: mio_uds::stream::UnixStream::try_clone::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:299 | |
46: mio_uds::stream::UnixStream::try_clone::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:245 | |
47: tokio_current_thread::EXECUTOR_ID::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:786 | |
48: tokio_timer::timer::handle::CURRENT_TIMER::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/scheduler.rs:330 | |
49: tokio_current_thread::EXECUTOR_ID::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:612 | |
50: tokio_current_thread::EXECUTOR_ID::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-current-thread-0.1.6/src/lib.rs:502 | |
51: actix_rt::runtime::Runtime::block_on::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:128 | |
52: actix_rt::runtime::Runtime::enter::{{closure}}::{{closure}}::{{closure}}::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:168 | |
53: actix_rt::system::CURRENT::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.8/src/global.rs:209 | |
54: mio_uds::stream::UnixStream::try_clone::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:299 | |
55: mio_uds::stream::UnixStream::try_clone::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:245 | |
56: actix_rt::system::CURRENT::__init | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-executor-0.1.8/src/global.rs:178 | |
57: actix_rt::runtime::Runtime::enter::{{closure}}::{{closure}}::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:166 | |
58: core::ptr::swap_nonoverlapping_bytes | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.11/src/timer/handle.rs:101 | |
59: mio_uds::stream::UnixStream::try_clone::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:299 | |
60: mio_uds::stream::UnixStream::try_clone::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:245 | |
61: core::ptr::swap_nonoverlapping_bytes | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.11/src/timer/handle.rs:84 | |
62: actix_rt::runtime::Runtime::enter::{{closure}}::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:159 | |
63: actix_rt::builder::SystemRunner::run::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.11/src/clock/clock.rs:137 | |
64: mio_uds::stream::UnixStream::try_clone::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:299 | |
65: mio_uds::stream::UnixStream::try_clone::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:245 | |
66: actix_rt::builder::SystemRunner::run::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-timer-0.2.11/src/clock/clock.rs:117 | |
67: actix_rt::runtime::Runtime::enter::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:158 | |
68: core::alloc::Layout::repeat | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.9/src/lib.rs:237 | |
69: mio_uds::stream::UnixStream::try_clone::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:299 | |
70: mio_uds::stream::UnixStream::try_clone::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/local.rs:245 | |
71: core::alloc::Layout::repeat | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-reactor-0.1.9/src/lib.rs:217 | |
72: actix_rt::runtime::Runtime::block_on::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:157 | |
73: actix_rt::runtime::Runtime::new2 | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/runtime.rs:126 | |
74: actix_rt::arbiter::Arbiter::new::{{closure}} | |
at /Users/i323200/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-rt-0.2.4/src/arbiter.rs:109 | |
75: <tokio_timer::timer::handle::HandlePriv as core::clone::Clone>::clone | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136 | |
76: actix_rt::runtime::Runtime::enter::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470 | |
77: futures::task_impl::core::get_ptr | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315 | |
78: tokio_timer::clock::clock::CLOCK::__init | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293 | |
79: panic_unwind::dwarf::eh::read_encoded_pointer | |
at src/libpanic_unwind/lib.rs:85 | |
80: tokio_timer::clock::clock::CLOCK::__init | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 | |
81: std::sys_common::mutex::Mutex::raw_lock | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 | |
82: actix_rt::runtime::Runtime::enter::{{closure}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469 | |
83: core::ops::function::FnOnce::call_once{{vtable.shim}} | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 | |
84: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 | |
85: std::sys::unix::thread::Thread::new::thread_start | |
at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 | |
at src/libstd/sys_common/thread.rs:13 | |
at src/libstd/sys/unix/thread.rs:79 | |
86: _pthread_body | |
87: _pthread_start | |
Panic in Arbiter thread, shutting down system. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment