Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

run-tracker-locally

БесплатноЗапускает вложенные скриптыНе проверен

Run the tracker locally with the default configuration and reach its UDP, HTTP and API services. Use when starting the tracker for development or manual…

torrustот torrust★ 539 звёзд на GitHub

Об этом скилле

Run Tracker Locally

Skill Links

This skill depends on these artifacts. If any of them change, review this skill.

  • src/bootstrap/config.rs
  • share/default/config/tracker.development.sqlite3.toml
  • src/lib.rs
  • README.md

Use the marker skill-link: run-tracker-locally in affected artifacts.

Convention reference: docs/skills/semantic-skill-link-convention.md

Validation Loop

Before finalizing changes related to this workflow:

  1. Run bash ./scripts/validate-skill-links.sh
  2. If validation fails, update either artifact markers or this skill content.
  3. Re-run validation until it passes.

Quick Start

To run the tracker with default development configuration:

cargo run

The tracker will start and you will see console output (logs) indicating where it's loading configuration from.

Default Development Configuration

When you run cargo run from the repository root, the tracker loads the default development configuration:

Loading extra configuration from default configuration file: `./share/default/config/tracker.development.sqlite3.toml` ...

Default database: SQLite3
Default configuration file: ./share/default/config/tracker.development.sqlite3.toml

Selecting a Configuration Source

The main torrust-tracker binary accepts an explicit file path:

cargo run --bin torrust-tracker -- --config-toml-path ./storage/tracker/etc/tracker.toml

Base-source precedence is --config-toml-path > TORRUST_TRACKER_CONFIG_TOML > TORRUST_TRACKER_CONFIG_TOML_PATH > the default development file. TORRUST_TRACKER_CONFIG_OVERRIDE_* values are merged over the selected base source. A CLI path is resolved exactly from the current working directory; it must name a readable TOML file. Environment sources remain supported for compatibility and deployment use.

Default Services

By default, the development configuration starts:

  • 2 UDP trackers on different ports
  • 2 HTTP trackers on different ports
  • Health check API endpoint

Check the configuration file to see exact ports and settings.

Viewing Configuration

To inspect or customize the tracker configuration:

# View the default development configuration
cat ./share/default/config/tracker.development.sqlite3.toml

You can modify this file to change:

  • Tracker ports
  • Database location
  • Logging levels
  • Tracker behavior and thresholds
  • Authentication settings

Common Ports (Default Configuration)

Check ./share/default/config/tracker.development.sqlite3.toml for exact port assignments. Typical defaults:

  • UDP tracker 1: 6969/udp
  • UDP tracker 2: 6970/udp
  • HTTP tracker 1: 7070/tcp
  • HTTP tracker 2: 7071/tcp
  • Health check API: 1212/tcp

Stopping the Tracker

To stop the running tracker:

# Press Ctrl+C in the terminal where the tracker is running

Verifying Tracker is Running

Check if tracker services are listening:

# Using ss (Linux)
ss -ulnp 2>/dev/null | grep -E '6969|6970'
ss -tlnp 2>/dev/null | grep -E '7070|7071|1212'

# Or using netstat (older systems)
netstat -ulnp 2>/dev/null | grep -E '6969|6970'
netstat -tlnp 2>/dev/null | grep -E '7070|7071|1212'

Running a Local HTTPS Tracker

For local TLS verification, create a temporary configuration and certificate under .tmp/. The directory is git-ignored, so do not place test keys in share/ or commit them.

  1. Copy or create a configuration based on the development configuration. Give an HTTP tracker a port-zero binding if the final runtime binding is part of the behavior under test:
http_trackers
bind_address = "0.0.0.0:0"

# Schema 2.0 uses the historical `tsl_config` spelling.
[http_trackers.tsl_config]
ssl_cert_path = ".tmp/localhost.crt"
ssl_key_path = ".tmp/localhost.key"
  1. Generate a short-lived self-signed certificate for local use. Include SANs for both localhost and 127.0.0.1 so a loopback client can validate it when supplied with the certificate:
openssl req -x509 -out .tmp/localhost.crt -keyout .tmp/localhost.key \
  -newkey rsa:2048 -nodes -sha256 -days 1 \
  -subj '/CN=localhost' \
  -addext 'subjectAltName=DNS:localhost,IP:127.0.0.1' \
  -addext 'keyUsage=digitalSignature' \
  -addext 'extendedKeyUsage=serverAuth'
  1. Start the tracker with the temporary configuration:
cargo run --bin torrust-tracker -- --config-toml-path "$PWD/.tmp/local-tls.toml"

Read the startup log to obtain the final port assigned to a :0 binding. It will report an https:// URL when TLS is enabled.

  1. Probe the listener. --insecure is appropriate only for this temporary self-signed local certificate:
curl --fail --silent --show-error --insecure https://127.0.0.1:<port>/health_check
  1. Stop the tracker and remove or retain the .tmp/ files as local-only test artifacts. Restore any temporary configuration edits before committing.

Known limitation: the aggregate health-check servic

Полный SKILL.md на GitHub

Установить run-tracker-locally в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/validate-skill-links.sh

FAQ

Что делает скилл run-tracker-locally?

Run the tracker locally with the default configuration and reach its UDP, HTTP and API services. Use when starting the tracker for development or manual testing.

Как установить скилл run-tracker-locally?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл run-tracker-locally запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить run-tracker-locally с