-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message "IPv4 DHT announce failed" flooding syslog #564
Comments
This gets more puzzling to me: I disabled the firewall ( |
Still investigating ... I've just built from the 2.93 tarball, and the |
Still investigating ... I observed that, in spite of diff --git a/libtransmission/tr-dht.c b/libtransmission/tr-dht.c
index e33aceeb7..c4d6e9940 100644
--- a/libtransmission/tr-dht.c
+++ b/libtransmission/tr-dht.c
@@ -734,7 +734,7 @@ static int tr_dhtAnnounce(tr_torrent* tor, int af, bool announce)
}
else
{
- tr_logAddTorErr(tor, "%s DHT announce failed (%s, %d nodes): %s", af == AF_INET6 ? "IPv6" : "IPv4",
+ tr_logAddTorDbg(tor, "%s DHT announce failed (%s, %d nodes): %s", af == AF_INET6 ? "IPv6" : "IPv4",
tr_dhtPrintableStatus(status), numnodes, tr_strerror(errno));
}
} So, summarizing my final doubts:
|
@marcelpaulo Yes, there is a bug here. dht_search This schedules a search for information about the info-hash specified in --- J:/T1/DHT-implied-port-fix-020818/work/dht.c.024.c Mon May 18 14:40:12 2015
+++ J:/T1/DHT-implied-port-fix-020818/work/dht.c.025.c Fri Feb 9 13:44:36 2018
@@ -1239,6 +1346,8 @@
sr = sr->next;
}
+ int sr_duplicate = sr && !sr->done;
+
if(sr) {
/* We're reusing data from an old search. Reusing the same tid
means that we can merge replies for both searches. */
@@ -1288,7 +1397,11 @@
search_step(sr, callback, closure);
search_time = now.tv_sec;
- return 1;
+ if(sr_duplicate) {
+ return 0;
+ } else {
+ return 1;
+ }
}
|
Same problem here with 3.00 (bb6b5a0) |
I got this message just because I started to use firejail. I fixed it by adding packet to the list of allowed protocol in a
So to the ubuntu users, that might be some apparmor issue ? |
Per analysis by cfpp2p (transmission#564 (comment)), a duplicate search is not an error.
This comment was marked as duplicate.
This comment was marked as duplicate.
IT doesn't seem fixed to me. Transmission spams away and others like The fact that I get this even with "Success" description points to the fact that Keep in mind that even my state is EDIT: I see the commit has been merged in February, it just doesn't seem to exist in a released version yet |
Half a year later, I still see this spammed into logs; so still no release? |
|
transmission-daemon V 3.00-1 on Raspberry PI OS 64 (Linux raspberrypi 6.1.21-v8+ # 1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux). I was also seeing a lot of those messages watching the output of I was thinking "maybe the default port number is hard-coded in the source code in a place where the actual setting should be used instead", but I've had no success searching in the code for such a bug. I've noticed (netblue30/firejail#3636) that somebody has been seeing those error messages after changing something related with firejail. |
DHT-related errors popped up again occasionally, sometimes flooding output of I've disabled DHT in transmission-daemon (through the GUI, Tools | Transmission options | Network | Enable DHT, unmarked the checkbox). |
If you want a more surgical way of dealing with the logspam, you can add the following lines to the [Service] section of your transmission daemon .service unit:
|
We need to try harder. |
I've just built transmission from source (96926a8) on Xubuntu 17.10, and whenever I add a new torrent, these messages flood the syslog, even though the torrent seems to download and upload normally:
I had previously installed the transmission-daemon package from Ubuntu, which is currently at version 2.92-2ubuntu3.1 and these messages weren't written to the syslog.
I removed file ~/.config/transmission-daemon/dht.dat thinking that perhaps it had a different format in version 2.92-2ubuntu3.1 and it might be causing these messages, but it had no effect: the messages kept on flooding the syslog.
This is how I built transmission:
I then created /etc/systemd/system/transmission-daemon.service with this:
and started the daemon:
Here's my ~/.config/transmission-daemon/settings.json:
My Internet provider uses CGNAT, so it's impossible to forward any ports for IPv4 traffic. Here's my firewall config:
I'm at a loss here. Version 2.92-2ubuntu3.1 didn't flood syslog with these messages, but 96926a8 does.
The text was updated successfully, but these errors were encountered: