Crash on windows due to .ldb in use by another process #8250

issue laanwj openend this issue on June 23, 2016
  1. laanwj commented at 4:41 pm on June 23, 2016: member

    Debug log:

     02016-06-23 16:27:58 UpdateTip: new best=00000000000000000454d56eda93480a37486215b3bd9c3442dc6feb1fe1ffa2 height=361423 version=0x00000003 log2_work=82.951749 tx=72497208 date='2015-06-18 05:03:57' progress=0.659977 cache=63.6MiB(29260tx)
     12016-06-23 16:28:09 IO error: C:\Users\Acer\AppData\Roaming\Bitcoin\chainstate\324109.ldb: Het proces heeft geen toegang tot het bestand omdat het door een ander
     2proces wordt gebruikt.
     3
     42016-06-23 16:28:09 *** System error while flushing: Database I/O error
     52016-06-23 16:33:32 ERROR: ProcessNewBlock: ActivateBestChain failed
     62016-06-23 16:33:32 Timeout downloading block 0000000000000000008edfccbc3b0b02b85f3f4a6cc9fab3de17160a77179fa1 from peer=1, disconnecting
     72016-06-23 16:33:32 receive version message: /Satoshi:0.11.2/: version 70002, blocks=417656, us=213.46.222.31:51459, peer=10
     82016-06-23 16:33:32 tor: Thread interrupt
     92016-06-23 16:33:32 torcontrol thread exit
    102016-06-23 16:33:32 net thread interrupt
    112016-06-23 16:33:32 opencon thread interrupt
    122016-06-23 16:33:32 addcon thread interrupt
    132016-06-23 16:33:32 scheduler thread interrupt
    142016-06-23 16:33:32 msghand thread interrupt
    152016-06-23 16:33:32 Shutdown: In progress...
    162016-06-23 16:33:32 StopNode()
    172016-06-23 16:33:33 IO error: C:\Users\Acer\AppData\Roaming\Bitcoin\chainstate\324109.ldb: Het proces heeft geen toegang tot het bestand omdat het door een ander
    18proces wordt gebruikt.
    19
    202016-06-23 16:33:33 *** System error while flushing: Database I/O error
    212016-06-23 16:33:36 Shutdown: done
    

    “Het proces heeft geen toegang tot het bestand omdat het door een ander proces wordt gebruikt.” is Dutch for “The process cannot access the file because it is being used by another process.” (code 32, ERROR_SHARING_VIOLATION). I don’t know what could be accessing the file though. Possibly a virus scanner/antimalware scanner, although only the built-in ones are installed. It doesn’t happen consistently.

    After restarting, the sync simply continues, there seems to be no database corruption.

  2. laanwj added the label Windows on Jun 23, 2016
  3. laanwj commented at 5:02 pm on June 23, 2016: member

    Looks similar to this issue on the bitcointalk forum: https://bitcointalk.org/index.php?topic=1247153.0 In that case it was Windows Defender that was the problem, which is the windows built-in virus/malware scanner. So it could well be the same problem.

    I wonder if it is possible to tell Windows Defender to leave this directory alone, or alternatively whether we should get leveldb to open the files non-exclusively.

  4. laanwj commented at 3:44 pm on November 30, 2017: member
    This was fixed, leveldb no longer opens files exclusively.
  5. laanwj closed this on Nov 30, 2017

  6. MarcoFalke locked this on Sep 8, 2021


laanwj

Labels
Windows


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: 2025-01-22 03:12 UTC

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