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★ 539 звёзд на GitHubОб этом скилле
Run Tracker Locally
Skill Links
This skill depends on these artifacts. If any of them change, review this skill.
src/bootstrap/config.rsshare/default/config/tracker.development.sqlite3.tomlsrc/lib.rsREADME.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:
- Run
bash ./scripts/validate-skill-links.sh - If validation fails, update either artifact markers or this skill content.
- 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.
- 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"
- Generate a short-lived self-signed certificate for local use. Include SANs
for both
localhostand127.0.0.1so 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'
- 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.
- Probe the listener.
--insecureis appropriate only for this temporary self-signed local certificate:
curl --fail --silent --show-error --insecure https://127.0.0.1:<port>/health_check
- 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
Установить run-tracker-locally в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic