Error running -testnet first time #2752

issue gavinandresen opened this issue on June 7, 2013
  1. gavinandresen commented at 10:34 PM on June 7, 2013: contributor

    Clean compile in a new virtual machine, run bitcoin-qt -testnet and I get:

    No such file or directory: "/home/gavin/.bitcoin/testnet3" Aborted (core dumped)

  2. laanwj commented at 11:18 PM on June 7, 2013: member

    Indeed:

    terminate called after throwing an instance of 'boost::filesystem3::filesystem_error'
      what():  boost::filesystem::create_directory: Bestand of map bestaat niet: "/home/s01/.bitcoin/testnet3"
    Afgebroken (geheugendump gemaakt)
    

    The problem is that if the parent directory (~/.bitcoin) doesn't yet exist, fs::create_directory will fail as it only creates a directory in an immediate parent directory. I've checked that using fs::create_directories in GetDataDir instead solves this.

  3. laanwj referenced this in commit 3e9c8bab54 on Jun 8, 2013
  4. laanwj closed this on Jun 9, 2013

  5. luke-jr referenced this in commit 186dec91be on Aug 16, 2013
  6. luke-jr referenced this in commit 56ee5823a0 on Aug 16, 2013
  7. laanwj referenced this in commit a0985c1acb on Nov 28, 2013
  8. wtogami referenced this in commit 7bc8d0d22a on Nov 29, 2013
  9. laanwj referenced this in commit 138705a173 on Dec 5, 2013
  10. laudney referenced this in commit fecb8148f3 on Mar 19, 2014
  11. destenson referenced this in commit cc3b5889f0 on Jun 26, 2016
  12. DrahtBot 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:16 UTC

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