Peer is still banned, allthough ban endtime has been reached #11612

issue ghost opened this issue on November 5, 2017
  1. ghost commented at 4:59 PM on November 5, 2017: none

    Peer is still banned, allthough ban endtime has been reached

    Here the log line of the banned peer:

    2017-11-04 16:12:03 Misbehaving: 212.203.47.xxx:61681 peer=56085 (0 -> 100) BAN THRESHOLD EXCEEDED

    In the debug connection window, the peer shows up as banned, with the ban endtime of 2017-11-05 17:12:03 CET, see screenshot (marked blue peer).

    Then today, 2017-11-05 around 10 o clock CET, I stopped bitcoind 0.15.0.1, replaced the binaries with 0.15.1rc1 and started bitcoind again.

    Now, as the time of the screenshot is 17:40 CET, the ban endtime had been reached, but the peer does still show up as banned.

    Edit: Situation unchanged at 20:46 CET.

    Expected behaviour

    Peer disappears from the "Banned peers" list, when ban endtime has been reached.

    Actual behaviour

    Peer does not disappear from the "Banned peers" list, allthough ban endtime has been reached and exceeded.

    Screenshots.

    bildschirmfoto

    What version of bitcoin-core are you using?

    0.15.0.1 / 0.15.1rc1

    Machine specs:

    Linux amd64

  2. fanquake added the label P2P on Nov 5, 2017
  3. ghost commented at 9:19 PM on November 5, 2017: none

    If it should be technically possible, I would suggest to add the endtime of the ban to the according debug.log ban message, e.g.

    YYYY-MM-DD HH:MM:SS Misbehaving: 1.2.3.4:12345 peer=1234 (0 -> 100) BAN THRESHOLD EXCEEDED. Peer banned until YYYY-MM-DD HH:MM:SS

  4. jonasschnelli commented at 2:25 AM on November 6, 2017: contributor

    CConnman::DumpData() is called every 15 mins which is the only call that can sweep (clean) the ban-list (expect of an active ban/unban). But your offset looks like you have a delta of 28 minutes.... The problem is that the periodic sweep call does not update the UI. Your peer was probably unbanned already (the UI was not up to date). Working on a fix...

  5. TheBlueMatt commented at 2:27 AM on November 6, 2017: member

    Does #11457 change the behavior here? (@theuni).

    On November 5, 2017 9:25:15 PM EST, Jonas Schnelli notifications@github.com wrote:

    CConnman::DumpData() is called every 15 mins which is the only call that can sweep (clean) the ban-list (expect of an active ban/unban). But your offset looks like you have a delta of 28 minutes.... The problem is that the periodic sweep call does not update the UI. Your peer was probably unbanned already (the UI was not up to date). Working on a fix...

    -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/bitcoin/bitcoin/issues/11612#issuecomment-342030008

  6. jonasschnelli commented at 2:34 AM on November 6, 2017: contributor

    I don't think it's fixed in #11457 because the missing signal call in SweepBanned() is also missing there...

  7. ghost commented at 4:43 AM on November 6, 2017: none

    I can confirm, that while both peers still show up as banned as the screenshot shows, the output of the rpc call listbanned is [], so I guess there is actually no banned peer.

    Your peer was probably unbanned already (the UI was not up to date).

    BTW what about logging a ban release in the debug.log? Like Peer x released from ban. I did not find a message like this for the formerly banned IP, only the ban itself ("Threshold exceeded") and then some lines connection from <banned IP:port> dropped (banned).

  8. theuni commented at 7:02 PM on November 7, 2017: member

    Yes, I don't think #11457 changes this behavior (it's intended to not change any behavior, really). @wodry SweepBanned() does log something like that, so you should be able to see this once the bug is fixed.

  9. Victorsueca commented at 10:42 AM on November 9, 2017: none

    This has happened to me too, the listbanned RPC shows an empty list, which suggest that the issue is within the GUI. Restarting bitcoin core or using Right click > Unban on any node on the GUI seem to refresh the list and fix it.

  10. laanwj closed this on Dec 15, 2017

  11. laanwj referenced this in commit 8585bb8f05 on Dec 15, 2017
  12. PastaPastaPasta referenced this in commit 3526ef9fda on Jan 17, 2020
  13. PastaPastaPasta referenced this in commit b117c2f418 on Jan 22, 2020
  14. PastaPastaPasta referenced this in commit 127fef465c on Jan 22, 2020
  15. PastaPastaPasta referenced this in commit e2ba114f87 on Jan 29, 2020
  16. PastaPastaPasta referenced this in commit a648022eaf on Jan 29, 2020
  17. PastaPastaPasta referenced this in commit e1cd0f2a85 on Jan 29, 2020
  18. PastaPastaPasta referenced this in commit b9e3ae689a on Jan 31, 2020
  19. ckti referenced this in commit f79f3d9b99 on Mar 28, 2021
  20. gades referenced this in commit dac710680f on Jun 25, 2021
  21. MarcoFalke locked this on Sep 8, 2021
  22. gades referenced this in commit 1500a64838 on Feb 9, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me