- Notifications
You must be signed in to change notification settings - Fork928
chore(docs): add support bundle guide#12931
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
7 commits Select commitHold shift + click to select a range
e3f6186
chore(docs): add support bundle guide
johnstcn19d3fa5
chore(cli): order map kvs in writeBundle for a e s t h e t i c s
johnstcn2ee6685
Revert "chore(cli): order map kvs in writeBundle for a e s t h e t i …
johnstcn9179198
Merge remote-tracking branch 'origin/main' into cj/docs-support-bundle
johnstcn72e7cd3
fix after #12946
johnstcneab8f75
fixup! fix after #12946
johnstcn9a7d84d
modify note about needing a workspace
johnstcnFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
87 changes: 87 additions & 0 deletionsdocs/guides/support-bundle.md
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,87 @@ | ||
# Generate and upload a Support Bundle to Coder Support | ||
When you engage with Coder support to diagnose an issue with your deployment, | ||
you may be asked to generate and upload a "Support Bundle" for offline analysis. | ||
This document explains the contents of a support bundle and the steps to submit | ||
a support bundle to Coder staff. | ||
## What is a Support Bundle? | ||
A support bundle is an archive containing a snapshot of information about your | ||
Coder deployment. | ||
It contains information about the workspace, the template it uses, running | ||
agents in the workspace, and other detailed information useful for | ||
troubleshooting. | ||
It is primarily intended for troubleshooting connectivity issues to workspaces, | ||
but can be useful for diagnosing other issues as well. | ||
**While we attempt to redact sensitive information from support bundles, they | ||
may contain information deemed sensitive by your organization and should be | ||
treated as such.** | ||
A brief overview of all files contained in the bundle is provided below: | ||
> Note: detailed descriptions of all the information available in the bundle is | ||
> out of scope, as support bundles are primarily intended for internal use. | ||
| Filename | Description | | ||
| --------------------------------- | ------------------------------------------------------------------------------------------------ | | ||
| `agent/agent.json` | The agent used to connect to the workspace with environment variables stripped. | | ||
| `agent/agent_magicsock.html` | The contents of the HTTP debug endpoint of the agent's Tailscale connection. | | ||
| `agent/client_magicsock.html` | The contents of the HTTP debug endpoint of the client's Tailscale connection. | | ||
| `agent/listening_ports.json` | The listening ports detected by the selected agent running in the workspace. | | ||
| `agent/logs.txt` | The logs of the selected agent running in the workspace. | | ||
| `agent/manifest.json` | The manifest of the selected agent with environment variables stripped. | | ||
| `agent/startup_logs.txt` | Startup logs of the workspace agent. | | ||
| `agent/prometheus.txt` | The contents of the agent's Prometheus endpoint. | | ||
| `cli_logs.txt` | Logs from running the `coder support bundle` command. | | ||
| `deployment/buildinfo.json` | Coder version and build information. | | ||
| `deployment/config.json` | Deployment [configuration](../api/general.md#get-deployment-config), with secret values removed. | | ||
| `deployment/experiments.json` | Any [experiments](../cli/server.md#experiments) currently enabled for the deployment. | | ||
| `deployment/health.json` | A snapshot of the [health status](../admin/healthcheck.md) of the deployment. | | ||
| `logs.txt` | Logs from the `codersdk.Client` used to generate the bundle. | | ||
| `network/connection_info.json` | Information used by workspace agents used to connect to Coder (DERP map etc.) | | ||
| `network/coordinator_debug.html` | Peers currently connected to each Coder instance and the tunnels established between peers. | | ||
| `network/netcheck.json` | Results of running `coder netcheck` locally. | | ||
| `network/tailnet_debug.html` | Tailnet coordinators, their heartbeat ages, connected peers, and tunnels. | | ||
| `workspace/build_logs.txt` | Build logs of the selected workspace. | | ||
| `workspace/workspace.json` | Details of the selected workspace. | | ||
| `workspace/parameters.json` | Build parameters of the selected workspace. | | ||
| `workspace/template.json` | The template currently in use by the selected workspace. | | ||
| `workspace/template_file.zip` | The source code of the template currently in use by the selected workspace. | | ||
| `workspace/template_version.json` | The template version currently in use by the selected workspace. | | ||
## How do I generate a Support Bundle? | ||
1. Ensure your deployment is up and running. Generating a support bundle | ||
requires the Coder deployment to be available. | ||
2. Ensure you have the Coder CLI installed on a local machine. See | ||
(installation)[../install/index.md] for steps on how to do this. | ||
> Note: It is recommended to generate a support bundle from a location | ||
> experiencing workspace connectivity issues. | ||
3. Ensure you are [logged in](../cli/login.md#login) to your Coder deployment as | ||
a user with the Owner privilege. | ||
4. Run `coder support bundle [owner/workspace]`, and respond `yes` to the | ||
prompt. The support bundle will be generated in the current directory with | ||
the filename `coder-support-$TIMESTAMP.zip`. | ||
> While support bundles can be generated without a running workspace, it is | ||
> recommended to specify one to maximize troubleshooting information. | ||
5. (Recommended) Extract the support bundle and review its contents, redacting | ||
any information you deem necessary. | ||
6. Coder staff will provide you a link where you can upload the bundle along | ||
with any other necessary supporting files. | ||
> Note: It is helpful to leave an informative message regarding the nature of | ||
> supporting files. | ||
Coder support will then review the information you provided and respond to you | ||
with next steps. |
5 changes: 5 additions & 0 deletionsdocs/manifest.json
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
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.