Skip to content

aziotd crashes when no cache and network present #657

@sionik

Description

@sionik

Hi,
i encountered a crash of aziotd.

This happens everytime if there is no cache and no network connection.

Backtrace:

[WARN] - Failed to send HTTP request (attempt 2 of 2): error trying to connect: dns error: failed to lookup address information: Temporary failu
[ERR!] - Failed to provision with IoT Hub, and no valid device backup was found: DPS client error
[ERR!] - service encountered an error
[ERR!] - caused by: DPS client error
[ERR!] - caused by: error trying to connect: dns error: failed to lookup address information: Temporary failure in name resolution
[ERR!] - caused by: dns error: failed to lookup address information: Temporary failure in name resolution
[ERR!] - caused by: failed to lookup address information: Temporary failure in name resolution
[ERR!] -    0: <aziotd::error::Error as core::convert::From<aziotd::error::ErrorKind>>::from
          at iot-identity-service/aziotd/src/error.rs:36:20
   <core::result::Result<T,F> as core::ops::try_trait::FromResidual<core::result::Result<core::convert::Infallible,E>>>::from_residual
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/core/src/result.rs:2079:27
   aziotd::run::{{closure}}
          at iot-identity-service/aziotd/src/main.rs:200:34
   aziotd::main_inner::{{closure}}
          at iot-identity-service/aziotd/src/main.rs:64:14
1: aziotd::main::{{closure}}
          at iot-identity-service/aziotd/src/main.rs:25:36
   tokio::runtime::park::CachedParkThread::block_on::{{closure}}
          at root/.cargo/registry/src/pkgs.dev.azure.com-e5c519a815e3fea7/tokio-1.28.2/src/runtime/park.rs:283:74
   tokio::runtime::coop::with_budget
          at root/.cargo/registry/src/pkgs.dev.azure.com-e5c519a815e3fea7/tokio-1.28.2/src/runtime/coop.rs:107:5
   tokio::runtime::coop::budget
          at root/.cargo/registry/src/pkgs.dev.azure.com-e5c519a815e3fea7/tokio-1.28.2/src/runtime/coop.rs:73:5
   tokio::runtime::park::CachedParkThread::block_on
          at root/.cargo/registry/src/pkgs.dev.azure.com-e5c519a815e3fea7/tokio-1.28.2/src/runtime/park.rs:283:31
2: tokio::runtime::context::BlockingRegionGuard::block_on
          at root/.cargo/registry/src/pkgs.dev.azure.com-e5c519a815e3fea7/tokio-1.28.2/src/runtime/context.rs:315:18
   tokio::runtime::scheduler::multi_thread::MultiThread::block_on
          at root/.cargo/registry/src/pkgs.dev.azure.com-e5c519a815e3fea7/tokio-1.28.2/src/runtime/scheduler/multi_thread/mod.rs:68:14
   tokio::runtime::runtime::Runtime::block_on
          at root/.cargo/registry/src/pkgs.dev.azure.com-e5c519a815e3fea7/tokio-1.28.2/src/runtime/runtime.rs:304:50
3: aziotd::main
          at iot-identity-service/aziotd/src/main.rs:25:42
4: core::ops::function::FnOnce::call_once
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/core/src/ops/function.rs:250:5
   std::sys::backtrace::__rust_begin_short_backtrace
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/sys/backtrace.rs:152:18
5: std::rt::lang_start::{{closure}}
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/rt.rs:206:18
6: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/core/src/ops/function.rs:284:21
   std::panicking::catch_unwind::do_call
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panicking.rs:589:40
   std::panicking::catch_unwind
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panicking.rs:552:19
   std::panic::catch_unwind
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panic.rs:359:14
   std::rt::lang_start_internal::{{closure}}
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/rt.rs:175:24
   std::panicking::catch_unwind::do_call
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panicking.rs:589:40
   std::panicking::catch_unwind
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panicking.rs:552:19
   std::panic::catch_unwind
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/panic.rs:359:14
   std::rt::lang_start_internal
          at rustc/29483883eed69d5fb4db01964cdf2af4d86e9cb2/library/std/src/rt.rs:171:5
7: main
8: <unknown>
9: __libc_start_main
0: _start

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions