dvdsk / HomeAutomation

System to automate lighting and audio interacting through a web interface and telegram bot
3 stars 1 forks source link

Crash on broken pipe #30

Open dvdsk opened 3 years ago

dvdsk commented 3 years ago

Entire server also seems to go unresponsive, probably causing the broken pipe. Crashing might very well be best possible behavior here.

Jul 23 11:48:16 ubuntu homeAutomation[26790]: [11:48][HomeAutomation::controller][#033[31mERROR#033[0m] Ran into an error handling an event: Lamps(HueError(ReqwestError(Error(Hyper(Error(BodyWrite, Os { code: 32, kind: BrokenPipe, message: "Broken pipe" })), "http://
192.168.1.11/api/OhYA9AP-cEbN3n4RzcD6yyQikEx4wMEJVOxcXCwB/groups/0/action")), State { next_error: None, backtrace: Some(   0: error_chain::make_backtrace
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /cargo/registry/src/github.com-1ecc6299db9ec823/error-chain-0.11.0/src/lib.rs:616:23
Jul 23 11:48:18 ubuntu homeAutomation[26790]:    1: <error_chain::State as core::default::Default>::default
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /cargo/registry/src/github.com-1ecc6299db9ec823/error-chain-0.11.0/src/lib.rs:710:24
Jul 23 11:48:18 ubuntu homeAutomation[26790]:    2: philipshue::errors::HueError::from_kind
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /cargo/registry/src/github.com-1ecc6299db9ec823/error-chain-0.11.0/src/error_chain.rs:125:21
Jul 23 11:48:18 ubuntu homeAutomation[26790]:    3: <philipshue::errors::HueError as core::convert::From<reqwest::error::Error>>::from
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /cargo/registry/src/github.com-1ecc6299db9ec823/error-chain-0.11.0/src/error_chain.rs:217:21
Jul 23 11:48:18 ubuntu homeAutomation[26790]:    4: core::ops::function::FnOnce::call_once
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /rust/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
Jul 23 11:48:18 ubuntu homeAutomation[26790]:    5: core::result::Result<T,E>::map_err
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /rust/lib/rustlib/src/rust/library/core/src/result.rs:591:27
Jul 23 11:48:18 ubuntu homeAutomation[26790]:    6: philipshue::bridge::send
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /cargo/git/checkouts/philipshue-89f94d715eedb437/c52c7fa/src/bridge.rs:106:5
Jul 23 11:48:18 ubuntu homeAutomation[26790]:    7: philipshue::bridge::send_with_body
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /cargo/git/checkouts/philipshue-89f94d715eedb437/c52c7fa/src/bridge.rs:102:5
Jul 23 11:48:18 ubuntu homeAutomation[26790]:    8: philipshue::bridge::Bridge::set_group_state
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /cargo/git/checkouts/philipshue-89f94d715eedb437/c52c7fa/src/bridge.rs:231:9
Jul 23 11:48:18 ubuntu homeAutomation[26790]:    9: HomeAutomation::controller::system::lamps::Lighting::set_all_ct
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /project/src/controller/system/lamps/mod.rs:271:9
Jul 23 11:48:18 ubuntu homeAutomation[26790]:   10: HomeAutomation::controller::state::normal::update_lights
Jul 23 11:48:18 ubuntu homeAutomation[26790]:              at /project/src/controller/state/normal.rs:15:9
Jul 23 11:48:18 ubuntu homeAutomation[26790]:   11: <HomeAutomation::controller::state::normal::Normal as HomeAutomation::controller::state::RoomState>::update
Jul 23 11:48:19 ubuntu homeAutomation[26790]:              at /project/src/controller/state/normal.rs:46:13
Jul 23 11:48:19 ubuntu homeAutomation[26790]:   12: HomeAutomation::controller::handle_event
Jul 23 11:48:19 ubuntu homeAutomation[26790]:              at /project/src/controller/mod.rs:152:31
Jul 23 11:48:19 ubuntu homeAutomation[26790]:   13: HomeAutomation::controller::start::{{closure}}
Jul 23 11:48:19 ubuntu homeAutomation[26790]:              at /project/src/controller/mod.rs:107:23
Jul 23 11:48:19 ubuntu homeAutomation[26790]:   14: std::sys_common::backtrace::__rust_begin_short_backtrace
Jul 23 11:48:19 ubuntu homeAutomation[26790]:              at /rust/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:125:18
Jul 23 11:48:19 ubuntu homeAutomation[26790]:   15: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
Jul 23 11:48:19 ubuntu homeAutomation[26790]:              at /rust/lib/rustlib/src/rust/library/std/src/thread/mod.rs:474:17
Jul 23 11:48:20 ubuntu homeAutomation[26790]:   16: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
Jul 23 11:48:20 ubuntu homeAutomation[26790]:              at /rust/lib/rustlib/src/rust/library/std/src/panic.rs:344:9
Jul 23 11:48:20 ubuntu homeAutomation[26790]:   17: std::panicking::try::do_call
Jul 23 11:48:20 ubuntu homeAutomation[26790]:              at /rust/lib/rustlib/src/rust/library/std/src/panicking.rs:379:40
Jul 23 11:48:20 ubuntu homeAutomation[26790]:   18: __rust_try
Jul 23 11:48:20 ubuntu homeAutomation[26790]:   19: std::panicking::try
Jul 23 11:48:20 ubuntu homeAutomation[26790]:              at /rust/lib/rustlib/src/rust/library/std/src/panicking.rs:343:19
Jul 23 11:48:20 ubuntu homeAutomation[26790]:   20: std::panic::catch_unwind
Jul 23 11:48:20 ubuntu homeAutomation[26790]:              at /rust/lib/rustlib/src/rust/library/std/src/panic.rs:431:14
Jul 23 11:48:20 ubuntu homeAutomation[26790]:   21: std::thread::Builder::spawn_unchecked::{{closure}}
Jul 23 11:48:20 ubuntu homeAutomation[26790]:              at /rust/lib/rustlib/src/rust/library/std/src/thread/mod.rs:473:30
Jul 23 11:48:20 ubuntu homeAutomation[26790]:   22: core::ops::function::FnOnce::call_once{{vtable.shim}}
Jul 23 11:48:20 ubuntu homeAutomation[26790]:              at /rust/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
Jul 23 11:48:20 ubuntu homeAutomation[26790]:   23: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
Jul 23 11:48:20 ubuntu homeAutomation[26790]:              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9
Jul 23 11:48:20 ubuntu homeAutomation[26790]:       <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
Jul 23 11:48:20 ubuntu homeAutomation[26790]:              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/alloc/src/boxed.rs:1546:9
Jul 23 11:48:20 ubuntu homeAutomation[26790]:       std::sys::unix::thread::Thread::new::thread_start
Jul 23 11:48:20 ubuntu homeAutomation[26790]:              at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/sys/unix/thread.rs:71:17
Jul 23 11:48:20 ubuntu homeAutomation[26790]:   24: start_thread
Jul 23 11:48:20 ubuntu homeAutomation[26790]:   25: <unknown>
Jul 23 11:48:21 ubuntu homeAutomation[26790]: ) }))