You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're looking for help with API scripts or want to share your own, join the [Octopus Community Slack channel](https://octopus.com/slack). It's a great place to get inspiration, ask questions, and connect with other Octopus users and employees.
Copy file name to clipboardExpand all lines: src/pages/docs/support/debug-problems-with-octopus-variables.md
+24-9Lines changed: 24 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,22 @@ navOrder: 1
9
9
10
10
Sometimes a variable used during deployment may have a different value from the one you expect. Here are the first steps to debugging these issues.
11
11
12
+
Project variables and [library variable set](/docs/projects/variables/library-variable-sets) variables are captured in a snapshot when you create a release or publish a runbook snapshot. If you update a variable after the snapshot is taken, the change won't apply to existing releases or snapshots. To pick up the new value, you'll need to either create a new release (or update the existing release's variable snapshot) for deployments, or create and publish a new runbook snapshot for runbooks.
13
+
12
14
## Check the variable snapshot for the release {#check-variable-snapshot-for-release}
13
15
14
16
1. Open the **Project ➜ Releases ➜ Release** page for the Release you are debugging.
15
17
2. Scroll down to find the **Variables** section and click the **Show Snapshot** link so see the snapshot of Variables being used by this Release.
16
18
3. If the variable is wrong in the Snapshot:
17
-
* Update the Variable in the **Variables** section of the project, and then.
18
-
* Click the **Update variables** button - beware this will update **all** variables in the Snapshot to the latest values.
19
+
- Update the Variable in the **Variables** section of the project, and then.
20
+
- Click the **Update variables** button - beware this will update **all** variables in the Snapshot to the latest values.
19
21
20
22
:::figure
21
-

23
+

24
+
:::
25
+
26
+
:::div{.hint}
27
+
**Tenant variables are the exception.** Unlike project and library variable set variables, [tenant variables](/docs/tenants/tenant-variables) are not included in the snapshot. They take effect immediately without needing a new release or snapshot. For more details, see [Tenant variables and snapshots](/docs/tenants/tenant-variables#tenant-variables-and-snapshots).
22
28
:::
23
29
24
30
## Check the variable value in the all variables tab {#check-variable-value-in-all-variables-tab}
@@ -27,7 +33,7 @@ Sometimes a variable used during deployment may have a different value from the
27
33
2. Investigate the variables from all possible sources for the project including the project itself, [variable sets](/docs/projects/variables/library-variable-sets/), and [tenants](/docs/tenants).
28
34
29
35
:::figure
30
-

36
+

31
37
:::
32
38
33
39
:::div{.success}
@@ -49,17 +55,26 @@ This will log the variables available at the beginning of each step in the deplo
49
55
It should look like this. You can have as many extra variables as you want besides these two.
50
56
51
57
:::figure
52
-

58
+

53
59
:::
54
60
55
-
3.**Create a new release** of the project or **Update the variable snapshot** for the release as shown above.
56
-
4. Deploy the new release.
57
-
5. Enable **Verbose** output on the **Task log** page.
58
-
6. Expand the element corresponding to the Tentacle on which the problem is observed. Two sets of variables will be printed, first, the raw definitions before any substitutions have been performed, then the result of evaluating all variables for deployment.
61
+
1.**Create a new release** of the project or **Update the variable snapshot** for the release as shown above.
62
+
1. Deploy the new release.
63
+
1. Enable **Verbose** output on the **Task log** page.
64
+
1. Expand the element corresponding to the Tentacle on which the problem is observed. Two sets of variables will be printed, first, the raw definitions before any substitutions have been performed, then the result of evaluating all variables for deployment.
59
65
60
66
:::div{.warning}
61
67
**For debugging only**
62
68
When adding these variables to your project, Octopus will add the following warning to your deployment log
63
69
`20:30:45 Warning | OctopusPrintVariables is enabled. This should only be used for debugging problems with variables, and then disabled again for normal deployments.`
64
70
This is because printing variables increases the size of the task logs, and can make your deployments run slower. Don't forget to turn this off when you're finished debugging. These variables are false by default.
65
71
:::
72
+
73
+
## Use debug mode {#debug-mode}
74
+
75
+
As an alternative to setting `OctopusPrintVariables` and `OctopusPrintEvaluatedVariables`, you can enable **Debug Mode** when creating a deployment or running a runbook. Debug mode writes detailed variable information to the task log without requiring you to add variables to your project.
76
+
77
+
- For **project deployments**, you'll find the Debug Mode option on the deployment creation screen.
78
+
- For **runbooks**, click **Show advanced** on the run screen to reveal the Debug Mode option.
79
+
80
+
Debug mode is a convenient way to get variable diagnostics for a single run without modifying your project's variables.
Copy file name to clipboardExpand all lines: src/pages/docs/support/troubleshooting-failed-or-hanging-tasks.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,12 @@ This is generally indicative of an internal error in Octopus. In Octopus Cloud w
67
67
68
68
If the task appears to hang after a log message output by the Octopus Server or Tentacle, then in most cases the cause is antivirus or anti-malware software interfering with the task. The first step is to determine if your antivirus software is actually affecting your Tasks, and this can easily be done by removing your antivirus protection and confirming whether the tasks continue to be unresponsive.
69
69
70
+
#### "Bootstrapper did not return the bootstrapper service message" error
71
+
72
+
If you see the error `Bootstrapper did not return the bootstrapper service message` in your task log, this typically indicates that antivirus or security software is interfering with the deployment. [Calamari](/docs/octopus-rest-api/calamari) is the lightweight bootstrapper that Tentacle invokes for each deployment step. It's installed and updated in the `Tools` folder and runs steps from the `Work` folder within your Tentacle home directory. When security software blocks or delays Calamari's execution, Tentacle can't receive the expected response, causing this error.
73
+
74
+
To resolve this, configure your antivirus or endpoint protection software to exclude the Tentacle `Tools` and `Work` directories listed below. For detailed guidance, see [configuring malware protection exclusions](/docs/security/hardening-octopus#configure-malware-protection).
75
+
70
76
If this test shows that antivirus is interfering with your tasks, you may need to configure your antivirus software with the appropriate exclusions to ensure that it does not lock any files owned by Octopus, or affect any running processes initiated by Octopus. Consult your antivirus provider's documentation for more information.
71
77
72
78
Some examples of directories (and their subdirectories) you could try adding to an allow-list are:
0 commit comments