Ai00-X / ai00_server

The all-in-one RWKV runtime box with embed, RAG, AI agents, and more.
https://ai00-x.github.io/ai00_server/
MIT License
477 stars 58 forks source link

Issue starting server on Manjaro #89

Open wereretot opened 7 months ago

wereretot commented 7 months ago

2024-03-27T00:11:01.765Z INFO [ai00_server::salvo_main] reading config assets/configs/Config.toml... thread 'main' panicked at src/salvo_main.rs:49:54: called Result::unwrap() on an Err value: No such file or directory (os error 2) note: run with RUST_BACKTRACE=1 environment variable to display a backtrace thread 'tokio-runtime-worker' panicked at src/middleware.rs:344:47: called Result::unwrap() on an Err value: Disconnected

wereretot commented 7 months ago

2024-03-27T00:14:52.797Z INFO [ai00_server::salvo_main] reading config assets/configs/Config.toml... thread 'main' panicked at src/salvo_main.rs:49:54: called Result::unwrap() on an Err value: No such file or directory (os error 2)

Stack backtrace: 0: anyhow::error::<impl core::convert::From for anyhow::Error>::from 1: ai00_server::build_path 2: ai00_server::config::<impl core::convert::TryFrom for ai00_server::middleware::ReloadRequest>::try_from 3: ai00_server::salvo_main::salvo_main::{{closure}} 4: tokio::runtime::park::CachedParkThread::block_on 5: ai00_server::main 6: std::sys_common::backtrace::rust_begin_short_backtrace 7: std::rt::lang_start::{{closure}} 8: core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/ops/function.rs:284:13 9: std::panicking::try::do_call at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:554:40 10: std::panicking::try at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:518:19 11: std::panic::catch_unwind at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panic.rs:142:14 12: std::rt::lang_start_internal::{{closure}} at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/rt.rs:148:48 13: std::panicking::try::do_call at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:554:40 14: std::panicking::try at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:518:19 15: std::panic::catch_unwind at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panic.rs:142:14 16: std::rt::lang_start_internal at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/rt.rs:148:20 17: main 18: 19: __libc_start_main 20: _start stack backtrace: 0: 0x6398084f5486 - std::backtrace_rs::backtrace::libunwind::trace::h92ba5ac126ecc5ad at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 1: 0x6398084f5486 - std::backtrace_rs::backtrace::trace_unsynchronized::hfaa118b6e3a8f31a at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x6398084f5486 - std::sys_common::backtrace::_print_fmt::h2075f185adf13bbd at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys_common/backtrace.rs:68:5 3: 0x6398084f5486 - ::fmt::h9c4bd387f9f3f544 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys_common/backtrace.rs:44:22 4: 0x639808524bf0 - core::fmt::rt::Argument::fmt::h018ecebdf268b5bb at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/fmt/rt.rs:142:9 5: 0x639808524bf0 - core::fmt::write::h938c332fdab924eb at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/fmt/mod.rs:1120:17 6: 0x6398084f15ef - std::io::Write::write_fmt::h4a694b02e44e6363 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/io/mod.rs:1846:15 7: 0x6398084f5264 - std::sys_common::backtrace::_print::h3595c0f4303f3ccd at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys_common/backtrace.rs:47:5 8: 0x6398084f5264 - std::sys_common::backtrace::print::ha888e6736b0bc71f at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys_common/backtrace.rs:34:9 9: 0x6398084f6937 - std::panicking::default_hook::{{closure}}::he19a7f79f7beab5e 10: 0x6398084f6699 - std::panicking::default_hook::h67efe04e9a5d446e at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:292:9 11: 0x6398084f6dc8 - std::panicking::rust_panic_with_hook::h49021cdbc4b22349 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:781:13 12: 0x6398084f6ca2 - std::panicking::begin_panic_handler::{{closure}}::hfbf601f3d8c62d13 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:659:13 13: 0x6398084f5986 - std::sys_common::backtrace::rust_end_short_backtrace::h98dd020b6e913806 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys_common/backtrace.rs:171:18 14: 0x6398084f69f4 - rust_begin_unwind at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:647:5 15: 0x6398077d6475 - core::panicking::panic_fmt::h0d3f1893e38be419 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/panicking.rs:72:14 16: 0x6398077d69c3 - core::result::unwrap_failed::h1356562ef8bc898c at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/result.rs:1649:5 17: 0x639807bedc05 - ai00_server::salvo_main::salvo_main::{{closure}}::h303b9368f8895f9a 18: 0x639807bdcbe4 - tokio::runtime::park::CachedParkThread::block_on::h817467e6879a045a 19: 0x639807a12414 - ai00_server::main::hb7e0165d39d2b96f 20: 0x639807b78ef3 - std::sys_common::backtrace::rust_begin_short_backtrace::h01a204ea34006f84 21: 0x639807a441a9 - std::rt::lang_start::{{closure}}::h936faede8f626783 22: 0x6398084e9ed1 - core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once::he2501730d3d7649e at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/ops/function.rs:284:13 23: 0x6398084e9ed1 - std::panicking::try::do_call::h900df580cee6b404 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:554:40 24: 0x6398084e9ed1 - std::panicking::try::h2835d399792b43db at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:518:19 25: 0x6398084e9ed1 - std::panic::catch_unwind::hdff7b6e6c35776df at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panic.rs:142:14 26: 0x6398084e9ed1 - std::rt::lang_start_internal::{{closure}}::h6f12a67e0af11221 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/rt.rs:148:48 27: 0x6398084e9ed1 - std::panicking::try::do_call::h226d8232820746bf at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:554:40 28: 0x6398084e9ed1 - std::panicking::try::h7a70dd2f0620aaac at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:518:19 29: 0x6398084e9ed1 - std::panic::catch_unwind::h4827d3381ec3b157 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panic.rs:142:14 30: 0x6398084e9ed1 - std::rt::lang_start_internal::hc3f700406209db2c at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/rt.rs:148:20 31: 0x639807a13175 - main 32: 0x76751b381cd0 - 33: 0x76751b381d8a - __libc_start_main 34: 0x6398077d6d45 - _start 35: 0x0 - thread 'tokio-runtime-worker' panicked at src/middleware.rs:344:47: called Result::unwrap() on an Err value: Disconnected stack backtrace: 0: 0x6398084f5486 - std::backtrace_rs::backtrace::libunwind::trace::h92ba5ac126ecc5ad at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/../../backtrace/src/backtrace/libunwind.rs:104:5 1: 0x6398084f5486 - std::backtrace_rs::backtrace::trace_unsynchronized::hfaa118b6e3a8f31a at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x6398084f5486 - std::sys_common::backtrace::_print_fmt::h2075f185adf13bbd at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys_common/backtrace.rs:68:5 3: 0x6398084f5486 - ::fmt::h9c4bd387f9f3f544 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys_common/backtrace.rs:44:22 4: 0x639808524bf0 - core::fmt::rt::Argument::fmt::h018ecebdf268b5bb at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/fmt/rt.rs:142:9 5: 0x639808524bf0 - core::fmt::write::h938c332fdab924eb at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/fmt/mod.rs:1120:17 6: 0x6398084f15ef - std::io::Write::write_fmt::h4a694b02e44e6363 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/io/mod.rs:1846:15 7: 0x6398084f5264 - std::sys_common::backtrace::_print::h3595c0f4303f3ccd at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys_common/backtrace.rs:47:5 8: 0x6398084f5264 - std::sys_common::backtrace::print::ha888e6736b0bc71f at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys_common/backtrace.rs:34:9 9: 0x6398084f6937 - std::panicking::default_hook::{{closure}}::he19a7f79f7beab5e 10: 0x6398084f6699 - std::panicking::default_hook::h67efe04e9a5d446e at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:292:9 11: 0x6398084f6dc8 - std::panicking::rust_panic_with_hook::h49021cdbc4b22349 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:781:13 12: 0x6398084f6ca2 - std::panicking::begin_panic_handler::{{closure}}::hfbf601f3d8c62d13 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:659:13 13: 0x6398084f5986 - std::sys_common::backtrace::rust_end_short_backtrace::h98dd020b6e913806 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys_common/backtrace.rs:171:18 14: 0x6398084f69f4 - rust_begin_unwind at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/panicking.rs:647:5 15: 0x6398077d6475 - core::panicking::panic_fmt::h0d3f1893e38be419 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/panicking.rs:72:14 16: 0x6398077d69c3 - core::result::unwrap_failed::h1356562ef8bc898c at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/core/src/result.rs:1649:5 17: 0x639807bddf95 - tokio::runtime::park::CachedParkThread::block_on::hcf24909fcf10e212 18: 0x639807a03fae - tokio::runtime::runtime::Runtime::block_on::h003fe405bc9163bd 19: 0x639807935fef - ai00_server::middleware::model_route::h5ce2fc1faa2aa85f 20: 0x639807817840 - tokio::runtime::task::core::Core<T,S>::poll::h125270f7cd96982c 21: 0x639807b992ce - tokio::runtime::task::harness::Harness<T,S>::poll::h1072dd0cc7208f5a 22: 0x639808440b70 - tokio::runtime::blocking::pool::Inner::run::ha01840bc07accb73 23: 0x6398084636d7 - std::sys_common::backtrace::__rust_begin_short_backtrace::hcd989e7ab6095875 24: 0x63980845f0f9 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h989a69b4a8b89bb8 25: 0x6398084fc7e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once::h4f08d401a486e446 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/alloc/src/boxed.rs:2015:9 26: 0x6398084fc7e5 - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce>::call_once::h3476dfcdba628abc at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/alloc/src/boxed.rs:2015:9 27: 0x6398084fc7e5 - std::sys::pal::unix::thread::Thread::new::thread_start::h2770ac7f8882db09 at /rustc/aedd173a2c086e558c2b66d3743b344f977621a7/library/std/src/sys/pal/unix/thread.rs:108:17 28: 0x76751b3e755a - 29: 0x76751b464a3c - 30: 0x0 -

cryscan commented 7 months ago

You might not set up git-lfs properly if you are cloning the repo... Make sure that your assets/configs/Config.toml and assets/www/index.zip are good.