Skip to content

Commit cec9631

Browse files
committed
chore: default to generic troubleshooting link
1 parent a25deb9 commit cec9631

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

docs/templates.md

+9-15
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ not support custom VPCs). You can add these features by editing the Terraform
3636
code once you run `coder templates init` (new) or `coder templates pull`
3737
(existing).
3838

39-
- See [Creating and troubleshooting templates](#creating--troubleshooting-templates) for
40-
more info
39+
Refer to the following resources to build your own templates:
40+
41+
- Terraform: [Documentation](https://developer.hashicorp.com/terraform/docs) and [Registry](https://registry.terraform.io)
42+
- Common [concepts in templates](#concepts-in-templates) and [Coder Terraform provider](https://registry.terraform.io/providers/coder/coder/latest/docs)
43+
- [Coder example templates](https://github.com/coder/coder/tree/main/examples/templates) code
4144

4245
## Concepts in templates
4346

@@ -309,18 +312,9 @@ resource "coder_agent" "main" {
309312
You can add these environment variable definitions to your own templates, or customize them however
310313
you like.
311314

312-
## Creating & troubleshooting templates
313-
314-
You can use any Terraform resources or modules with Coder! When working on
315-
templates, we recommend you refer to the following resources:
316-
317-
- this document
318-
- [example templates](https://github.com/coder/coder/tree/main/examples/templates) code
319-
- [Coder Terraform provider](https://registry.terraform.io/providers/coder/coder/latest/docs)
320-
documentation
315+
## Troubleshooting templates
321316

322-
Occasionally, you may run into scenarios where the agent is not able to connect.
323-
This means the start script has failed.
317+
Occasionally, you may run into scenarios where a workspace is created, but the agent is not connected. This means the agent or [init script](https://github.com/coder/coder/tree/main/provisionersdk/scripts) has failed on the resource.
324318

325319
```sh
326320
$ coder ssh myworkspace
@@ -331,8 +325,8 @@ While troubleshooting steps vary by resource, here are some general best
331325
practices:
332326

333327
- Ensure the resource has `curl` installed
334-
- Ensure the resource can reach your Coder URL
335-
- Manually connect to the resource (e.g., `docker exec` or AWS console)
328+
- Ensure the resource can `curl` your Coder [access URL](./admin/configure.md#access-url)
329+
- Manually connect to the resource and check the agent logs (e.g., `docker exec` or AWS console)
336330
- The Coder agent logs are typically stored in `/var/log/coder-agent.log`
337331
- The Coder agent startup script logs are typically stored in `/var/log/coder-startup-script.log`
338332

site/src/components/Resources/AgentStatus.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ const TimeoutStatus: React.FC<{
6666
const [isOpen, setIsOpen] = useState(false)
6767
const id = isOpen ? "timeout-popover" : undefined
6868
const troubleshootLink =
69-
agent.troubleshooting_url ?? `/templates/${workspace.template_name}#readme`
69+
agent.troubleshooting_url ??
70+
"https://coder.com/docs/coder-oss/latest/templates#troubleshooting-templates"
7071

7172
return (
7273
<>

site/src/i18n/en/agent.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
},
1616
"timeoutTooltip": {
1717
"title": "Agent is taking too long to connect",
18-
"message": "We noticed this agent is taking longer than expected to connect. You can try troubleshooting the issue",
19-
"link": "here"
18+
"message": "We noticed this agent is taking longer than expected to connect.",
19+
"link": "Troubleshoot"
2020
},
2121
"unableToConnect": "Unable to connect"
2222
}

0 commit comments

Comments
 (0)