boost::thread_resource_error: Resource temporarily unavailable #7554

issue atweiden opened this issue on February 18, 2016
  1. atweiden commented at 4:19 PM on February 18, 2016: none

    On Arch x86_64, with boost v1.60.0, bitcoind v0.12.0 stable release crashes immediately on startup:

    $ systemctl status bitcoin -l
    ● bitcoin.service - Bitcoin Daemon
       Loaded: loaded (/usr/lib/systemd/system/bitcoin.service; disabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Thu 2016-02-18 08:00:34 PST; 21s ago
      Process: 4870 ExecStop=/usr/bin/bitcoind stop (code=exited, status=1/FAILURE)
      Process: 4355 ExecStart=/usr/bin/bitcoind -daemon=0 -conf=/etc/bitcoin/bitcoin.conf -datadir=/srv/bitcoin -pid=/run/bitcoind.pid (code=exited, status=1/FAILURE)
     Main PID: 4355 (code=exited, status=1/FAILURE)
    
    Feb 18 08:00:34 luksiso systemd[1]: Started Bitcoin Daemon.
    Feb 18 08:00:34 luksiso bitcoind[4355]: ************************
    Feb 18 08:00:34 luksiso bitcoind[4355]: EXCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_21thread_resource_errorEEEEE
    Feb 18 08:00:34 luksiso bitcoind[4355]: boost::thread_resource_error: Resource temporarily unavailable
    Feb 18 08:00:34 luksiso bitcoind[4355]: bitcoin in AppInit()
    Feb 18 08:00:34 luksiso systemd[1]: bitcoin.service: Main process exited, code=exited, status=1/FAILURE
    Feb 18 08:00:34 luksiso systemd[1]: bitcoin.service: Control process exited, code=exited status=1
    Feb 18 08:00:34 luksiso systemd[1]: bitcoin.service: Unit entered failed state.
    Feb 18 08:00:34 luksiso systemd[1]: bitcoin.service: Failed with result 'exit-code'.
    

    This also happens when using the latest on master branch https://github.com/bitcoin/bitcoin/commit/8b70a64d62c6e64288762d062414cc979f880c54.

  2. paveljanik commented at 4:22 PM on February 18, 2016: contributor

    Please show us your config file - any *notify, rpcthreads set?

  3. paveljanik commented at 4:26 PM on February 18, 2016: contributor

    See #6593

  4. atweiden commented at 4:28 PM on February 18, 2016: none

    #6593 solves it

  5. atweiden closed this on Feb 18, 2016

  6. paveljanik commented at 4:29 PM on February 18, 2016: contributor

    What was the problem? Just curious...

  7. atweiden commented at 4:29 PM on February 18, 2016: none

    rpcthreads=1000 in bitcoin.conf

  8. paveljanik commented at 4:29 PM on February 18, 2016: contributor

    9 minutes from opening to closing issue. This is Support ;-)

  9. paveljanik commented at 4:30 PM on February 18, 2016: contributor

    We should probably issue some warning in such cases...

  10. laanwj commented at 4:32 PM on February 18, 2016: member

    Just out of interest, is there some guide that recommends rpcthreads=1000?

  11. atweiden commented at 4:33 PM on February 18, 2016: none

    I think it's from Counterparty.

    Any rule of thumb for choosing rpcthreads value?

  12. paveljanik commented at 4:33 PM on February 18, 2016: contributor
  13. laanwj commented at 4:37 PM on February 18, 2016: member

    @atweiden rule of thumb should be "keep it at the default of 4". In some exceptional cases you could double or quadruple it. But 1000 is absurd for any kind of thread count.

  14. MarcoFalke locked this on Sep 8, 2021

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-13 18:15 UTC

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