0.16.2 gets stuck during shutdown (Win7) #13885

issue viaj3ro opened this issue on August 5, 2018
  1. viaj3ro commented at 10:25 PM on August 5, 2018: none

    My full archival 0.16.2 core node (64bit) always gets stuck during shutdown.

    I switched off port mapping via UPnP - now it shuts down fine after running for a short timespan but still gets hung up after running for a bit longer.

    Tested with and without my personal bitcoin.conf - same issue Tried listenonion=0 - didn't help.

    The longest I waited was a bit more than 24h - no success: https://pastebin.com/nrQsZz94

    Installed https://bitcoincore.org/bin/bitcoin-core-0.16.2/bitcoin-0.16.2-win64-setup.exe to C:\Program Files (SSD), chainstate is on C:\chainstate and data directory is on an external USB 2.0 HDD

    debug.log:

    2018-08-03 13:34:00 GUI: requestShutdown : Requesting shutdown 2018-08-03 13:34:00 GUI: shutdown : Running Shutdown in thread 2018-08-03 13:34:00 Interrupting HTTP server 2018-08-03 13:34:00 Interrupting HTTP RPC server 2018-08-03 13:34:00 Interrupting RPC 2018-08-03 13:34:00 tor: Thread interrupt 2018-08-03 13:34:00 Shutdown: In progress... 2018-08-03 13:34:00 Stopping HTTP RPC server 2018-08-03 13:34:00 Stopping RPC 2018-08-03 13:34:00 Stopping HTTP server 2018-08-03 13:34:00 Stopped HTTP server 2018-08-03 13:34:00 CDBEnv::Flush: Flush(false) 2018-08-03 13:34:00 CDBEnv::Flush: Flush(false) took 0ms 2018-08-03 13:34:00 torcontrol thread exit 2018-08-03 13:34:00 opencon thread exit 2018-08-03 13:34:00 addcon thread exit 2018-08-03 13:34:00 msghand thread exit 2018-08-03 13:34:00 net thread exit 2018-08-03 13:34:00 UPNP_DeletePortMapping() returned: 0 2018-08-03 13:34:00 upnp thread interrupt 2018-08-03 13:34:01 Flushed 48201 addresses to peers.dat 408ms 2018-08-03 13:34:01 disconnecting peer=1 2018-08-03 13:34:01 disconnecting peer=2 2018-08-03 13:34:01 disconnecting peer=3 2018-08-03 13:34:01 disconnecting peer=4 2018-08-03 13:34:01 disconnecting peer=5 2018-08-03 13:34:01 disconnecting peer=7 2018-08-03 13:34:01 disconnecting peer=12 2018-08-03 13:34:01 disconnecting peer=15 2018-08-03 13:34:01 disconnecting peer=27 2018-08-03 13:34:01 disconnecting peer=32 2018-08-03 13:34:01 disconnecting peer=36 2018-08-03 13:34:01 disconnecting peer=38 2018-08-03 13:34:01 disconnecting peer=55 2018-08-03 13:34:01 disconnecting peer=83 2018-08-03 13:34:01 disconnecting peer=200 2018-08-03 13:34:01 disconnecting peer=208 2018-08-03 13:34:01 disconnecting peer=245 2018-08-03 13:34:01 disconnecting peer=269 2018-08-03 13:34:01 disconnecting peer=396 2018-08-03 13:34:01 disconnecting peer=426 2018-08-03 13:34:01 disconnecting peer=427 2018-08-03 13:34:01 disconnecting peer=447 2018-08-03 13:49:09 Flushed 48201 addresses to peers.dat 10074ms 2018-08-03 14:04:09 Flushed 48201 addresses to peers.dat 518ms 2018-08-03 14:06:24 Potential stale tip detected, will try using extra outbound peer (last tip update: 2117 seconds ago) 2018-08-03 14:06:24 net: setting try another outbound peer=true 2018-08-03 14:16:54 Potential stale tip detected, will try using extra outbound peer (last tip update: 2747 seconds ago) 2018-08-03 14:16:54 net: setting try another outbound peer=true 2018-08-03 14:19:10 Flushed 48201 addresses to peers.dat 479ms 2018-08-03 14:27:25 Potential stale tip detected, will try using extra outbound peer (last tip update: 3378 seconds ago) 2018-08-03 14:27:25 net: setting try another outbound peer=true 2018-08-03 14:29:35

    when it shuts down fine, it looks like this: https://pastebin.com/5JFBMkjw log for a 24h waiting period: https://pastebin.com/nrQsZz94 log for a 20 min waiting period: https://pastebin.com/Pa38DTev

  2. fanquake added the label Windows on Aug 5, 2018
  3. MarcoFalke commented at 4:53 PM on August 6, 2018: member

    What command line options/Gui settings do you have set?

  4. viaj3ro commented at 12:13 AM on August 7, 2018: none

    I have the issue even with standard settings and no bitcoin.conf at all. Right now I'm using default GUI settings and this config:

    dbcache=3000 minimizetotray=1

    rpcuser=xxx rpcpassword=xxx rpcallowip=192.168.xxx.xxx rpcport=8332

  5. MarcoFalke commented at 12:44 PM on August 9, 2018: member

    If you feel comfortable using gdb, you might check which threads are running and what they are doing.

    Otherwise, you might want to try 0.17.0, which will be released in a couple of weeks and see if the issue was fixed in the meantime.

  6. viaj3ro commented at 7:14 PM on August 16, 2018: none

    I deleted my peers.dat and now everything works perfectly fine!

    seems like it got stuck disconnecting from a specific peer or something else was wrong with the peers.dat

  7. fanquake closed this on Nov 2, 2018

  8. MarcoFalke locked this on Sep 8, 2021
Contributors
Labels

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 03:14 UTC

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