Resolution
A successful TentaclePing only proves that the network path and TLS handshake work. A health check goes further: it authenticates the Octopus Server to the Tentacle, queries the Tentacle service, and runs a script on the machine. Read the failure message in the health check task log, match it to the stage it came from (communication, authentication, Tentacle status, or health check execution), and fix that stage. Use the table in Diagnosis and fix to map the message to the stage.
Symptom
A deployment target or worker shows Unhealthy or Unavailable after a scheduled or manual health check, even though TentaclePing (or a browser request to the Tentacle port) succeeds from the Octopus Server.
The task log shows an error after the connection step. Exact wording varies by cause; typical patterns are:
An error occurred when sending a request to 'https://<tentacle-host>:10933/', after the request began: <detail>
The remote certificate is invalid according to the validation procedure
Unable to authenticate: the Tentacle does not trust the thumbprint presented by this Octopus Server
Error evaluating the health check script / capabilities: <detail>
Paste the exact text from your own task log when you raise a support case.
Scope: when this is the right article
Use this article if all of the following are true:
- The target is a customer-managed Tentacle (Listening or Polling) on Windows or Linux.
- Basic connectivity succeeds: TentaclePing, a TCP test to the listening port, or a browser request to
https://<tentacle-host>:10933/completes with the splash page. - The health check task still fails, or fails intermittently.
Use a different article if:
- The connection itself times out or is refused. That is a network, firewall, or listening-port problem.
- The health check fails only where a proxy is configured on the Tentacle or the Octopus Server. See the proxy article under Related.
Cause
TentaclePing and a health check test different things.
| Check | TentaclePing / port test | Full health check |
|---|---|---|
| TCP connection to the Tentacle port | Yes | Yes |
| TLS handshake | Yes | Yes |
| Server certificate thumbprint matches the one registered for the target | Not checked against Octopus | Yes |
| Tentacle trusts the Octopus Server's thumbprint (authentication) | No | Yes |
| Tentacle service responds to API calls (version and capabilities) | No | Yes |
| Calamari and Tentacle version checks | No | Yes |
| Health check script runs on the machine and returns its results | No | Yes |
| Environment checks (for example, free disk space, shell availability) | No | Yes |
Because ping stops after the handshake, any of the later stages can fail while ping still succeeds. The most common causes are:
- Certificate trust problem: The thumbprint registered in Octopus for the target no longer matches the certificate the Tentacle presents, for example after the Tentacle was reinstalled or its certificate was regenerated.
- Authentication or thumbprint mismatch: The Tentacle's trusted Octopus Server thumbprint does not match the Server's current thumbprint. This is common after a server restore, migration, or move to a new node. For Polling Tentacles, the Server's polling thumbprint or subscription ID is wrong.
- Tentacle service state: The service is stopped, hung, restarting, or running a different instance than the one registered.
- Environment or capability evaluation failure: The Tentacle answers but cannot run the health check script or report its capabilities. Typical reasons are a missing or blocked shell (PowerShell execution policy, missing runtime), low disk space, permissions on the Tentacle home or work folder, or a runtime the Tentacle needs not being present.
Diagnosis and fix
Work through the steps in order. Each one rules out a stage, so stop at the first step that fails.
Step 1: Collect evidence from Octopus and Tentacle first
Gather this before opening the Windows Event Viewer or looking at proxies. Certificate trust and thumbprint mismatches are usually recorded in the Octopus Server log, the Tentacle log, or both, so the task log alone is often not enough.
- Open the failed health check task: Tasks, then filter to health checks for the target. Open the Task Log.
- Copy the full error text, including any inner exception, and the timestamp of the failure. Note the target name, URL, and whether the target is Listening or Polling.
- Note the Octopus Server node that ran the task (relevant for High Availability clusters), and the Tentacle version reported in earlier successful health checks.
- Note which step in the log failed. The log usually shows the connection step, then the capability and version step, then the script step. The last step that succeeded tells you the stage that failed.
- Open the Octopus Server log for the same node and time window (Configuration, then Diagnostics, or the server log files on disk). Search for the target name, the Tentacle host name, and the word "thumbprint" or "certificate" around the failure timestamp. Copy any matching lines.
- On the Tentacle machine, open the Tentacle log (default on Windows:
C:\Octopus\Logs\OctopusTentacle.txt) and look at the same time window. For an authentication problem, the Tentacle usually logs that it rejected a connection from an untrusted thumbprint, and the entry normally includes the thumbprint it received. Copy those lines too. - Compare the thumbprints in the log lines with the Server thumbprint and the target's registered thumbprint. A mismatch seen here usually identifies the stage immediately and lets you skip ahead to Step 4 or Step 5.
Step 2: Compare scheduled failures with your manual tests
- Record the time of each failed scheduled health check and the time of each successful manual test.
- Check whether failures line up with a pattern: a time of day, a particular Server node, a restart, a deployment, a certificate change, or a Tentacle upgrade.
- Run a manual Check health on the same target from the same Octopus Server node, then compare its task log line by line with the failed scheduled one. If the manual health check passes while the scheduled one fails, suspect a node-specific or timing-specific cause. If both fail the same way, continue to Step 3.
Step 3: Identify the failing stage
Match the error from the task log, together with the Server and Tentacle log lines from Step 1, to a stage:
| Error shows... | Stage | Go to |
|---|---|---|
| Certificate invalid, thumbprint mismatch on the server side, or "unexpected certificate" | Communication / certificate trust | Step 4 |
| Tentacle rejects the Server, "not trusted", unauthorized, or forbidden | Authentication | Step 5 |
| Connection reset, service unavailable, or no response after the handshake | Tentacle status | Step 6 |
| Connection and authentication succeed, but the log shows a script, capability, or environment error | Health check execution | Step 7 |
Step 4: Communication and certificate trust
-
In Octopus, open the target and note the Thumbprint recorded for it.
-
On the Tentacle machine, show the thumbprint it is actually using. On Windows, run in an elevated prompt:
Tentacle.exe show-thumbprint --instance "<InstanceName>"
On Linux:
sudo /opt/octopus/tentacle/Tentacle show-thumbprint --instance "<InstanceName>"
- If the two thumbprints differ, update the target's thumbprint in Octopus to the value from the Tentacle (or re-run the discovery or registration step), then run a manual health check.
Step 5: Authentication
-
In Octopus, find the Server thumbprint: Configuration, then Thumbprint. For High Availability, each node must present a thumbprint the Tentacle trusts (nodes normally share the same certificate).
-
On the Tentacle machine, check which Server thumbprints it trusts:
Tentacle.exe configure --instance "<InstanceName>" --trust "<ServerThumbprint>"
Running --trust adds the thumbprint to the trusted list. To replace stale entries, use --reset-trust first, then --trust.
-
Restart the Tentacle service, then run a manual health check.
-
For a Polling Tentacle, also confirm the Server URL and polling port the Tentacle uses are correct for the current Server.
Step 6: Tentacle service status
- On the Tentacle machine, confirm the service is running (Windows:
Get-Service "OctopusDeploy Tentacle*"; Linux:systemctl status tentacle). - Confirm the service is running the same instance you registered (instance name, listening port, home directory).
- Re-read the Tentacle log you collected in Step 1 (default on Windows:
C:\Octopus\Logs\OctopusTentacle.txt), looking for startup errors, restarts, or crashes near the failure time. Only after this step, if the log shows nothing and the service is healthy, check the Windows Event Viewer Application log for errors in the same window, using the failure timestamp (convert it to the Tentacle machine's time zone first). - Restart the service and run a manual health check.
Step 7: Health check execution and environment
- Read the script or capability error in the task log. Typical causes:
- The shell cannot start (PowerShell execution policy, constrained language mode, blocked by endpoint security, or a missing shell on Linux).
- Low disk space on the drive that holds the Tentacle home or work directory.
- The Tentacle account lacks permission to its home, work, or temp folder.
- A required runtime is missing or blocked. Check the system requirements for your Tentacle version (the supported .NET Framework or bundled .NET runtime) in the Tentacle documentation.
- Reproduce on the machine under the same account the Tentacle service uses, and fix the underlying issue.
- If the machine needs a custom health check policy, review the script in Infrastructure, then Machine Policies, and run it by hand on the target to see the error directly.
Step 8: Only now, look wider
If Steps 1 to 7 find nothing, escalate to OS-level and network troubleshooting: Windows Event Viewer entries beyond the failure window, antivirus or EDR logs, and proxy configuration. Include the task log text, the Octopus Server and Tentacle log excerpts, and the timestamps from Step 1 in any support case.
Verify
- Run Check health manually on the target. The task should finish with a Healthy result.
- Wait for (or trigger) the next scheduled health check and confirm it also succeeds, on every Octopus Server node if you run High Availability.
- Confirm the target shows as healthy on Infrastructure and that a small deployment or runbook to the target completes.
Related
- Machine policies: explains health check type (script or connection test only), schedule, timeouts, and the custom health check script.
- Tentacle installation requirements for Windows: lists the minimum .NET Framework version by Tentacle version.
- Tentacle .NET version change: background on the move to .NET Framework 4.8 and .NET 6.
- Troubleshooting Listening Tentacles: communication settings, TentaclePing, and permissions on the Tentacle home folder.
- Troubleshooting Polling Tentacles: the equivalent checks for Polling Tentacles.
- Troubleshooting Schannel and TLS: use when the failure is a TLS handshake or certificate validation error.
- Regenerate certificates with Octopus Server and Tentacle: use when a certificate must be replaced and trust re-established.
- Octopus log files: where to find the Server and Tentacle logs used in Step 1.
- TentaclePing: the connectivity test utility referenced in this article.