ERR Could not load DERP servers map file error="open : no such file or directory" path= #68

Closed
opened 2025-12-29 01:21:33 +01:00 by adam · 7 comments
Owner

Originally created by @a1ad on GitHub (Oct 25, 2021).

Originally assigned to: @kradalby on GitHub.

I keep getting this error.

Files in /etc/headscale:
image

Path in config:
image

Derp.yaml:

root@headscale:/etc/headscale# cat derp.yaml 
regions:
  1:
    regionid: 1
    regioncode: nyc
    regionname: New York City
    nodes:
      - name: 1a
        regionid: 1
        hostname: derp1.tailscale.com
        ipv4: 159.89.225.99
        ipv6: 2604:a880:400:d1::828:b001
      - name: 1b
        regionid: 1
        hostname: derp1b.tailscale.com
        ipv4: 45.55.35.93
        ipv6: 2604:a880:800:a1::f:2001
  10:
    regionid: 10
    regioncode: sea
    regionname: Seatle
    nodes:
      - name: 10a
        regionid: 10
        hostname: derp10.tailscale.com
        ipv4: 137.220.36.168
        ipv6: 2001:19f0:8001:2d9:5400:2ff:feef:bbb1
  11:
    regionid: 11
    regioncode: sao
    regionname: São Paulo
    nodes:
      - name: 11a
        regionid: 11
        hostname: derp11.tailscale.com
        ipv4: 18.230.97.74
        ipv6: 2600:1f1e:ee4:5611:ec5c:1736:d43b:a454
  12:
    regionid: 12
    regioncode: nyc
    regionname: Chicago
    nodes:
      - name: 12a
        regionid: 12
        hostname: derp12.tailscale.com
        ipv4: 216.128.144.130
        ipv6: 2001:19f0:5c01:289:5400:3ff:fe8d:cb5e
      - name: 12b
        regionid: 12
        hostname: derp12b.tailscale.com
        ipv4: 45.63.71.144
        ipv6: 2001:19f0:5c01:48a:5400:3ff:fe8d:cb5f
      - name: 12c
        regionid: 12
        hostname: derp12c.tailscale.com
        ipv4: 149.28.119.105
        ipv6: 2001:19f0:5c01:2cb:5400:3ff:fe8d:cb60
  2:
    regionid: 2
    regioncode: sfo
    regionname: San Francisco
    nodes:
      - name: 2a
        regionid: 2
        hostname: derp2.tailscale.com
        ipv4: 167.172.206.31
        ipv6: 2604:a880:2:d1::c5:7001
      - name: 2b
        regionid: 2
        hostname: derp2b.tailscale.com
        ipv4: 64.227.106.23
        ipv6: 2604:a880:4:1d0::29:9000
  3:
    regionid: 3
    regioncode: sin
    regionname: Singapore
    nodes:
      - name: 3a
        regionid: 3
        hostname: derp3.tailscale.com
        ipv4: 68.183.179.66
        ipv6: 2400:6180:0:d1::67d:8001
  4:
    regionid: 4
    regioncode: fra
    regionname: Frankfurt
    nodes:
      - name: 4c
        regionid: 4
        hostname: derp4c.tailscale.com
        ipv4: 134.122.77.138
        ipv6: 2a03:b0c0:3:d0::1501:6001
      - name: 4d
        regionid: 4
        hostname: derp4d.tailscale.com
        ipv4: 134.122.94.167
        ipv6: 2a03:b0c0:3:d0::1501:b001
      - name: 4e
        regionid: 4
        hostname: derp4e.tailscale.com
        ipv4: 134.122.74.153
        ipv6: 2a03:b0c0:3:d0::29:9001
  5:
    regionid: 5
    regioncode: syd
    regionname: Sydney
    nodes:
      - name: 5a
        regionid: 5
        hostname: derp5.tailscale.com
        ipv4: 103.43.75.49
        ipv6: 2001:19f0:5801:10b7:5400:2ff:feaa:284c
  6:
    regionid: 6
    regioncode: blr
    regionname: Bangalore
    nodes:
      - name: 6a
        regionid: 6
        hostname: derp6.tailscale.com
        ipv4: 68.183.90.120
        ipv6: 2400:6180:100:d0::982:d001
  7:
    regionid: 7
    regioncode: tok
    regionname: Tokyo
    nodes:
      - name: 7a
        regionid: 7
        hostname: derp7.tailscale.com
        ipv4: 167.179.89.145
        ipv6: 2401:c080:1000:467f:5400:2ff:feee:22aa
  8:
    regionid: 8
    regioncode: lhr
    regionname: London
    nodes:
      - name: 8b
        regionid: 8
        hostname: derp8b.tailscale.com
        ipv4: 46.101.74.201
        ipv6: 2a03:b0c0:1:d0::ec1:e001
      - name: 8c
        regionid: 8
        hostname: derp8c.tailscale.com
        ipv4: 206.189.16.32
        ipv6: 2a03:b0c0:1:d0::e1f:4001
      - name: 8d
        regionid: 8
        hostname: derp8d.tailscale.com
        ipv4: 178.62.44.132
        ipv6: 2a03:b0c0:1:d0::e08:e001
  9:
    regionid: 9
    regioncode: dfw
    regionname: Dallas
    nodes:
      - name: 9a
        regionid: 9
        hostname: derp9.tailscale.com
        ipv4: 207.148.3.137
        ipv6: 2001:19f0:6401:1d9c:5400:2ff:feef:bb82
      - name: 9b
        regionid: 9
        hostname: derp9b.tailscale.com
        ipv4: 144.202.67.195
        ipv6: 2001:19f0:6401:eb5:5400:3ff:fe8d:6d9b
      - name: 9c
        regionid: 9
        hostname: derp9c.tailscale.com
        ipv4: 155.138.243.219
        ipv6: 2001:19f0:6401:fe7:5400:3ff:fe8d:6d9c`
Originally created by @a1ad on GitHub (Oct 25, 2021). Originally assigned to: @kradalby on GitHub. I keep getting this error. Files in /etc/headscale: <img width="448" alt="image" src="https://user-images.githubusercontent.com/29516835/138736879-8d160a9e-e43d-4c3d-8761-fedc115e1f9e.png"> Path in config: <img width="441" alt="image" src="https://user-images.githubusercontent.com/29516835/138736963-aa7d1966-92b3-4028-b980-42e25565a264.png"> Derp.yaml: ``` root@headscale:/etc/headscale# cat derp.yaml regions: 1: regionid: 1 regioncode: nyc regionname: New York City nodes: - name: 1a regionid: 1 hostname: derp1.tailscale.com ipv4: 159.89.225.99 ipv6: 2604:a880:400:d1::828:b001 - name: 1b regionid: 1 hostname: derp1b.tailscale.com ipv4: 45.55.35.93 ipv6: 2604:a880:800:a1::f:2001 10: regionid: 10 regioncode: sea regionname: Seatle nodes: - name: 10a regionid: 10 hostname: derp10.tailscale.com ipv4: 137.220.36.168 ipv6: 2001:19f0:8001:2d9:5400:2ff:feef:bbb1 11: regionid: 11 regioncode: sao regionname: São Paulo nodes: - name: 11a regionid: 11 hostname: derp11.tailscale.com ipv4: 18.230.97.74 ipv6: 2600:1f1e:ee4:5611:ec5c:1736:d43b:a454 12: regionid: 12 regioncode: nyc regionname: Chicago nodes: - name: 12a regionid: 12 hostname: derp12.tailscale.com ipv4: 216.128.144.130 ipv6: 2001:19f0:5c01:289:5400:3ff:fe8d:cb5e - name: 12b regionid: 12 hostname: derp12b.tailscale.com ipv4: 45.63.71.144 ipv6: 2001:19f0:5c01:48a:5400:3ff:fe8d:cb5f - name: 12c regionid: 12 hostname: derp12c.tailscale.com ipv4: 149.28.119.105 ipv6: 2001:19f0:5c01:2cb:5400:3ff:fe8d:cb60 2: regionid: 2 regioncode: sfo regionname: San Francisco nodes: - name: 2a regionid: 2 hostname: derp2.tailscale.com ipv4: 167.172.206.31 ipv6: 2604:a880:2:d1::c5:7001 - name: 2b regionid: 2 hostname: derp2b.tailscale.com ipv4: 64.227.106.23 ipv6: 2604:a880:4:1d0::29:9000 3: regionid: 3 regioncode: sin regionname: Singapore nodes: - name: 3a regionid: 3 hostname: derp3.tailscale.com ipv4: 68.183.179.66 ipv6: 2400:6180:0:d1::67d:8001 4: regionid: 4 regioncode: fra regionname: Frankfurt nodes: - name: 4c regionid: 4 hostname: derp4c.tailscale.com ipv4: 134.122.77.138 ipv6: 2a03:b0c0:3:d0::1501:6001 - name: 4d regionid: 4 hostname: derp4d.tailscale.com ipv4: 134.122.94.167 ipv6: 2a03:b0c0:3:d0::1501:b001 - name: 4e regionid: 4 hostname: derp4e.tailscale.com ipv4: 134.122.74.153 ipv6: 2a03:b0c0:3:d0::29:9001 5: regionid: 5 regioncode: syd regionname: Sydney nodes: - name: 5a regionid: 5 hostname: derp5.tailscale.com ipv4: 103.43.75.49 ipv6: 2001:19f0:5801:10b7:5400:2ff:feaa:284c 6: regionid: 6 regioncode: blr regionname: Bangalore nodes: - name: 6a regionid: 6 hostname: derp6.tailscale.com ipv4: 68.183.90.120 ipv6: 2400:6180:100:d0::982:d001 7: regionid: 7 regioncode: tok regionname: Tokyo nodes: - name: 7a regionid: 7 hostname: derp7.tailscale.com ipv4: 167.179.89.145 ipv6: 2401:c080:1000:467f:5400:2ff:feee:22aa 8: regionid: 8 regioncode: lhr regionname: London nodes: - name: 8b regionid: 8 hostname: derp8b.tailscale.com ipv4: 46.101.74.201 ipv6: 2a03:b0c0:1:d0::ec1:e001 - name: 8c regionid: 8 hostname: derp8c.tailscale.com ipv4: 206.189.16.32 ipv6: 2a03:b0c0:1:d0::e1f:4001 - name: 8d regionid: 8 hostname: derp8d.tailscale.com ipv4: 178.62.44.132 ipv6: 2a03:b0c0:1:d0::e08:e001 9: regionid: 9 regioncode: dfw regionname: Dallas nodes: - name: 9a regionid: 9 hostname: derp9.tailscale.com ipv4: 207.148.3.137 ipv6: 2001:19f0:6401:1d9c:5400:2ff:feef:bb82 - name: 9b regionid: 9 hostname: derp9b.tailscale.com ipv4: 144.202.67.195 ipv6: 2001:19f0:6401:eb5:5400:3ff:fe8d:6d9b - name: 9c regionid: 9 hostname: derp9c.tailscale.com ipv4: 155.138.243.219 ipv6: 2001:19f0:6401:fe7:5400:3ff:fe8d:6d9c` ```
adam closed this issue 2025-12-29 01:21:34 +01:00
Author
Owner

@kradalby commented on GitHub (Oct 25, 2021):

Hi, I'll investigate, but the derp file you have attached is redundant (and possibly outdated) with the URL you are using.

@kradalby commented on GitHub (Oct 25, 2021): Hi, I'll investigate, but the derp file you have attached is redundant (and possibly outdated) with the URL you are using.
Author
Owner

@kradalby commented on GitHub (Oct 25, 2021):

Hi, I cant seem to replicate this locally using the code on main:

With a file in same dir and relative path:

2021-10-25T18:06:33Z DBG Loading DERPMap from path func=GetDERPMap path=derp.yaml
2021-10-25T18:06:33Z DBG Loading DERPMap from path func=GetDERPMap url=https://controlplane.tailscale.com/derpmap/default
2021-10-25T18:06:33Z TRC DERPMap loaded derpMap={"Regions":{"1":{"Nodes":[{"HostName":"derp1.tailscale.com","IPv4":"159.89.225.99"...

With full path:

2021-10-25T18:06:57Z DBG Loading DERPMap from path func=GetDERPMap path=/Users/kradalby/git/headscale/derp.yaml
2021-10-25T18:06:57Z DBG Loading DERPMap from path func=GetDERPMap url=https://controlplane.tailscale.com/derpmap/default
2021-10-25T18:06:57Z TRC DERPMap loaded derpMap={"Regions":{"1":{"Nodes":[{"HostName":"derp1.tailscale.com","IPv4":"159.89.225.99"

With the derp.yaml in complete different path:

2021-10-25T18:09:51Z DBG Loading DERPMap from path func=GetDERPMap path=/tmp/derp.yaml
2021-10-25T18:09:51Z DBG Loading DERPMap from path func=GetDERPMap url=https://controlplane.tailscale.com/derpmap/default
2021-10-25T18:09:51Z TRC DERPMap loaded derpMap={"Regions":{"1":{"Nodes":[{"HostName":"derp1.tailscale.com","IPv4":"159.89.225.99"

Are you using the main branch build of headscale or are you using the latest release?

@kradalby commented on GitHub (Oct 25, 2021): Hi, I cant seem to replicate this locally using the code on main: With a file in same dir and relative path: ``` 2021-10-25T18:06:33Z DBG Loading DERPMap from path func=GetDERPMap path=derp.yaml 2021-10-25T18:06:33Z DBG Loading DERPMap from path func=GetDERPMap url=https://controlplane.tailscale.com/derpmap/default 2021-10-25T18:06:33Z TRC DERPMap loaded derpMap={"Regions":{"1":{"Nodes":[{"HostName":"derp1.tailscale.com","IPv4":"159.89.225.99"... ``` With full path: ``` 2021-10-25T18:06:57Z DBG Loading DERPMap from path func=GetDERPMap path=/Users/kradalby/git/headscale/derp.yaml 2021-10-25T18:06:57Z DBG Loading DERPMap from path func=GetDERPMap url=https://controlplane.tailscale.com/derpmap/default 2021-10-25T18:06:57Z TRC DERPMap loaded derpMap={"Regions":{"1":{"Nodes":[{"HostName":"derp1.tailscale.com","IPv4":"159.89.225.99" ``` With the derp.yaml in complete different path: ``` 2021-10-25T18:09:51Z DBG Loading DERPMap from path func=GetDERPMap path=/tmp/derp.yaml 2021-10-25T18:09:51Z DBG Loading DERPMap from path func=GetDERPMap url=https://controlplane.tailscale.com/derpmap/default 2021-10-25T18:09:51Z TRC DERPMap loaded derpMap={"Regions":{"1":{"Nodes":[{"HostName":"derp1.tailscale.com","IPv4":"159.89.225.99" ``` Are you using the main branch build of headscale or are you using the latest release?
Author
Owner

@a1ad commented on GitHub (Oct 25, 2021):

Latest release (v0.10.8)

When i try to register a client i get this error:
INF Client is starting up. Probably interested in a DERP map handler=PollNetMap

'''
[GIN] 2021/10/25 - 18:24:23 | 200 | 7.014446ms | 10.100.200.101 | POST "/machine/0f4703c14cee9bacd3c68aae15e96521a75d1e8e8046d111387a51ed1c523064/map"
2021-10-25T18:24:39Z INF Client is starting up. Probably interested in a DERP map handler=PollNetMap machine=40083352478
[GIN] 2021/10/25 - 18:24:39 | 200 | 12.601326ms | 10.100.200.101 | POST "/machine/0f4703c14cee9bacd3c68aae15e96521a75d1e8e8046d111387a51ed1c523064/map"
2021-10-25T18:24:48Z INF Client is starting up. Probably interested in a DERP map handler=PollNetMap machine=40083352478
[GIN] 2021/10/25 - 18:24:48 | 200 | 15.138665ms | 10.100.200.101 | POST "/machine/0f4703c14cee9bacd3c68aae15e96521a75d1e8e8046d111387a51ed1c523064/map"
'''

What derp file do i need to use?

@a1ad commented on GitHub (Oct 25, 2021): Latest release (v0.10.8) When i try to register a client i get this error: INF Client is starting up. Probably interested in a DERP map handler=PollNetMap ''' [GIN] 2021/10/25 - 18:24:23 | 200 | 7.014446ms | 10.100.200.101 | POST "/machine/0f4703c14cee9bacd3c68aae15e96521a75d1e8e8046d111387a51ed1c523064/map" 2021-10-25T18:24:39Z INF Client is starting up. Probably interested in a DERP map handler=PollNetMap machine=40083352478 [GIN] 2021/10/25 - 18:24:39 | 200 | 12.601326ms | 10.100.200.101 | POST "/machine/0f4703c14cee9bacd3c68aae15e96521a75d1e8e8046d111387a51ed1c523064/map" 2021-10-25T18:24:48Z INF Client is starting up. Probably interested in a DERP map handler=PollNetMap machine=40083352478 [GIN] 2021/10/25 - 18:24:48 | 200 | 15.138665ms | 10.100.200.101 | POST "/machine/0f4703c14cee9bacd3c68aae15e96521a75d1e8e8046d111387a51ed1c523064/map" ''' What derp file do i need to use?
Author
Owner

@kradalby commented on GitHub (Oct 25, 2021):

aha, that explains it, you must look at the example configuration that is tagged with the version:
https://github.com/juanfont/headscale/tree/v0.10.8

As we will evolve the configuration over time and there is new changes coming to derp that has not been released yet.

@kradalby commented on GitHub (Oct 25, 2021): aha, that explains it, you must look at the example configuration that is tagged with the version: https://github.com/juanfont/headscale/tree/v0.10.8 As we will evolve the configuration over time and there is new changes coming to `derp` that has not been released yet.
Author
Owner

@a1ad commented on GitHub (Oct 25, 2021):

Ah yes, was not clear to me. Thanks, now it's working like expected :-)

@a1ad commented on GitHub (Oct 25, 2021): Ah yes, was not clear to me. Thanks, now it's working like expected :-)
Author
Owner

@kradalby commented on GitHub (Oct 25, 2021):

I will add a note in the README :)

@kradalby commented on GitHub (Oct 25, 2021): I will add a note in the README :)
Author
Owner

@kradalby commented on GitHub (Oct 26, 2021):

Version 0.11.0 align the configuration on main with the new derp changes, so this should be a non-issue now as long as people update their configuration.

@kradalby commented on GitHub (Oct 26, 2021): Version 0.11.0 align the configuration on `main` with the new derp changes, so this should be a non-issue now as long as people update their configuration.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#68