Skip to content

Crash during rustic restore from local repository #1617

@christophershirk

Description

@christophershirk

From commit: 189b17c

  • rustc 1.92.0 (ded5c06cf 2025-12-08)
  • Linux 6.17.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 21:44:46 UTC 2025 x86_64 GNU/Linux

from RUST_BACKTRACE=full:

thread 'main' (162633) panicked at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rus
tic_core-0.9.0/src/backend/local_destination.rs:122:28:
called `Result::unwrap()` on an `Err` value: ENOENT
stack backtrace:
[00:00:00] setting metadata...            ⠚
   0:     0x650e42f97aa2 - std::backtrace_rs::backtrace::libunwind::trace::hd57362190422746d
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/.
./../backtrace/src/backtrace/libunwind.rs:117:9
   1:     0x650e42f97aa2 - std::backtrace_rs::backtrace::trace_unsynchronized::he61be86f5e8dfc7b
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/.
./../backtrace/src/backtrace/mod.rs:66:14
   2:     0x650e42f97aa2 - std::sys::backtrace::_print_fmt::hd233ea33e70c29e2
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/s
ys/backtrace.rs:66:9
   3:     0x650e42f97aa2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fm
t::Display>::fmt::h718e2d17a1928e63
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/s
ys/backtrace.rs:39:26
   4:     0x650e42fabf3f - core::fmt::rt::Argument::fmt::hdeda3281325c4830
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/
fmt/rt.rs:173:76
   5:     0x650e42fabf3f - core::fmt::write::h1d2246b072ea91eb
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/
fmt/mod.rs:1469:25
   6:     0x650e42f5a273 - std::io::default_write_fmt::h4ebfe695aebd90ac
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/i
o/mod.rs:639:11
   7:     0x650e42f5a273 - std::io::Write::write_fmt::haf55272405c09d9b
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/i
o/mod.rs:1954:13
   8:     0x650e42f69912 - std::sys::backtrace::BacktraceLock::print::h61c3bd81a9458a03
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/s
ys/backtrace.rs:42:9
   9:     0x650e42f7026f - std::panicking::default_hook::{{closure}}::haf1ffb5d1e33a97f
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/p
anicking.rs:301:27
  10:     0x650e42f700c9 - std::panicking::default_hook::hc32245deb6eaa988

11:     0x650e42f708f5 - std::panicking::panic_with_hook::h43adc00fd0e494cb
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/p
anicking.rs:834:13
  12:     0x650e42f706da - std::panicking::panic_handler::{{closure}}::h44391079756da3e7
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/p
anicking.rs:707:13
  13:     0x650e42f69a59 - std::sys::backtrace::__rust_end_short_backtrace::h934e1568393e5b8f
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/s
ys/backtrace.rs:174:18
  14:     0x650e42f4d04d - __rustc[d9b87f19e823c0ef]::rust_begin_unwind
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/p
anicking.rs:698:5
  15:     0x650e42fb75e0 - core::panicking::panic_fmt::h62031895f6e012da
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/
panicking.rs:80:14
  16:     0x650e42fb6226 - core::result::unwrap_failed::h8e46864fd8bf13c6
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/
result.rs:1862:5
  17:     0x650e42ba7662 - core::result::Result<T,E>::unwrap::h769a0b8377c6ea14
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/
result.rs:1233:23
  18:     0x650e42ba7662 - rustic_core::backend::local_destination::uid_from_name_no_cache::h8d6508
97f26fc9d3
                               at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rust
ic_core-0.9.0/src/backend/local_destination.rs:122:28
  19:     0x650e42ba7662 - rustic_core::backend::local_destination::uid_from_name::hf1a92b2297d97b6
c
                               at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rust
ic_core-0.9.0/src/backend/local_destination.rs:120:1
  20:     0x650e42ba7662 - core::ops::function::FnOnce::call_once::h556ab75c0cab1d26
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/
ops/function.rs:250:5
  21:     0x650e42ba7662 - core::option::Option<T>::and_then::hd82e2dcf9bc24cd3
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/
option.rs:1545:24
  22:     0x650e42ba7662 - rustic_core::backend::local_destination::LocalDestination::set_user_grou
p::hf6fc75632ac9e4bb
                               at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rust
ic_core-0.9.0/src/backend/local_destination.rs:330:38
  23:     0x650e42b77ae6 - rustic_core::commands::restore::set_metadata::h959a23e75db7b966
                               at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rust
ic_core-0.9.0/src/commands/restore.rs:411:14
[00:00:00] setting metadata...            ⠒
  24:     0x650e4179148a - rustic_core::commands::restore::restore_metadata::hec31259db1e8a190
                               at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rust
ic_core-0.9.0/src/commands/restore.rs:371:18

25:     0x650e4179226f - rustic_core::commands::restore::restore_repository::h285445e8f13fd1ae
                               at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rust
ic_core-0.9.0/src/commands/restore.rs:126:5
  26:     0x650e41753688 - rustic_core::repository::Repository<P,S>::restore::h5f5ba7144b589c5e
                               at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rust
ic_core-0.9.0/src/repository.rs:1943:9
  27:     0x650e416ba60a - rustic_rs::commands::restore::RestoreCmd::inner_run::hb282f64dd1237e09
                               at /home/c/src/rustic/src/commands/restore.rs:104:18
  28:     0x650e4199fc8a - <rustic_rs::commands::restore::RestoreCmd as abscissa_core::runnable::Ru
nnable>::run::{{closure}}::h48867048e3f28a24
                               at /home/c/src/rustic/src/commands/restore.rs:47:38
  29:     0x650e4164dbee - rustic_rs::repository::AllRepositoryOptions::run_indexed::{{closure}}::h
92f48cca002cab7f
                               at /home/c/src/rustic/src/repository.rs:104:25
  30:     0x650e41656f9c - rustic_rs::repository::AllRepositoryOptions::run_with_progress::{{closur
e}}::he9df84346a0ef0ec
                               at /home/c/src/rustic/src/repository.rs:74:27
  31:     0x650e41666356 - rustic_rs::config::hooks::Hooks::use_with::h768d18049474981b
                               at /home/c/src/rustic/src/config/hooks.rs:107:29
  32:     0x650e41653abe - rustic_rs::repository::AllRepositoryOptions::run_with_progress::he6272b1
cba382fdc
                               at /home/c/src/rustic/src/repository.rs:74:15
  33:     0x650e41659b87 - rustic_rs::repository::AllRepositoryOptions::run::hbcdbda10573fe5d8
                               at /home/c/src/rustic/src/repository.rs:79:14
  34:     0x650e4164d304 - rustic_rs::repository::AllRepositoryOptions::run_indexed::h954886dcf918e
272
                               at /home/c/src/rustic/src/repository.rs:104:14
  35:     0x650e41611f15 - <rustic_rs::commands::restore::RestoreCmd as abscissa_core::runnable::Ru
nnable>::run::hbd07f08a223e6884
                               at /home/c/src/rustic/src/commands/restore.rs:47:14
  36:     0x650e4166e103 - rustic_rs::commands::_::<impl abscissa_core::runnable::Runnable for rust
ic_rs::commands::RusticCmd>::run::h5c78e7e083feb14f
                               at /home/c/src/rustic/src/commands.rs:77:40
  37:     0x650e415de6a3 - <rustic_rs::commands::EntryPoint as abscissa_core::runnable::Runnable>::
run::he56b538242747cee
                               at /home/c/src/rustic/src/commands.rs:206:23
  38:     0x650e40fb87b4 - abscissa_core::application::Application::run::he7dc2487b5263ebc
                               at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/absc
issa_core-0.9.0/src/application.rs:61:17
  39:     0x650e40fb51b8 - abscissa_core::application::boot_with_args::h3e7954c7a7315e9f
                               at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/absc
issa_core-0.9.0/src/application.rs:201:5
  40:     0x650e40fb51b8 - abscissa_core::application::boot::hc9a51d1c8196c66a
                               at /home/c/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/absc
issa_core-0.9.0/src/application.rs:187:5
  41:     0x650e40fbf17d - rustic::main::h235c3600b66a3a2f
                               at /home/c/src/rustic/src/bin/rustic.rs:22:5

42:     0x650e40fbe74b - core::ops::function::FnOnce::call_once::h7de14a117335a2c9
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/
ops/function.rs:250:5
  43:     0x650e40fb8ece - std::sys::backtrace::__rust_begin_short_backtrace::h12780a2fa221e5b4
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/s
ys/backtrace.rs:158:18
  44:     0x650e40fbe671 - std::rt::lang_start::{{closure}}::h8f8d8d0bd051ebe3
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/r
t.rs:206:18
  45:     0x650e42f5c1d0 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>
::call_once::hef272b0bbce060cb
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/core/src/
ops/function.rs:287:21
  46:     0x650e42f5c1d0 - std::panicking::catch_unwind::do_call::hb8c4cc43eed9a08c
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/p
anicking.rs:590:40
  47:     0x650e42f5c1d0 - std::panicking::catch_unwind::h2729a121c7344441
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/p
anicking.rs:553:19
  48:     0x650e42f5c1d0 - std::panic::catch_unwind::h8930b2483deb2063
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/p
anic.rs:359:14
  49:     0x650e42f5c1d0 - std::rt::lang_start_internal::{{closure}}::hada379c5dd834c6b
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/r
t.rs:175:24
  50:     0x650e42f5c1d0 - std::panicking::catch_unwind::do_call::hc3ea95eb90ebfdc8
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/p
anicking.rs:590:40
  51:     0x650e42f5c1d0 - std::panicking::catch_unwind::h0b97aa6eb277c112
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/p
anicking.rs:553:19
  52:     0x650e42f5c1d0 - std::panic::catch_unwind::h2db34aa2a1d62ae5
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/p
anic.rs:359:14
  53:     0x650e42f5c1d0 - std::rt::lang_start_internal::h00c7908c7c2f92b8
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/r
t.rs:171:5
  54:     0x650e40fbe657 - std::rt::lang_start::he7a17d39a7cb0ad6
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library/std/src/r
t.rs:205:5
  55:     0x650e40fc054e - main
  56:     0x7b27cea2a575 - __libc_start_call_main
                               at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
  57:     0x7b27cea2a628 - __libc_start_main_impl
                               at ./csu/../csu/libc-start.c:360:3
  58:     0x650e40fb3e65 - _start
  59:                0x0 - <unknown>

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-triageStatus: Waiting for a maintainer to triage this issue/PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions