content/telegraf/controller/install/troubleshoot.md
Resolve common installation and startup issues with {{% product-name %}}. Check the symptoms below and apply the recommended fix before continuing with configuration.
If the default ports (8888 and 8000) are already in use, use the following configuration options to specify alternative ports:
| Description | Environment Variable | Command Flag |
|---|---|---|
| Web Interface and API | PORT | --port |
| Heartbeat server | HEARTBEAT_PORT | --heartbeat-port |
{{< tabs-wrapper >}} {{% tabs "medium" %}} Use Environment Variables Use Command Flags {{% /tabs %}} {{% tab-content %}}
<!------------------------ BEGIN ENVIRONMENT VARIABLES ------------------------>{{< code-tabs-wrapper >}} {{% code-tabs %}} Linux/macOS Windows (Powershell) {{% /code-tabs %}} {{% code-tab-content %}}
<!------------------------- BEGIN LINUX/MACOS ------------------------->PORT=3000
HEARTBEAT_PORT=3001
telegraf_controller
{{% /code-tab-content %}} {{% code-tab-content %}}
<!--------------------- BEGIN WINDOWS POWERSHELL ---------------------->$env:PORT=3000
$env:HEARTBEAT_PORT=3001
./telegraf_controller.exe
{{% /code-tab-content %}} {{< /code-tabs-wrapper >}}
<!------------------------- END ENVIRONMENT VARIABLES ------------------------->{{% /tab-content %}} {{% tab-content %}}
<!---------------------------- BEGIN COMMAND FLAGS ---------------------------->{{< code-tabs-wrapper >}} {{% code-tabs %}} Linux/macOS Windows (Powershell) {{% /code-tabs %}} {{% code-tab-content %}}
<!------------------------- BEGIN LINUX/MACOS ------------------------->telegraf_controller --port=3000 --heartbeat-port=3001
{{% /code-tab-content %}} {{% code-tab-content %}}
<!--------------------- BEGIN WINDOWS POWERSHELL ---------------------->./telegraf_controller.exe --port=3000 --heartbeat-port=3001
{{% /code-tab-content %}} {{< /code-tabs-wrapper >}}
<!----------------------------- END COMMAND FLAGS ----------------------------->{{% /tab-content %}} {{< /tabs-wrapper >}}
If you do not have permission to run the telegraf_controller executable,
ensure the file has executable permissions:
chmod +x telegraf_controller
macOS places a quarantine attribute on executable files downloaded from a browser and restricts file execution. To remove the quarantine attribute, use Terminal or System Settings.
xattr -d com.apple.quarantine telegraf_controller
telegraf_controller executable.If there are database connection issues, check the following depending on which database you're using:
Ensure the following ports are open in your network Firewall configuration:
8888 (or custom port)8000 (or custom heartbeat port)--ssl-cert and --ssl-key options for production deploymentschmod 600)