thread 'main' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime', lumen/src/main.rs:297:9
romanholidaypancakes opened this issue · 2 comments
romanholidaypancakes commented
Describe the bug
root@user123:~/lumen/lumen/bin/release# ./lumen -c config.toml
2021-02-04T07:14:42.313Z INFO lumen > starting private lumen server...
2021-02-04T07:14:42.339Z INFO lumen > starting http api server on 0.0.0.0:8082
thread 'main' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime', lumen/src/main.rs:297:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted
To Reproduce
CONFIG.tomL
[lumina]
# address that lumen will listen on for IDA to connect to
bind_addr = "0.0.0.0:1234"
# indicates if TLS should be used for connections, if true the `lumina.tls` section is required.
use_tls = false
# server display name; appears in IDA output window
server_name = "lumen"
# only required when `use_tls` is set to true.
[lumina.tls]
# Specify the server's certificate.
# Clients connecting to the server must match this certificate.
# If the certificate is password protected, the password can be specified in the `PKCSPASSWD` environment variable.
server_cert = "path/to/server_crt"
[database]
# Specifies a postgresql connection string. All variables can be found here: https://docs.rs/tokio-postgres/0.6.0/tokio_postgres/config/struct.Config.html
connection_info = "host=127.0.0.1 user=my_new_lunmne password=my_new_lunmne "
# Sets if the database connection should be made using TLS.
use_tls = false
# If the database requires a secure connection, paths to server-ca and client-id certificates can be set here:
server_ca = "db_ca.pem"
client_id = "db_id.p12"
# comment out this section to disable api server
# api server allows to query the database for comments by file or function hash.
[api_server]
bind_addr = "0.0.0.0:8082"
Server (please complete the following information):
- OS: Debian 10
- Architecture: x86_64
romanholidaypancakes commented
stack
root@user123:~/lumen/lumen/bin/release# ./lumen -c config.toml
2021-02-04T08:21:46.555Z INFO lumen > starting private lumen server...
2021-02-04T08:21:46.564Z INFO lumen > starting http api server on 0.0.0.0:8082
thread 'main' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime', lumen/src/main.rs:297:9
stack backtrace:
0: 0x55692892e490 - std::backtrace_rs::backtrace::libunwind::trace::h8bc78f7bc1f75bdb
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5
1: 0x55692892e490 - std::backtrace_rs::backtrace::trace_unsynchronized::ha4c961c9576f95ba
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x55692892e490 - std::sys_common::backtrace::_print_fmt::hc20cfdc233d6eb02
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/sys_common/backtrace.rs:67:5
3: 0x55692892e490 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h04bea14549780a0f
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/sys_common/backtrace.rs:46:22
4: 0x5569287a10bc - core::fmt::write::h3868db8542c90941
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/core/src/fmt/mod.rs:1096:17
5: 0x55692892da91 - std::io::Write::write_fmt::h55dd75636eef6a5c
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/io/mod.rs:1568:15
6: 0x55692892d4c0 - std::sys_common::backtrace::_print::h6439e8525077c7da
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/sys_common/backtrace.rs:49:5
7: 0x55692892d4c0 - std::sys_common::backtrace::print::h02b685f728ce3931
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/sys_common/backtrace.rs:36:9
8: 0x55692892d4c0 - std::panicking::default_hook::{{closure}}::h7c29625065fafae1
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/panicking.rs:208:50
9: 0x55692892cd67 - std::panicking::default_hook::hba441710bb71f4d5
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/panicking.rs:225:9
10: 0x55692892cd67 - std::panicking::rust_panic_with_hook::ha936eb00e51bc4d9
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/panicking.rs:591:17
11: 0x55692894b71d - std::panicking::begin_panic_handler::{{closure}}::hcd15140e0238536e
12: 0x55692894b68c - std::sys_common::backtrace::__rust_end_short_backtrace::hb13a021bb64823a1
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/sys_common/backtrace.rs:141:18
13: 0x55692894b63d - rust_begin_unwind
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/std/src/panicking.rs:493:5
14: 0x55692879e890 - core::panicking::panic_fmt::h20225113c4a2f8fd
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/core/src/panicking.rs:92:14
15: 0x5569287a2192 - core::option::expect_failed::h8be1ca96ca0d69ca
at /rustc/04caa632dd10c2bf64b69524c7f9c4c30a436877/library/core/src/option.rs:1292:5
16: 0x556928899363 - lumen::main::ha4258b6c1e83748c
17: 0x55692880a946 - std::sys_common::backtrace::__rust_begin_short_backtrace::h567c94c8ce62918a
18: 0x55692888e538 - main
19: 0x7f231411f2e1 - __libc_start_main
20: 0x55692870d93a - _start
21: 0x0 - <unknown>
Aborted
root@user123:~/lumen/lumen/bin/release#
romanholidaypancakes commented
- docker
root@user123:~/lumen2/lumen# docker-compose up
WARNING: The PKCSPASSWD variable is not set. Defaulting to a blank string.
Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Recreating lumina-postgres ... done
Recreating lumen_lumina_1 ... done
Attaching to lumina-postgres, lumen_lumina_1
lumina_1 | Connection to db 5432 port [tcp/*] succeeded!
lumina_1 | No custom config.toml found, creating secure default.
lumina_1 | No custom TLS key with p12/pfx extension in the custom mount directory.
lumina_1 | Generating a RSA private key
lumina-postgres |
lumina-postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
lumina-postgres |
lumina-postgres | 2021-02-04 11:14:20.913 UTC [1] LOG: starting PostgreSQL 13.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.2.1_pre1) 10.2.1 20201203, 64-bit
lumina-postgres | 2021-02-04 11:14:20.913 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
lumina-postgres | 2021-02-04 11:14:20.914 UTC [1] LOG: listening on IPv6 address "::", port 5432
lumina-postgres | 2021-02-04 11:14:20.944 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
lumina-postgres | 2021-02-04 11:14:20.958 UTC [20] LOG: database system was shut down at 2021-02-04 11:14:19 UTC
lumina-postgres | 2021-02-04 11:14:20.981 UTC [1] LOG: database system is ready to accept connections
lumina_1 | ....++++
lumina_1 | .......++++
lumina_1 | writing new private key to '/lumen/lumen_key.pem'
lumina_1 | -----
lumina_1 | hexrays.crt added to mounted volume. Copy this to your IDA install dir.
lumina_1 | 2021-02-04T11:14:21.938Z INFO lumen > starting private lumen server...
lumina_1 | 2021-02-04T11:14:21.987Z INFO lumen > starting http api server on 0.0.0.0:8082
lumina_1 | thread 'main' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime', lumen/src/main.rs:297:9
lumina_1 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
lumina_1 | Aborted (core dumped)
lumina_1 | Exiting due to error: Launching lumen
lumen_lumina_1 exited with code 1