Failed to parse host ID from local directory

Anytime I run any command in my shell (Fish), I get a bunch of error lines. I setup NixOS and copied my files from an old device, idk if that might be causing like with a permission or something else. I checked the install steps again too.

thread 'main' panicked at crates/atuin-client/src/settings.rs:608:45:
failed to parse host ID from local directory: Error(SimpleLength { len: 0 })
stack backtrace:
   0:     0x5641f43c4105 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hc63c6f7d7797262d
   1:     0x5641f43e1d53 - core::fmt::write::h04a05d67612ec711
   2:     0x5641f43a671f - std::io::Write::write_fmt::h4be62c3b8e193e71
   3:     0x5641f43c3fa3 - std::sys::backtrace::BacktraceLock::print::h95c07e1b0c845ee5
   4:     0x5641f439e478 - std::panicking::default_hook::{{closure}}::hc99ff440027443fb
   5:     0x5641f439e33d - std::panicking::default_hook::h6404ce5d3c61501f
   6:     0x5641f439e9ae - std::panicking::rust_panic_with_hook::h346ebaa42917f592
   7:     0x5641f43c495a - std::panicking::begin_panic_handler::{{closure}}::h0b05e73d9c1fac68
   8:     0x5641f43c4309 - std::sys::backtrace::__rust_end_short_backtrace::hc30d33c93b2d1f3b
   9:     0x5641f439e51d - __rustc[8ed47d4163cac052]::rust_begin_unwind
  10:     0x5641f30802b0 - core::panicking::panic_fmt::h00861d2bf36d4e75
  11:     0x5641f3080186 - core::result::unwrap_failed::h2e6b08495249f299
  12:     0x5641f3af22e1 - atuin_client::settings::Settings::host_id::h46a5ff2a3017a720
  13:     0x5641f3ae54bf - atuin_client::database::current_context::h57306e7a749b6936
  14:     0x5641f30e424d - atuin::command::client::history::Cmd::run::{{closure}}::h19ef80f7f9d694c0
  15:     0x5641f310ab7c - atuin::command::client::Cmd::run_inner::{{closure}}::hb93c2222a1058d7e
  16:     0x5641f3412bf9 - tokio::runtime::scheduler::current_thread::Context::enter::hfbe18697805c0394
  17:     0x5641f3597563 - std::thread::local::LocalKey<T>::with::h4f26a77366766156
  18:     0x5641f3412d82 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h1542438a68f575da
  19:     0x5641f3327f18 - tokio::runtime::context::runtime::enter_runtime::ha0e14e0a5d72f442
  20:     0x5641f33765c7 - atuin::main::h2d9f59bd419f8896
  21:     0x5641f351ab86 - std::sys::backtrace::__rust_begin_short_backtrace::h73f4fa33c83a2fbe
  22:     0x5641f33054d1 - std::rt::lang_start::{{closure}}::h97adbb280256f02a
  23:     0x5641f439c225 - std::rt::lang_start_internal::h8f04c0f3ec280a66
  24:     0x5641f3387eed - main
  25:     0x7f6b1c62a4d8 - __libc_start_call_main
  26:     0x7f6b1c62a59b - __libc_start_main_alias_1
  27:     0x5641f30807d5 - _start
  28:                0x0 - <unknown>

I deleted ~/.local/share/atuin and the error went away, I guess it was permission issues?

Please do not copy files across hosts. Some files MUST be distinct cross machine, and are generated on setup or login. You will have several weird, undefined, and potentially unfixable issues if you try and sync history any other way than defined in our docs.

1 Like