log: frequent pcp: Mapping failed with result NOT_AUTHORIZED (code 2) logs as net:warning #34114

issue 0xB10C openend this issue on December 19, 2025
  1. 0xB10C commented at 11:16 am on December 19, 2025: contributor

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    On my node at home (not a monitoring node), I’m seeing three pcp: Mapping failed with result NOT_AUTHORIZED (code 2) logs every five minutes logged as net:warnings. I think that’s too frequent.

     0...
     12025-12-19T10:32:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
     22025-12-19T10:32:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
     32025-12-19T10:32:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
     42025-12-19T10:37:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
     52025-12-19T10:37:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
     62025-12-19T10:37:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
     72025-12-19T10:42:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
     82025-12-19T10:42:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
     92025-12-19T10:42:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    102025-12-19T10:47:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    112025-12-19T10:47:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    122025-12-19T10:47:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    132025-12-19T10:52:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    142025-12-19T10:52:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    152025-12-19T10:52:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    162025-12-19T10:57:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    172025-12-19T10:57:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    182025-12-19T10:57:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    192025-12-19T11:00:54Z Flushed fee estimates to fee_estimates.dat.
    202025-12-19T11:02:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    212025-12-19T11:02:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    222025-12-19T11:02:26Z [net:warning] pcp: Mapping failed with result NOT_AUTHORIZED (code 2)
    23...
    

    Expected behaviour

    Fewer of the pcp warnings.

    Steps to reproduce

    Run a node behind a router that returns NOT_AUTHORIZED for PCP (?)

    Relevant log output

    No response

    How did you obtain Bitcoin Core

    Package manager

    What version of Bitcoin Core are you using?

    v30.0 (via nixpkgs)

    Operating system and version

    NixOS

    Machine specifications

    Machine is behind a home internet router with PCP disabled by default. I’m running the node with txindex=1, addnode, and otherwise default configuration.

  2. 0xB10C commented at 11:20 am on December 19, 2025: contributor

    My understanding is that this is a different log message from #33301 and https://github.com/bitcoinknots/bitcoin/issues/184. However, I haven’t checked if #33311 fixed it too.

    edit: It seems related, but is a different log message.

    https://github.com/bitcoin/bitcoin/blob/516ae5ede44a8a6abc59e90f9d89913e254524f4/src/common/pcp.cpp#L511

  3. 0xB10C renamed this:
    bug: log: frequent `pcp: Mapping failed with result NOT_AUTHORIZED (code 2)` logs as `net:warning`
    log: frequent `pcp: Mapping failed with result NOT_AUTHORIZED (code 2)` logs as `net:warning`
    on Dec 19, 2025
  4. fanquake commented at 3:25 pm on December 19, 2025: member


0xB10C fanquake


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-01-07 03:13 UTC

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