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
{{ message }}
Repository navigation
tailscale is spamming my log with "derp-X does not know about peer" #14623
I have no idea why tailscale is spamming my journal so constantly.
I don't know why tailscale is constantly informing me about how it's removing these routes.
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
Reacted by Spencer Shepard, Nontas Rontogiannis, Kai Norman Clasen, Stephanie, Matthew Leather, Pavel Skipenes, Tomas, Zachary Weiss, Stefan Fisk, Daniel Senff and 19 more
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
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")
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.
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
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.
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.
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.
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.
Reacted by Zaheen Ahmed Deep, Florian Heigl and SrGesus
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.
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.
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.
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.
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.
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.
Reacted by Tiramisu, Lucki, Michael and Petr Rajtslegr
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,
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
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.
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)
Activity
[-]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"[/+]colemickens commentedon Jan 14, 2025
over, and over, and over, and over, and over.
colemickens commentedon Jan 14, 2025
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.[-]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"[/+]daniellandau commentedon Feb 17, 2025
They are ShortStrings, see #14683
n2j3 commentedon May 15, 2025
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
stephsmith0823 commentedon Jun 1, 2025
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.
NiklasRosenstein commentedon Jun 4, 2025
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
Juniorsnet commentedon Jun 4, 2025
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
colemickens commentedon Sep 21, 2025
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?
NiklasRosenstein commentedon Sep 21, 2025
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.
zaheenadeep commentedon Nov 9, 2025
I was also having connectivity issues. Restarting the container fixed it for me as well.
zaheenadeep commentedon Nov 9, 2025
This happened again to me right after I changed a nameserver under the DNS tab in the admin console. Restart fixed it again.
ivanpuhachov commentedon Dec 9, 2025
had this today, works fine after restart but concerning
tiramisuflavor commentedon Dec 9, 2025
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.
GoaLitiuM commentedon Dec 14, 2025
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 statusfor the node printedactive; 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.SeeJayEmm commentedon Dec 25, 2025
I'm seeing the exact same behavior.
I have rebooted the system tailscale is running on several times in the last 41 days.
FlorianHeigl commentedon Mar 10, 2026
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.
FlorianHeigl commentedon Mar 11, 2026
best thing NOW that seems possible is to override the entrypoint from
"/usr/local/bin/cont…"to same2>&1 | grep -v -E 'PATTERN'and then the identical regex as per the log suppression messagebest 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.
rspier commentedon Jun 10, 2026
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.
Davisonyeas commentedon Jun 12, 2026
Restart the tailscale daemon service using
sudo systemctl restart tailscaled.service
alendev24 commentedon Aug 23, 2026
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,
ataferner commentedon Sep 21, 2026
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
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
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.
ziposoft-ac commentedon Sep 22, 2026
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)