How to Use Proxy Agent Doctor to Diagnose Issues
Run Proxy Agent Doctor to verify your configuration and connectivity before starting the agent, and when troubleshooting connection errors. It is available in Proxy Agent version 1.2.10 and later. Proxy Agent Doctor runs its checks and exits; it doesn't start or stop the running Proxy Agent.
Run Proxy Agent Doctor
Run the command for your installation type on the Proxy Agent host. Use an account that can read the configuration and write to the log directory.
Docker on Linux
From your Proxy Agent home directory, run:
./proxy-agent-manager.sh doctor
Docker on Windows
In an elevated PowerShell session, run:
& "$env:USERPROFILE\fivetran-proxy-agent\proxy-agent-manager.ps1" doctor
If you installed to a custom directory, use that directory instead.
For Docker installations, the management script runs Proxy Agent Doctor in a separate container using the agent's configuration and memory limit. The script must support doctor, and the pinned image must be version 1.2.10 or later.
If your script predates doctor, follow the manual management script update instructions. If the pinned image is earlier than 1.2.10, run the management script with upgrade before running Proxy Agent Doctor. The image upgrade restarts the agent.
Binary distribution on Linux
"$PROXY_HOME/jre/bin/java" -jar "$PROXY_HOME/proxyagent.jar" --doctor "$PROXY_HOME/config/proxyagent.conf"
Binary distribution on Windows
In a Command Prompt with PROXY_HOME set to your installation directory, run:
"%PROXY_HOME%\jre\bin\java" -jar "%PROXY_HOME%\proxyagent.jar" --doctor "%PROXY_HOME%\config\proxyagent.conf"
If your binary installation uses a KeyStore, pass the same Java KeyStore settings used by the Proxy Agent service before -jar. Use an account that can read the KeyStore and configuration.
KeyStore on Linux
sudo "$PROXY_HOME/jre/bin/java" -Djavax.net.ssl.keyStore=/path/to/keystore.p12 -Djavax.net.ssl.keyStorePassword='<your_secure_password>' -jar "$PROXY_HOME/proxyagent.jar" --doctor "$PROXY_HOME/config/proxyagent.conf"
KeyStore on Windows
In an elevated Command Prompt with PROXY_HOME set to your installation directory, run:
"%PROXY_HOME%\jre\bin\java" "-Djavax.net.ssl.keyStore=<path_to_keystore>" "-Djavax.net.ssl.keyStorePassword=<your_secure_password>" -jar "%PROXY_HOME%\proxyagent.jar" --doctor "%PROXY_HOME%\config\proxyagent.conf"
The password is visible in your shell history and in process listings while the command runs. Remove the command from your history afterward.
You can add options to the command, for example to check only one region. For more information, see Select regions and adjust TCP checks.
Select regions and adjust TCP checks
By default, Proxy Agent Doctor checks proxy servers in all supported regions. If your firewall allows only certain regions, add --region for each region your connections use. Add options at the end of the command. For example, to check only the us-east-1 region in a Docker installation:
./proxy-agent-manager.sh doctor --region us-east-1
To check only the us-east-1 region in a binary distribution installation:
"$PROXY_HOME/jre/bin/java" -jar "$PROXY_HOME/proxyagent.jar" --doctor "$PROXY_HOME/config/proxyagent.conf" --region us-east-1
On Windows, add the same option at the end of the Windows command. You can use the following options:
| Option | Description |
|---|---|
--region <region> | Check a specific region, for example --region us-east-1. Repeat the option to check multiple regions. |
--cloud-provider <provider> | Check only the regions on one cloud provider: aws, azure, or gcp. You can't combine this option with --region. |
--tcp-attempts <number> | Set the number of attempts for each TCP check, from 1 to 100. The default is 5. |
--tcp-rest-ms <milliseconds> | Set the delay between TCP attempts, from 0 to 60000 milliseconds. The default is 100. |
Region and cloud provider names are case-insensitive. Increase --tcp-attempts to help catch intermittent connectivity failures. Increase --tcp-rest-ms to spread the attempts over a longer period. A TCP check fails if any attempt fails. After a timeout, Proxy Agent Doctor skips the remaining attempts for that check.
Understand the results
Proxy Agent Doctor checks:
- Whether the configuration is valid.
- Total memory (or the container's memory limit, if lower) and the maximum Java Virtual Machine (JVM) heap size. The Proxy Agent requires at least 5 GiB of memory and a maximum heap size of at least 1.25 GiB.
- TCP connectivity to the configured HTTP proxy, if any.
- TCP and authenticated connectivity to the Platform Gateway, which maintains the Proxy Agent control connection (previously called the Proxy Broker).
- TCP connectivity to Fivetran regional proxy servers.
If the configuration is invalid or the configured HTTP proxy is unreachable, Proxy Agent Doctor skips the dependent network checks. In the default report, regions blocked by your firewall appear as failed checks. Each cloud provider's summary shows how many proxy servers are reachable and passes if at least one proxy server is reachable.
The preferred Platform Gateway host is gateway.fivetran.com, and orchestrator.fivetran.com is the fallback. If the preferred host is unreachable but the fallback works, the report asks you to allow access to the preferred host.
The report appears in the terminal. In version 1.2.12 and later, Proxy Agent Doctor also saves the report and detailed logs to a log file. For more information, see Version differences. Review the output and the log file for sensitive information before sharing them with our support team.
Version differences
- Earlier than 1.2.10: Proxy Agent Doctor isn't available.
- 1.2.10: Proxy Agent Doctor introduces the checks and options described on this page. It prints the report to the terminal but doesn't create a Proxy Agent Doctor log file.
- 1.2.11: The Proxy Agent, including Proxy Agent Doctor, supports the
gateway_hostandgateway_portconfiguration fields. On earlier versions, continue to useorchestrator_hostandorchestrator_port. Version 1.2.11 deprecates the older fields and rejects configurations that set both an old field and its replacement. - 1.2.12: Proxy Agent Doctor writes the report and detailed diagnostic logs, including exceptions from failed checks and TCP attempts, to
doctor-<start time>.login the configured log directory. If it can't read the configuration, it uses the working directory. If it can't create the log file, it logs to the console.
For Docker installations, check the logs directory in your Proxy Agent home directory. If the agent doesn't create a Proxy Agent Doctor log file, the management script saves the output it captures when it tries to start the diagnostic container.
If the management script exits before it tries to start the diagnostic container, look for the error in the terminal where you ran doctor.
Config file not foundmeans to check thatconfig/config.jsonexists in the Proxy Agent home directory.Failed to parse config fileon Windows means to check that the file contains valid JSON.'agent_id' missingmeans to check that theagent_idfield contains the ID from your downloaded configuration.