bitcoind: “FileCommit: fcntl F_FULLFSYNC failed” on MacOS Ventura #26650

issue asylejmani openend this issue on December 6, 2022
  1. asylejmani commented at 9:17 pm on December 6, 2022: none

    Running bitocind in newest MacOS Ventura crashes randomly, but not on previous MacOS versions. I can confirm it works on my other MBP (Monterey) as I managed to download the whole chain without any issues.

    Expected behavior To keep syncing blocks

    Actual behavior Fails at random blocks for Ventura.

    To reproduce Try syncing the chain either via bitcoin gui or bitcoin cli on MacOS Ventura!

    System information Machine: Apple MBP M1 16GB MacOS Ventura 13.0.1 Version: 22, 23 and 24 (downloaded from the website) Samsung External T7 SSD (I can confirm the device works fine as I downloaded the whole chain in it with the other MBP)

     02022-12-06T21:04:05Z FileCommit: fcntl F_FULLFSYNC failed: 25
     12022-12-06T21:04:05Z ERROR: Flush: failed to commit file 3302
     22022-12-06T21:04:05Z *** Flushing block file to disk failed. This is likely the result of an I/O error.
     32022-12-06T21:04:05Z Error: A fatal internal error occurred, see debug.log for details
     42022-12-06T21:04:05Z tor: Thread interrupt
     52022-12-06T21:04:05Z Shutdown: In progress...
     62022-12-06T21:04:05Z torcontrol thread exit
     72022-12-06T21:04:05Z opencon thread exit
     82022-12-06T21:04:05Z addcon thread exit
     92022-12-06T21:04:05Z net thread exit
    102022-12-06T21:04:06Z UpdateTip: new best=00000000000000000003029c5ff69ac0441d3ca181626f9b895493af4a13bc40 height=765911 version=0x236ca000 log2_work=93.878244 tx=785535847 date='2022-12-04T22:24:48Z' progress=0.999375 cache=84.3MiB(631479txo)
    112022-12-06T21:04:06Z msghand thread exit
    122022-12-06T21:04:06Z FileCommit: fcntl F_FULLFSYNC failed: 25
    132022-12-06T21:04:06Z ERROR: SerializeFileDB: Failed to flush file /Volumes/Bitcoin/peers.adeb
    142022-12-06T21:04:06Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat started
    152022-12-06T21:04:06Z FileCommit: fcntl F_FULLFSYNC failed: 25
    162022-12-06T21:04:06Z ERROR: SerializeFileDB: Failed to flush file /Volumes/Bitcoin/anchors.256c
    172022-12-06T21:04:06Z DumpAnchors: Flush 2 outbound block-relay-only peer addresses to anchors.dat completed (0.00s)
    182022-12-06T21:04:06Z scheduler thread exit
    192022-12-06T21:04:06Z Writing 0 unbroadcast transactions to disk.
    202022-12-06T21:04:06Z FileCommit: fcntl F_FULLFSYNC failed: 25
    212022-12-06T21:04:06Z Failed to dump mempool: FileCommit failed. Continuing anyway.
    222022-12-06T21:04:06Z FileCommit: fcntl F_FULLFSYNC failed: 25
    232022-12-06T21:04:06Z ERROR: Flush: failed to commit file 3303
    242022-12-06T21:04:06Z *** Flushing block file to disk failed. This is likely the result of an I/O error.
    252022-12-06T21:04:06Z Error: A fatal internal error occurred, see debug.log for details
    262022-12-06T21:04:06Z FileCommit: fcntl F_FULLFSYNC failed: 25
    272022-12-06T21:04:06Z ERROR: Flush: failed to commit file 3303
    282022-12-06T21:04:06Z *** Flushing undo file to disk failed. This is likely the result of an I/O error.
    292022-12-06T21:04:06Z Error: A fatal internal error occurred, see debug.log for details
    302022-12-06T21:04:07Z FileCommit: fcntl F_FULLFSYNC failed: 25
    312022-12-06T21:04:07Z ERROR: Flush: failed to commit file 3303
    322022-12-06T21:04:07Z *** Flushing block file to disk failed. This is likely the result of an I/O error.
    332022-12-06T21:04:07Z Error: A fatal internal error occurred, see debug.log for details
    342022-12-06T21:04:07Z FileCommit: fcntl F_FULLFSYNC failed: 25
    352022-12-06T21:04:07Z ERROR: Flush: failed to commit file 3303
    362022-12-06T21:04:07Z *** Flushing undo file to disk failed. This is likely the result of an I/O error.
    372022-12-06T21:04:07Z Error: A fatal internal error occurred, see debug.log for details
    382022-12-06T21:04:07Z Shutdown: done```
    
  2. asylejmani added the label Bug on Dec 6, 2022
  3. fanquake removed the label Bug on Dec 6, 2022
  4. fanquake commented at 9:21 pm on December 6, 2022: member

    Thanks. As far as we are aware, this is a bug in macos Ventura, which has been confirmed as fixed in the next release (13.1).

    Duplicate of #26455.

  5. fanquake added the label macOS on Dec 6, 2022
  6. fanquake closed this on Dec 6, 2022

  7. asylejmani commented at 9:25 pm on December 6, 2022: none
    Thanks for the prompt response @fanquake. Wasn’t aware of that issue (I tried searching but I used F_FULLFSYNC 🤦)
  8. fanquake locked this on Dec 7, 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: 2024-11-21 09:12 UTC

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