Skip to content

Panic running tracker after merging PR #626

Description

@josecelano

Hi @da2ce7 after merging this PR we have again problems running the services:

UDP tracker:

$ cargo run
    Finished dev [optimized + debuginfo] target(s) in 0.07s
     Running `target/debug/torrust-tracker`
Loading default configuration file: `./share/default/config/tracker.development.sqlite3.toml` ...
2024-01-17T15:42:22.916667054+00:00 [torrust_tracker::bootstrap::logging][INFO] logging initialized.
2024-01-17T15:42:22.917287900+00:00 [UDP Tracker][INFO] Starting on: udp://0.0.0.0:6969
2024-01-17T15:42:22.917301780+00:00 [UDP Tracker][INFO] Started on: udp://0.0.0.0:6969
2024-01-17T15:42:22.917314150+00:00 [torrust_tracker::bootstrap::jobs::http_tracker][INFO] Note: Not loading Http Tracker Service, Not Enabled in Configuration.
2024-01-17T15:42:22.917325980+00:00 [Health Check API][INFO] Starting on: http://127.0.0.1:1313
thread 'tokio-runtime-worker' panicked at src/servers/registar.rs:84:32:
it should receive the listing: RecvError(())
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2024-01-17T15:42:22.917372540+00:00 [Health Check API][INFO] Started on: http://127.0.0.1:1313
thread 'tokio-runtime-worker' panicked at src/servers/signals.rs:52:25:
Failed to install stop signal: channel closed

HTTP tracker:

$ cargo run
    Finished dev [optimized + debuginfo] target(s) in 0.08s
     Running `target/debug/torrust-tracker`
Loading default configuration file: `./share/default/config/tracker.development.sqlite3.toml` ...
2024-01-17T15:44:25.861291618+00:00 [torrust_tracker::bootstrap::logging][INFO] logging initialized.
2024-01-17T15:44:25.861885065+00:00 [torrust_tracker::bootstrap::jobs][INFO] TLS not enabled
2024-01-17T15:44:25.861960704+00:00 [HTTP Tracker][INFO] Starting on: http://0.0.0.0:38039
2024-01-17T15:44:25.861974164+00:00 [HTTP Tracker][INFO] Started on: http://0.0.0.0:38039
2024-01-17T15:44:25.861994784+00:00 [Health Check API][INFO] Starting on: http://127.0.0.1:1313
2024-01-17T15:44:25.862057804+00:00 [Health Check API][INFO] Started on: http://127.0.0.1:1313
thread 'tokio-runtime-worker' panicked at src/servers/signals.rs:52:25:
Failed to install stop signal: channel closed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

API:

$ cargo run
    Finished dev [optimized + debuginfo] target(s) in 0.07s
     Running `target/debug/torrust-tracker`
Loading default configuration file: `./share/default/config/tracker.development.sqlite3.toml` ...
2024-01-17T15:45:48.496410648+00:00 [torrust_tracker::bootstrap::logging][INFO] logging initialized.
2024-01-17T15:45:48.497012334+00:00 [torrust_tracker::bootstrap::jobs::http_tracker][INFO] Note: Not loading Http Tracker Service, Not Enabled in Configuration.
2024-01-17T15:45:48.497018514+00:00 [torrust_tracker::bootstrap::jobs][INFO] TLS not enabled
thread 'tokio-runtime-worker' panicked at src/servers/registar.rs:84:32:
it should receive the listing: RecvError(())
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2024-01-17T15:45:48.497135114+00:00 [API][INFO] Starting on http://127.0.0.1:45317
2024-01-17T15:45:48.497164673+00:00 [API][INFO] Started on http://127.0.0.1:45317
2024-01-17T15:45:48.497182813+00:00 [Health Check API][INFO] Starting on: http://127.0.0.1:1313
2024-01-17T15:45:48.497223463+00:00 [Health Check API][INFO] Started on: http://127.0.0.1:1313
thread 'tokio-runtime-worker' panicked at src/servers/signals.rs:52:25:
Failed to install stop signal: channel closed

Health Check API

Loading default configuration file: `./share/default/config/tracker.development.sqlite3.toml` ...
2024-01-19T12:55:30.920929819+00:00 [torrust_tracker::bootstrap::logging][INFO] logging initialized.
2024-01-19T12:55:30.921525496+00:00 [Health Check API][INFO] Starting on: http://127.0.0.1:1313
2024-01-19T12:55:30.921596876+00:00 [Health Check API][INFO] Started on: http://127.0.0.1:1313
thread 'tokio-runtime-worker' panicked at src/servers/signals.rs:52:25:
Failed to install stop signal: channel closed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

And you can not stop the UDP and HTTP trackers with CTRL+C.

Besides, for the API, it keeps waiting even if there are no more alive connections (this is an old behavior):

!! shuting down in 90 seconds !!
2024-01-17T15:46:31.493528347+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0
2024-01-17T15:46:32.494658160+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0
2024-01-17T15:46:33.495743842+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0
2024-01-17T15:46:34.496885293+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0
2024-01-17T15:46:35.498263527+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0
2024-01-17T15:46:36.499403840+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0
2024-01-17T15:46:37.500433804+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0
2024-01-17T15:46:38.501785104+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0
2024-01-17T15:46:39.502845177+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0
2024-01-17T15:46:40.503956871+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0
2024-01-17T15:46:41.505213133+00:00 [torrust_tracker::servers::signals][INFO] remaining alive connections: 0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugIncorrect Behavior

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions