Closed eckter closed 1 month ago
I opened #8139 to fix it. It changed a bunch of the implementation for --no-cache
. I hope it should give better hints when something does not work about "this is not implemented, please contact the editoast
team".
@eckter PR has been merged, so the ticket automatically closed. Tell me if it works for you.
It works, thanks for the quick fix :ok_hand:
What happened?
When running editoast with the environment variable
NO_CACHE=true
, all pathfinding requests fail (before even reaching core). It results in
Failed to connect to host: Internal error: connector has been disconnected`editoast logs
``` called `Option::unwrap()` on a `None` value stack backtrace: 0: rust_begin_unwind at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/panicking.rs:652:5 1: core::panicking::panic_fmt at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:72:14 2: core::panicking::panic at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/panicking.rs:146:5 3: core::option::unwrap_failed at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/option.rs:1984:5 4: core::option::Option::run at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/task/mod.rs:427:9 43: tokio::task::local::LocalSet::tick::{{closure}} at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/task/local.rs:676:63 44: tokio::runtime::coop::with_budget at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/coop.rs:107:5 45: tokio::runtime::coop::budget at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/coop.rs:73:5 46: tokio::task::local::LocalSet::tick at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/task/local.rs:676:31 47: as core::future::future::Future>::poll::{{closure}}
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/task/local.rs:982:16
48: tokio::task::local::LocalSet::with::{{closure}}
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/task/local.rs:730:13
49: std::thread::local::LocalKey::try_with
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/thread/local.rs:286:12
50: std::thread::local::LocalKey::with
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/thread/local.rs:262:9
51: tokio::task::local::LocalSet::with
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/task/local.rs:728:9
52: as core::future::future::Future>::poll
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/task/local.rs:968:9
53: tokio::task::local::LocalSet::run_until::{{closure}}
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/task/local.rs:635:19
54: as core::future::future::Future>::poll
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/future/future.rs:123:9
55: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/scheduler/current_thread/mod.rs:659:57
56: tokio::runtime::coop::with_budget
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/coop.rs:107:5
57: tokio::runtime::coop::budget
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/coop.rs:73:5
58: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/scheduler/current_thread/mod.rs:659:25
59: tokio::runtime::scheduler::current_thread::Context::enter
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/scheduler/current_thread/mod.rs:404:19
60: tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/scheduler/current_thread/mod.rs:658:36
61: tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/scheduler/current_thread/mod.rs:737:68
62: tokio::runtime::context::scoped::Scoped::set
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/context/scoped.rs:40:9
63: tokio::runtime::context::set_scheduler::{{closure}}
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/context.rs:180:26
64: std::thread::local::LocalKey::try_with
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/thread/local.rs:286:12
65: std::thread::local::LocalKey::with
at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/std/src/thread/local.rs:262:9
66: tokio::runtime::context::set_scheduler
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/context.rs:180:9
67: tokio::runtime::scheduler::current_thread::CoreGuard::enter
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/scheduler/current_thread/mod.rs:737:27
68: tokio::runtime::scheduler::current_thread::CoreGuard::block_on
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/scheduler/current_thread/mod.rs:646:19
69: tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/scheduler/current_thread/mod.rs:175:28
70: tokio::runtime::context::runtime::enter_runtime
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/context/runtime.rs:65:16
71: tokio::runtime::scheduler::current_thread::CurrentThread::block_on
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/scheduler/current_thread/mod.rs:167:9
72: tokio::runtime::runtime::Runtime::block_on
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/runtime.rs:347:47
73: actix_server::worker::ServerWorker::start::{{closure}}
at /home/eckter/.cargo/registry/src/index.crates.io-6f17d22bba15001f/actix-server-2.4.0/src/worker.rs:406:29
```
What did you expect to happen?
No response
How can we reproduce it (as minimally and precisely as possible)?
NO_CACHE=true
)On which environments the bug occurs?
Local
On which browser the bug occurs?
Firefox, Other
OSRD version (top right corner
Account
button >Informations
)064f4241f560435e0ea2dbbc9b36b797b84fdb05