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
+ RUN sudo apt-get update && sudo apt-get install vnc
33
+
```
34
+
16
35
## code-server
17
36
18
37
`code-server` is installed via the `startup_script` argument in the `coder_agent`
@@ -31,4 +50,41 @@ add the following features to your Coder template:
31
50
- Custom container spec
32
51
- More
33
52
34
-
We also welcome contributions!
53
+
## Troubleshooting
54
+
55
+
### Agent is stuck "connecting" or "disconnected"
56
+
57
+
This often occurs because the container cannot reach your [access URL](https://coder.com/docs/coder-oss/latest/admin/configure#access-url). The container may also be missing `curl` which is required to download the agent.
58
+
59
+
First, check the logs of the container:
60
+
61
+
```sh
62
+
docker ps
63
+
# CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
64
+
# 4334c92f86dd coder-2a86cbef-b9bd-43b6-b3f2-27bf956016c8 "sh -c '#!/usr/bin/e…" 13 minutes ago Up 13 minutes coder-bpmct-base
# curl: (6) Could not resolve host: coder.example.ccom
76
+
# error: failed to download coder agent
77
+
# command returned: 6
78
+
```
79
+
80
+
> Docker templates typically work with localhost and 127.0.0.1 access URLs as it rewrites to [use the docker host](https://github.com/coder/coder/pull/4306).
81
+
82
+
In this case, there was a typo in the access URL, which can also be verified in the "Deployment" page. Configure Coder to [use an externally-reachable access URL](https://coder.com/docs/coder-oss/latest/admin/configure#access-url).
83
+
84
+

85
+
86
+
If you are still running into issues, see our [generic troubleshooting instructions](https://coder.com/docs/coder-oss/latest/templates#troubleshooting-templates) or reach out [on Discord](https://discord.gg/coder).
87
+
88
+
## How do I persist my files?
89
+
90
+
With this example, all files within `/home/coder` are persisted when the workspace is started and stopped. You can combine this with a startup script to install software when the workspace starts. See [resource persistance](https://coder.com/docs/coder-oss/latest/templates/resource-persistence) for more details.
0 commit comments