electrum icon indicating copy to clipboard operation
electrum copied to clipboard

FileNotFoundError: Cannot find headers file but headers_dir is there. Should be at /home/vivek/.electrum/blockchain_headers

Open TARS-bot opened this issue 7 years ago • 1 comments

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

  File "/home/vivek/Documents/Bitcoin/electrum/electrum/util.py", line 864, in run_with_except_hook
    run_original(*args2, **kwargs2)
  File "/home/vivek/Documents/Bitcoin/electrum/electrum/network.py", line 1082, in run
    self.wait_on_sockets()
  File "/home/vivek/Documents/Bitcoin/electrum/electrum/network.py", line 1064, in wait_on_sockets
    self.process_responses(interface)
  File "/home/vivek/Documents/Bitcoin/electrum/electrum/network.py", line 719, in process_responses
    self.process_response(interface, response, callbacks)
  File "/home/vivek/Documents/Bitcoin/electrum/electrum/network.py", line 659, in process_response
    self.on_get_header(interface, response)
  File "/home/vivek/Documents/Bitcoin/electrum/electrum/network.py", line 911, in on_get_header
    chain = blockchain.check_header(header)
  File "/home/vivek/Documents/Bitcoin/electrum/electrum/blockchain.py", line 96, in check_header
    if b.check_header(header):
  File "/home/vivek/Documents/Bitcoin/electrum/electrum/blockchain.py", line 142, in check_header
    return header_hash == self.get_hash(height)
  File "/home/vivek/Documents/Bitcoin/electrum/electrum/blockchain.py", line 296, in get_hash
    return hash_header(self.read_header(height))
  File "/home/vivek/Documents/Bitcoin/electrum/electrum/blockchain.py", line 275, in read_header
    self.assert_headers_file_available(name)
  File "/home/vivek/Documents/Bitcoin/electrum/electrum/blockchain.py", line 241, in assert_headers_file_available
    raise FileNotFoundError('Cannot find headers file but headers_dir is there. Should be at {}'.format(path))

FileNotFoundError: Cannot find headers file but headers_dir is there. Should be at /home/vivek/.electrum/blockchain_headers

Reporter

This issue was reported by 109 user(s):

Electrum Version Python Version Operating System Wallet Type Locale Stack
3.2.2-95-gf64062b6 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] Linux-4.15.0-29-generic-x86_64-with-Ubuntu-18.04-bionic standard en_IN
3.2.2 Windows-10-10.0.14393 standard en_US
3.2.2 Windows-10-10.0.14393 standard en_US
3.2.2 Windows-10-10.0.16299 standard en_US
3.2.2 Windows-10-10.0.14393 standard en_US
3.2.2 Windows-10-10.0.14393 standard en_US
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard en_US
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 imported en_US
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard en_GB
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard en_US
3.2.3 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] Linux-4.15.0-32-generic-x86_64-with-LinuxMint-18.2-sonya imported en_PH
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard de_DE
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17763 standard de_DE
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17763 standard de_DE
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17763 standard de_DE
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard en_US
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard en_US
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard nl_NL
3.2.2 Windows-10-10.0.14393 standard en_US
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard en_US
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard sv_SE
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard sv_SE
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard de_DE
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17763 standard en_DE
3.2.3 3.6.4 (default, Feb 28 2018, 03:24:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Darwin-18.2.0-x86_64-i386-64bit 2fa ?
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard ru_RU
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard ru_UA
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard ru_UA
3.2.2 Windows-10-10.0.14393 standard en_US
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard en_US
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.17134 standard en_US
3.2.3 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 02:47:15) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 2fa ru_RU
3.2.3 3.6.4 (default, Feb 28 2018, 03:24:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Darwin-18.2.0-x86_64-i386-64bit imported ?
3.2.3 3.6.4 (default, Feb 28 2018, 03:24:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Darwin-18.2.0-x86_64-i386-64bit standard ?
3.2.2 Windows-10-10.0.14393 standard en_US
3.3.4 3.6.4 (default, Feb 28 2018, 03:24:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Darwin-18.2.0-x86_64-i386-64bit standard ?
3.3.4 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard it_IT
3.3.4 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763-SP0 standard en_US
3.3.4 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763-SP0 standard en_US
3.3.4 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard de_DE
3.3.6 3.6.8 (default, Jan 1 2019, 01:01:01) [GCC 4.8.4] Linux-4.19.0-5-amd64-x86_64-with-debian-9.9 standard en_US
3.2.2 Windows-8.1-6.3.9600-SP0 standard de_DE
3.2.2 Windows-8.1-6.3.9600-SP0 standard de_DE
3.3.4 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763 standard en_GB
3.3.7 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17134-SP0 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763 standard de_CH
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763 standard de_CH
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763 standard de_CH
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763 standard de_CH
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763 standard de_CH
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.17763 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362 standard de_DE
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362 standard de_DE
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
3.3.8 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] Windows-7-6.1.7601-SP1 standard ru_RU
3.3.8 3.6.8 (default, Jun 28 2018, 19:01:02) [GCC 4.8.4] Linux-5.4.0-4-amd64-x86_64-with-debian-10.3 standard en_US
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.16299-SP0 standard fr_FR
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard de_DE
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard de_DE
4.0.3 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-7-6.1.7601-SP1 imported tr_TR
4.0.2 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 09:44:33) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard en_US
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.18362-SP0 2fa ro_RO
4.1.2 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.18362-SP0 standard de_DE
4.1.2 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-8-6.2.9200-SP0 standard en_US
4.1.2 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.21390-SP0 standard ru_RU
4.0.9 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:01:55) [MSC v.1900 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard en_US
4.1.4 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 2fa en_US
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 imported,standard en_US
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard cs_CZ
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard en_US
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard de_DE
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard en_NZ
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard ru_RU
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.22000-SP0 standard ca_ES
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard sv_SE
4.2.0 3.9.10 (tags/v3.9.10:f2f3f53, Jan 17 2022, 15:01:48) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard ru_RU
3.2.3 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] Linux-5.10.17-v7l+-armv7l-with-debian-10.9 standard en_US
4.2.1 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-2012ServerR2-6.3.9600-SP0 standard ru_RU
4.2.1 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 imported,standard ru_RU
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.17763-SP0 standard de_DE
4.3.1 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 2fa pt_BR
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard fr_FR
4.3.0 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19043-SP0 standard ru_RU
4.1.5 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:08:11) [MSC v.1928 32 bit (Intel)] Windows-10-10.0.19041-SP0 standard ru_RU
4.3.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22621-SP0 standard de_DE
4.3.2 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:21:37) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard pl_PL
4.3.4 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 2fa en_US
4.3.3 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard ru_RU
4.3.3 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard ru_RU
4.3.4 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 2fa ru_RU
4.4.3 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard ru_RU
4.4.3 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard ru_RU
4.4.5 3.9.13 (v3.9.13:6de2ca5339, May 17 2022, 11:23:25) [Clang 6.0 (clang-600.0.57)] macOS-10.13.6-x86_64-i386-64bit standard,imported ?
4.4.5 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19044-SP0 standard ru_RU
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22621-SP0 standard pt_BR
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.22631-SP0 standard en_US
4.0.9 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] Linux-6.1.0-12-amd64-x86_64-with-glibc2.31 standard ru_RU
4.3.4 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 standard cs_CZ
4.5.4 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:20:04) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard en_US
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard fr_FR
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard fr_FR
4.4.6 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:24:45) [MSC v.1929 32 bit (Intel)] Windows-10-10.0.19045-SP0 standard fr_FR

Additional Information

Always occurs after Electrum is open for a longer time and using a Trezor


electrum has been syncing for 24 hours. it gets to 5615/5616 and starts again. Keeps flashing red in bottom right and starting again, will not sync. it is newest version and my other electrum wallets are ok.


my wallet cannot synchronizing at all


clicked on "Select server automatically" and it crashed (it wasn't connecting to a server previously and didn't by the time of this crash)


stuck at "synchronizing", tried deleting 'blockchain_headers' and then switching back to 'select server automatically'


TARS-bot avatar Aug 01 '18 19:08 TARS-bot

@bauerj There is only one report, but the table contains 2 lines. The python version probably has some special character (newline?) that broke it into two. Maybe that should be sanitized?

SomberNight avatar Aug 04 '18 08:08 SomberNight