-
Notifications
You must be signed in to change notification settings - Fork 207
Description
Installation
cargo install --locked --git https://github.com/roapi/roapi --branch main --bins roapi --features database
Config file
--- addr: http: 127.0.0.1:8765 postgres: 127.0.0.1:5433 tables: name: "tester" uri: "postgresql://tester:Qwerty_12345@localhost:5432/tester"
usage&error:
$ roapi -c /home/kot2/test/roapi-main/Config.yaml
[2025-04-01T11:57:59Z INFO roapi::context] loading uri(postgresql://tester:Qwerty_12345@localhost:5432/tester) as table tester
thread 'main' panicked at /home/kot2/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/postgres-0.19.9/src/connection.rs:66:22:
Cannot start a runtime from within a runtime. This happens because a function (like block_on) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at /home/kot2/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/postgres-0.19.9/src/connection.rs:66:22:
Cannot start a runtime from within a runtime. This happens because a function (like block_on) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
stack backtrace:
0: 0x60f4583b10b9 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hfc616348d9ad0abc
1: 0x60f456232033 - core::fmt::write::h7ca648217bc79799
2: 0x60f4583b09d2 - std::io::Write::write_fmt::h7960c58bfa5ccbcb
3: 0x60f4583b0f03 - std::sys::backtrace::BacktraceLock::print::h3fb349e80cbe0423
4: 0x60f4583b07f8 - std::panicking::rust_panic_with_hook::h66e909d048c263a9
5: 0x60f4583f02d5 - std::panicking::begin_panic_handler::{{closure}}::h8d9aa8be7e8634cf
6: 0x60f4583f0269 - std::sys::backtrace::__rust_end_short_backtrace::h7d7e47ef99abf6aa
7: 0x60f4583f08cc - rust_begin_unwind
8: 0x60f454f4726f - core::panicking::panic_fmt::hf8ffc7c15bfb58a0
9: 0x60f456153537 - core::ptr::drop_in_placepostgres::client::Client::h6f94b9236261d995
10: 0x60f4561ba83a - r2d2::Pool::get_timeout::h3aa9f101702802f8
11: 0x60f4561a5ce5 - <connectorx::sources::postgres::PostgresSource<P,C> as connectorx::sources::Source>::fetch_metadata::h928b1a9fb3a83221
12: 0x60f4561d5c29 - connectorx::dispatcher::Dispatcher<S,D,TP>::run::hca818b5d06906067
13: 0x60f4561c5f92 - connectorx::get_arrow::get_arrow::h6e7aa8739a590dd6
14: 0x60f4560fd2bd - columnq::table::database::imp::::to_mem_table::h9d67f907a737c487
15: 0x60f4553a8f81 - columnq::table::load::{{closure}}::h51a6253c8e0696ae
16: 0x60f4553c93b2 - columnq::columnq::ColumnQ::load_table::{{closure}}::h6847b5be9609b6de
17: 0x60f455288371 - roapi::startup::Application::build::{{closure}}::h68dd1fa9661fb040
18: 0x60f45545d55c - roapi::main::{{closure}}::{{closure}}::h533bc2f04f101a49
19: 0x60f45545c53c - roapi::main::{{closure}}::hbf2f05970393f7bc
20: 0x60f455456aab - roapi::main::hf82940e930a642f1
21: 0x60f45517cdf3 - std::sys::backtrace::__rust_begin_short_backtrace::h6d4f5459057e31f9
22: 0x60f4554611f2 - main
23: 0x75fe2222a1ca - __libc_start_call_main
at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
24: 0x75fe2222a28b - __libc_start_main_impl
at ./csu/../csu/libc-start.c:360:3
25: 0x60f454fbef55 - _start
26: 0x0 -
thread 'main' panicked at library/core/src/panicking.rs:226:5:
panic in a destructor during cleanup
thread caused non-unwinding panic. aborting.
Please tell me what the problem is.
Thanks,
Kudzu