Skip to content

tailscale is spamming my log with "derp-X does not know about peer" #14623

Open

Description

@colemickens

What is the issue?

Okay:

  1. I have no idea why tailscale is spamming my journal so constantly.
  2. I don't know why tailscale is constantly informing me about how it's removing these routes.
  3. I don't even know what these peers are because the identifier in the logs is NOT listed in tailscale status output.

Steps to reproduce

I have no idea.

Are there any recent changes that introduced the issue?

Again, no idea.

OS

Linux

OS version

nixos 6.12

Tailscale version

1.78.1

Other software

No response

Bug report

No response

Activity

  1. changed the title [-]tailscale is spamming my log wiht "derp-X doesnot know about peer"[/-] [+]tailscale is spamming my log wiht "derp-X does not know about peer"[/+] on Jan 14, 2025
  2. colemickens commented on Jan 14, 2025

    @colemickens
    Author
    Jan 13 22:16:09 zeph tailscaled[1668]: [unexpected] magicsock: derp-10 does not know about peer [0uI/W], removing route
    Jan 13 22:16:09 zeph tailscaled[1668]: [RATELIMIT] format("[unexpected] magicsock: derp-%d does not know about peer %s, removing route")
    Jan 13 22:16:16 zeph tailscaled[1668]: [RATELIMIT] format("[unexpected] magicsock: derp-%d does not know about peer %s, removing route") (1 dropped)
    Jan 13 22:16:16 zeph tailscaled[1668]: [unexpected] magicsock: derp-10 does not know about peer [0uI/W], removing route
    Jan 13 22:16:19 zeph tailscaled[1668]: [unexpected] magicsock: derp-13 does not know about peer [pAo7x], removing route
    Jan 13 22:16:19 zeph tailscaled[1668]: [RATELIMIT] format("[unexpected] magicsock: derp-%d does not know about peer %s, removing route")
    Jan 13 22:16:24 zeph tailscaled[1668]: [RATELIMIT] format("[unexpected] magicsock: derp-%d does not know about peer %s, removing route") (1 dropped)
    Jan 13 22:16:24 zeph tailscaled[1668]: [unexpected] magicsock: derp-13 does not know about peer [pAo7x], removing route
    Jan 13 22:16:25 zeph tailscaled[1668]: [unexpected] magicsock: derp-10 does not know about peer [0uI/W], removing route
    Jan 13 22:16:25 zeph tailscaled[1668]: [RATELIMIT] format("[unexpected] magicsock: derp-%d does not know about peer %s, removing route")
    

    over, and over, and over, and over, and over.

  3. colemickens commented on Jan 14, 2025

    @colemickens
    Author

    What even are these identifiers it is telling me about?

    EDIT: I'm kind of nervous, picking one of those identifiers, and running tailscale status -json | grep "id" shows that those partial identifiers don't even appear in my tailscale output.

  4. changed the title [-]tailscale is spamming my log wiht "derp-X does not know about peer"[/-] [+]tailscale is spamming my log with "derp-X does not know about peer"[/+] on Jan 14, 2025
  5. daniellandau commented on Feb 17, 2025

    @daniellandau

    They are ShortStrings, see #14683

  6. n2j3 commented on May 15, 2025

    @n2j3

    2025/05/15 19:29:30 [unexpected] magicsock: derp-4 does not know about peer [kekBf], removing route

    over and over, 22MB of logs over. Is this some sort of intrusion attempt?

    1.76.6
    tailscale commit: AlpineLinux
    go version: go1.23.9

  7. stephsmith0823 commented on Jun 1, 2025

    @stephsmith0823

    My log is full of these, it seems tailscaled logs every 5 seconds. Looking into this:

    There is currently no built-in way to fully suppress these Tailscale log messages. The best immediate solution is to filter them out when viewing logs. For a permanent fix, you will need to wait for Tailscale developers to address the issue in a future release.

    I don't see any mention of any attempt to fix this, which is alarming.

  8. NiklasRosenstein commented on Jun 4, 2025

    @NiklasRosenstein

    I have the same issue, and whenever it happens I can't connect to the node. See also #11565

    Though it does seem to recover sometimes

  9. Juniorsnet commented on Jun 4, 2025

    @Juniorsnet

    My log is full of these, it seems tailscaled logs every 5 seconds. Looking into this:

    There is currently no built-in way to fully suppress these Tailscale log messages. The best immediate solution is to filter them out when viewing logs. For a permanent fix, you will need to wait for Tailscale developers to address the issue in a future release.

    I don't see any mention of any attempt to fix this, which is alarming.

    I workaround doing a journald namespace "NoisyTS" for the tailscaled service.

    https://wiki.archlinux.org/title/Systemd/Journal#Per_unit_size_limit_by_a_journal_namespace

  10. colemickens commented on Sep 21, 2025

    @colemickens
    Author

    This is ridiculous. I bet tailscale spam is 90%+ of my journal. And again, these log lines including identifiers that don't map to any of my machines is pretty concerning.

    But I guess no one cares?

  11. NiklasRosenstein commented on Sep 21, 2025

    @NiklasRosenstein

    For me, these logs also correlated with connectivity issues that required me to restart tailscale on the node. I migrated to NetBird now instead because of this.

  12. zaheenadeep commented on Nov 9, 2025

    @zaheenadeep

    I was also having connectivity issues. Restarting the container fixed it for me as well.

  13. zaheenadeep commented on Nov 9, 2025

    @zaheenadeep

    This happened again to me right after I changed a nameserver under the DNS tab in the admin console. Restart fixed it again.

  14. ivanpuhachov commented on Dec 9, 2025

    @ivanpuhachov

    had this today, works fine after restart but concerning

    magicsock: derp-21 does not know about peer [m+yH7], removing route
    
    client -> backend close connection: close tcp X.X.X.X:X: endpoint not connected
    
  15. tiramisuflavor commented on Dec 9, 2025

    @tiramisuflavor

    This happens to me after another device [MBvBw] connects to the tailnet and starts using the log spamming host as a subnet router. After the device [MBvBw] is disconnected, the host keeps trying to find it again forever in loop and logging these things. I thought it would eventually give up, but not apparently.

    magicsock: derp-11 does not know about peer [MBvBw], removing route

    @ivanpuhachov @zaheenadeep In my case, restarting also works but it's because that host has never received a connection from another host yet (as a subnet router or exit node). So it makes sense that it won't try to find something it doesn't know exists.

  16. GoaLitiuM commented on Dec 14, 2025

    @GoaLitiuM

    These messages started to fill my journal logs around 1.5G of spam just from today alone. It looks like it's coming from a node which has not been online for several months, tailscale status for the node printed active; relay "hel"; offline, last seen 130d ago, tx 5148 rx 0 (not sure why this node is active even though it's offline?). The spam stopped after I expired the key of the node.

  17. SeeJayEmm commented on Dec 25, 2025

    @SeeJayEmm

    These messages started to fill my journal logs around 1.5G of spam just from today alone. It looks like it's coming from a node which has not been online for several months, tailscale status for the node printed active; relay "hel"; offline, last seen 130d ago, tx 5148 rx 0 (not sure why this node is active even though it's offline?). The spam stopped after I expired the key of the node.

    I'm seeing the exact same behavior.

    active; relay "nyc"; offline, last seen 41d ago, tx 849264 rx 0
    

    I have rebooted the system tailscale is running on several times in the last 41 days.

  18. FlorianHeigl commented on Mar 10, 2026

    @FlorianHeigl

    also have them, hard to tell if this is related to magicdns or something else
    i had tailscale running on the host OS and was setting a sidecar in a docer compose setup as well.
    I noticed DNS etc worked for a moment and then stopped working
    disabled tailscaled on the host, some issue oocurs

    ping/dns works again
    so it's multiple problems, connectivity loss and those failing/unmaintained DERP servers / server lists.

    since I use this for monitoring I'll keep an eye on the long-term stability. problematic issue in any case.

  19. FlorianHeigl commented on Mar 11, 2026

    @FlorianHeigl

    best thing NOW that seems possible is to override the entrypoint from "/usr/local/bin/cont…" to same 2>&1 | grep -v -E 'PATTERN' and then the identical regex as per the log suppression message

    tsgw-1     | 2026/03/11 00:04:07 [RATELIMIT] format("magicsock: derp-%d does not know about peer %s, removing route") (4 dropped)
    

    best thing LATER would be to change the RATELIMIT settings so it rate limits up to some 1000 of those (gotta get the real rate, and tune it so you still get at least one message + RATELIMIT per 30 or 60 mins or it'll be too misrepresentative.

  20. rspier commented on Jun 10, 2026

    @rspier
    Contributor

    While the log spam is annoying, a more significant issue is this triggers packets sent to the "offline" peer which, if it is a battery powered device, can cause it to wake up or keep the network alive, instead of sleeping. This has been causing significant battery drain on one of my phones.

  21. Davisonyeas commented on Jun 12, 2026

    @Davisonyeas

    Restart the tailscale daemon service using

    sudo systemctl restart tailscaled.service

  22. added theissue type on Jun 15, 2026
  23. alendev24 commented on Aug 23, 2026

    @alendev24

    One very important info you are missing here. It says derp-<some_random_number> ... according to the Tailscale documentation https://tailscale.com/docs/reference/connection-types it pretty much uses Designated Encrypted Relay Peer to establish connection, as per what has been written here, it also uses it as a backup route, so in any case you are not able to establish the direct communication which is primary way of connecting the nodes, you can switch back to the plan B which is exactly what you are seeing in your log ( this is happening automatically ). As for the route missing, maybe Tailscale switched servers due to various reasons (maintenance, or getting replaced) and this route does not exist anymore hence you are seeing that route is not available, or whatever.

    To answer also @rspier you can disable this behavior via policy, but expect the slow connection on long distance communication,

  24. ataferner commented on Sep 21, 2026

    @ataferner

    Same symptom on a FreeBSD/pfSense subnet router, 1.98.5: the loop runs at one attempt per 5 s per offline peer, indefinitely, with no traffic behind it

    Environment

    • tailscaled 1.98.5 (pfSense Plus 26.07 package tailscale-1.98.5_1, FreeBSD 16.0-CURRENT), userspace WireGuard
    • Node is a tagged subnet router and exit node (tag:gateway), key expiry disabled, one advertised route
    • Tailnet of five nodes: this router, a Linux laptop (tagged), an iPhone and an iPad (user-owned), and a Home Assistant OS node
    • Logs go to syslog and are collected centrally, which is how the volume below was measured

    Symptom

    For every peer that is offline, tailscaled logs this pair once every five seconds, for as long as the peer stays offline:

    wgengine: sending TSMP disco key advertisement to 100.x.y.z
    magicsock: derp-13 does not know about peer [3YMYq], removing route

    with [RATELIMIT] format("magicsock: derp-%d does not know about peer %s, removing route") interleaved. Volume over the last nine days: 35,000 to 45,000 lines per day, i.e. three offline peers at the time. A run started on 2026-09-13 at 17:00 local, the hour two phones joined the tailnet and began going online and offline through the day, and has not stopped since. An earlier run against a single offline iPad lasted about a day (23,757 lines) and ended on its own; another, against the laptop, was ended by restarting tailscaled. The restart is only a pause: the loop resumes the next time a peer goes offline.

    The peer names in the log are the offline peers

    The five-character names are the first five characters of the base64 node key, not the hex tailscale status prints. Mapping the tailnet's node keys: 3YMYq = the laptop, 8N4LF = the iPhone, YU0LX = the iPad. All three were offline while the lines were being written. The two online nodes never appear.

    Nothing is sending traffic to those peers

    • tcpdump -ni tailscale0 'host or host or host ' for 30 s: 0 packets.
    • tcpdump -ni 'dst net 100.64.0.0/10' for 30 s: 0 packets (3,782 frames seen by the filter).
    • No pf state to any of the three addresses.

    So the attempts originate inside tailscaled, not from forwarded or local traffic.

    tailscale status shows the offline peers as active with one-way byte counts

    100.76.34.108 aig tagged-devices linux active; relay "den"; offline, last seen 3d ago, tx 10260900 rx 0
    100.73.31.15 ipad a@ iOS offline, last seen 13m ago
    100.117.175.23 iphone a@ iOS active; relay "nyc"; offline, last seen 13m ago, tx 31356 rx 0

    10 MB transmitted to a peer that has been offline for three days, nothing received. The five-second cadence matches WireGuard's handshake retry interval, which suggests the engine keeps something queued for the peer, plausibly the TSMP disco key advertisement itself, and retries the handshake, each retry going out via DERP and being answered with "does not know about peer". Because the peer is genuinely offline, this can never succeed, and nothing appears to clear the queued send when control reports the peer offline.

    What I'd expect

    Once control reports a peer offline, the engine should stop advertising to it and drop the pending send, or at least back off well past five seconds. The DERP answer is correct; it is the client's retry that is unbounded.

    Happy to provide tailscale bugreport output or a debug log from the FreeBSD side if that helps.

  25. ziposoft-ac commented on Sep 22, 2026

    @ziposoft-ac

    I've been seeing this on Debian 13 as well. Anytime a peer device goes offline, the tailscaled service spams the logs.
    Workaround that quiets the log messages that works for me:
    #282 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions