Skip to content

Commit d49bcc9

Browse files
authored
fix(docs): remove anchor links from headings in admin/healthcheck.md (#10975)
Relates to #8965 * Fixes offlinedocs that broke from change in feat(coderd/healthcheck): add access URL error codes and healthcheck doc #10915 by removing the offending anchor links from the page subheadings. * Makes offlinedocs also conditional on changes to docs
1 parent b267497 commit d49bcc9

File tree

2 files changed

+48
-16
lines changed

2 files changed

+48
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
runs-on: ubuntu-latest
3232
outputs:
3333
docs-only: ${{ steps.filter.outputs.docs_count == steps.filter.outputs.all_count }}
34+
docs: ${{ steps.filter.outputs.docs }}
3435
go: ${{ steps.filter.outputs.go }}
3536
ts: ${{ steps.filter.outputs.ts }}
3637
k8s: ${{ steps.filter.outputs.k8s }}
@@ -647,7 +648,8 @@ jobs:
647648
name: offlinedocs
648649
needs: changes
649650
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
650-
if: needs.changes.outputs.offlinedocs == 'true' || needs.changes.outputs.ci == 'true'
651+
if: needs.changes.outputs.offlinedocs == 'true' || needs.changes.outputs.ci == 'true' || needs.changes.outputs.docs == 'true'
652+
651653
steps:
652654
- name: Checkout
653655
uses: actions/checkout@v4

docs/admin/healthcheck.md

Lines changed: 45 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ string `OK`.
1919

2020
If there is an issue, you may see one of the following errors reported:
2121

22-
### <a name="EACS01">EACS01: Access URL not set</a>
22+
### EACS01
23+
24+
_Access URL not set_
2325

2426
**Problem:** no access URL has been configured.
2527

2628
**Solution:** configure an [access URL](./configure.md#access-url) for Coder.
2729

28-
### <a name="EACS02">EACS02: Access URL invalid</a>
30+
### EACS02
31+
32+
_Access URL invalid_
2933

3034
**Problem:** `${CODER_ACCESS_URL}/healthz` is not a valid URL.
3135

@@ -35,7 +39,9 @@ If there is an issue, you may see one of the following errors reported:
3539

3640
> **Tip:** You can check this [here](https://go.dev/play/p/CabcJZyTwt9).
3741
38-
### <a name="EACS03">EACS03: Failed to fetch `/healthz`</a>
42+
### EACS03
43+
44+
_Failed to fetch `/healthz`_
3945

4046
**Problem:** Coder was unable to execute a GET request to
4147
`${CODER_ACCESS_URL}/healthz`.
@@ -63,7 +69,9 @@ curl -v ${CODER_ACCESS_URL}/healthz
6369

6470
The output of this command should aid further diagnosis.
6571

66-
### <a name="EACS04">EACS04: /healthz did not return 200 OK</a>
72+
### EACS04
73+
74+
_/healthz did not return 200 OK_
6775

6876
**Problem:** Coder was able to execute a GET request to
6977
`${CODER_ACCESS_URL}/healthz`, but the response code was not `200 OK` as
@@ -84,14 +92,18 @@ should give you a good indication of the root cause.
8492
Coder continuously executes a short database query to validate that it can reach
8593
its configured database, and also measures the median latency over 5 attempts.
8694

87-
### <a name="EDB01">EDB01: Database Ping Failed</a>
95+
### EDB01
96+
97+
_Database Ping Failed_
8898

8999
**Problem:** This error code is returned if any attempt to execute this database
90100
query fails.
91101

92102
**Solution:** Investigate the health of the database.
93103

94-
### <a name="EDB02">EDB02: Database Latency High</a>
104+
### EDB02
105+
106+
_Database Latency High_
95107

96108
**Problem:** This code is returned if the median latency is higher than the
97109
[configured threshold](../cli/server.md#--health-check-threshold-database). This
@@ -120,7 +132,9 @@ traffic between Coder and workspace agents. Coder periodically queries the
120132
health of its configured DERP servers and may return one or more of the
121133
following:
122134

123-
### <a name="EDERP01">EDERP01: DERP Node Uses Websocket</a>
135+
### EDERP01
136+
137+
_DERP Node Uses Websocket_
124138

125139
**Problem:** When Coder attempts to establish a connection to one or more DERP
126140
servers, it sends a specific `Upgrade: derp` HTTP header. Some load balancers
@@ -137,7 +151,9 @@ still be able to reach their workspaces, connection performance may be degraded.
137151
**Solution:** ensure that any configured reverse proxy does not strip the
138152
`Upgrade: derp` header.
139153

140-
### <a name="EDERP02">EDERP02: One or more DERP nodes are unhealthy</a>
154+
### EDERP02
155+
156+
_One or more DERP nodes are unhealthy_
141157

142158
**Problem:** This is shown if Coder is unable to reach one or more configured
143159
DERP servers. Clients will fall back to use the remaining DERP servers, but
@@ -170,7 +186,9 @@ functionality, Coder will periodically attempt to establish a WebSocket
170186
connection with itself using the configured [Access URL](#access-url), send a
171187
message over the connection, and attempt to read back that same message.
172188

173-
### <a name="EWS01">EWS01: Failed to establish a WebSocket connection</a>
189+
### EWS01
190+
191+
_Failed to establish a WebSocket connection_
174192

175193
**Problem:** Coder was unable to establish a WebSocket connection over its own
176194
Access URL.
@@ -187,7 +205,9 @@ Access URL.
187205
2. Ensure that any reverse proxy that is sitting in front of Coder's configured
188206
access URL is not stripping the HTTP header `Upgrade: websocket`.
189207

190-
### <a name="EWS02">EWS02: Failed to echo a WebSocket message</a>
208+
### EWS02
209+
210+
_Failed to echo a WebSocket message_
191211

192212
**Problem:** Coder was able to establish a WebSocket connection, but was unable
193213
to write a message.
@@ -206,23 +226,29 @@ to write a message.
206226
If you have configured [Workspace Proxies](../admin/workspace-proxies.md), Coder
207227
will periodically query their availability and show their status here.
208228

209-
### <a name="EWP01">EWP01: Error Updating Workspace Proxy Health</a>
229+
### EWP01
230+
231+
_Error Updating Workspace Proxy Health_
210232

211233
**Problem:** Coder was unable to query the connected workspace proxies for their
212234
health status.
213235

214236
**Solution:** This may be a transient issue. If it persists, it could signify a
215237
connectivity issue.
216238

217-
### <a name="EWP02">EWP02: Error Fetching Workspace Proxies</a>
239+
### EWP02
240+
241+
_Error Fetching Workspace Proxies_
218242

219243
**Problem:** Coder was unable to fetch the stored workspace proxy health data
220244
from the database.
221245

222246
**Solution:** This may be a transient issue. If it persists, it could signify an
223247
issue with Coder's configured database.
224248

225-
### <a name="EWP03">EWP03: Workspace Proxy Version Mismatch</a>
249+
### EWP03
250+
251+
_Workspace Proxy Version Mismatch_
226252

227253
**Problem:** One or more workspace proxies are more than one major or minor
228254
version out of date with the main deployment. It is important that workspace
@@ -232,14 +258,18 @@ of API incompatibility.
232258
**Solution:** Update the workspace proxy to match the currently running version
233259
of Coder.
234260

235-
### <a name="EWP04">EWP04: One or more Workspace Proxies Unhealthy</a>
261+
### EWP04
262+
263+
_One or more Workspace Proxies Unhealthy_
236264

237265
**Problem:** One or more workspace proxies are not reachable.
238266

239267
**Solution:** Ensure that Coder can establish a connection to the configured
240268
workspace proxies on port 443.
241269

242-
## <a name="EUNKNOWN">Unknown Error</a>
270+
## EUNKNOWN
271+
272+
_Unknown Error_
243273

244274
**Problem:** This error is shown when an unexpected error occurred evaluating
245275
deployment health. It may resolve on its own.

0 commit comments

Comments
 (0)