mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: allow coderd to start with an empty DERP map when built-in DERP is disabled (#24544)
Allow coderd to start with an empty base DERP map when built-in DERP is disabled and no static DERP map is configured, so DERP can come from workspace proxies after startup. Also add a DERP healthcheck warning when no DERP servers are currently available at runtime. Related to: https://linear.app/codercom/issue/PLAT-43/bug-coderd-unable-to-be-started-if-built-in-derp-server-disabled-and Related to: https://github.com/coder/coder/issues/22324
This commit is contained in:
@@ -173,6 +173,25 @@ curl -v "https://coder.company.com/derp"
|
||||
# DERP requires connection upgrade
|
||||
```
|
||||
|
||||
### EDERP03
|
||||
|
||||
#### No DERP servers available
|
||||
|
||||
**Problem:** This is shown when Coder's effective DERP map does not contain
|
||||
any DERP servers. Without at least one working DERP server, workspace
|
||||
networking may not work.
|
||||
|
||||
This can happen if the built-in DERP server is disabled and no external DERP
|
||||
map is configured, or if workspace proxies are expected to provide DERP but no
|
||||
healthy DERP-enabled proxy is currently available.
|
||||
|
||||
**Solution:** Ensure that at least one DERP server is available to the
|
||||
deployment. For example:
|
||||
|
||||
- Restart `coderd` with the built-in DERP server enabled
|
||||
- Restart `coderd` with an external DERP map configured
|
||||
- Make sure a workspace proxy with DERP server enabled is running and healthy
|
||||
|
||||
### ESTUN01
|
||||
|
||||
#### No STUN servers available
|
||||
|
||||
Generated
+3
-3
@@ -13751,9 +13751,9 @@ Zero means unspecified. There might be a limit, but the client need not try to r
|
||||
|
||||
#### Enumerated Values
|
||||
|
||||
| Value(s) |
|
||||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `EACS01`, `EACS02`, `EACS03`, `EACS04`, `EDB01`, `EDB02`, `EDERP01`, `EDERP02`, `EPD01`, `EPD02`, `EPD03`, `EUNKNOWN`, `EWP01`, `EWP02`, `EWP04`, `EWS01`, `EWS02`, `EWS03` |
|
||||
| Value(s) |
|
||||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `EACS01`, `EACS02`, `EACS03`, `EACS04`, `EDB01`, `EDB02`, `EDERP01`, `EDERP02`, `EDERP03`, `EPD01`, `EPD02`, `EPD03`, `EUNKNOWN`, `EWP01`, `EWP02`, `EWP04`, `EWS01`, `EWS02`, `EWS03` |
|
||||
|
||||
## health.Message
|
||||
|
||||
|
||||
Reference in New Issue
Block a user