-
Notifications
You must be signed in to change notification settings - Fork 899
feat(coderd/healthcheck): add access URL error codes and healthcheck doc #10915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
2f5530f
feat(coderd/healthcheck): add access URL error codes and healthcheck doc
johnstcn 87e5f26
feat(coderd/healthcheck: add error codes for the rest of the owl
johnstcn 1994ce1
add remaining health codes, todo writing words
johnstcn 00505c9
database: assert that we put the right codes in the right places
johnstcn 6cdc918
add words about database
johnstcn 179fa17
Update docs/admin/healthcheck.md
johnstcn 970cf5d
Update docs/admin/healthcheck.md
johnstcn 1b56493
add DERP words
johnstcn 942513e
add some words about websockets
johnstcn f259c25
add playground link for access url
johnstcn decf017
add more words about workspace proxies
johnstcn 26c522e
add icon and manifest
johnstcn 45f1689
make fmt
johnstcn aed87f4
address comments
johnstcn 7bfe253
appease linter
johnstcn 1bf956a
add another note about troubleshooting websockets
johnstcn f9494c8
adjust icon viewBox
johnstcn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
feat(coderd/healthcheck): add access URL error codes and healthcheck doc
- Loading branch information
commit 2f5530f3cab0b2b9ec31dd039dbd9e83d48c36a3
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Deployment Health | ||
|
||
Coder includes an operator-friendly deployment health page that provides a | ||
number of details about the health of your Coder deployment. | ||
|
||
You can view it at `https://${CODER_URL}/health`, or you can alternatively view | ||
the [JSON response directly](../api/debug.md#debug-info-deployment-health). | ||
|
||
The deployment health page is broken up into the following sections: | ||
|
||
## Access URL | ||
|
||
The Access URL section shows checks related to Coder's | ||
[access URL](./configure.md#access-url). | ||
|
||
Coder will periodically send a GET request to `${CODER_ACCESS_URL}/healthz` and | ||
validate that the response is `200 OK`. | ||
|
||
If there is an issue, you may see one of the following errors reported: | ||
|
||
### <a name="EACSURL01">EACSURL01: Access URL not set</a> | ||
|
||
**Problem:** no access URL has been configured. | ||
|
||
**Solution:** configure an [access URL](./configure.md#access-url) for Coder. | ||
|
||
### <a name="EACSURL02">EACSURL02: Access URL invalid</a> | ||
|
||
**Problem:** `${CODER_ACCESS_URL}/healthz` is not a valid URL. | ||
|
||
**Solution:** Ensure that the access URL is a valid URL accepted by | ||
[`url.Parse`](https://pkg.go.dev/net/url#Parse). | ||
johnstcn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### <a name="EACSURL03">EACSURL03: Failed to fetch /healthz</a> | ||
|
||
**Problem:** Coder was unable to execute a GET request to | ||
`${CODER_ACCESS_URL}/healthz`. | ||
|
||
This could be due to a number of reasons, including but not limited to: | ||
|
||
- DNS lookup failure | ||
- A misconfigured firewall | ||
- A misconfigured reverse proxy | ||
- Invalid or expired SSL certificates | ||
|
||
**Solution:** Investigate and resolve the root cause of the connection issue. | ||
|
||
To troubleshoot further, you can log into the machine running Coder and attempt | ||
to run the following command: | ||
|
||
```shell | ||
curl -v ${CODER_ACCESS_URL} | ||
johnstcn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
The output of this command should aid further diagnosis. | ||
|
||
### <a name="EACSURL04">EACSURL04: /healthz did not return 200 OK</a> | ||
|
||
**Problem:** Coder was able to execute a GET request to | ||
`${CODER_ACCESS_URL}/healthz`, but the response code was not `200 OK` as | ||
expected. | ||
|
||
This could mean, for instance, that: | ||
|
||
- The request did not actually hit your Coder instance (potentially an incorrect | ||
DNS entry) | ||
- The request hit your Coder instance, but on an unexpected path (potentially a | ||
misconfigured reverse proxy) | ||
|
||
**Solution:** Inspect the `HealthzResponse` in the health check output. This | ||
should give you a good indication of the root cause. | ||
|
||
## Database | ||
|
||
## DERP | ||
|
||
## Websocket | ||
|
||
## Workspace Proxy |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.