Bitcoin Forum
November 09, 2024, 07:06:33 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Error opening block database  (Read 831 times)
dentanik (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 26, 2018, 01:35:55 PM
 #1

HI Everyone,

I am new to bitcoin world and just wanted to support the network by downloading the full node on a dedicated Mac computer.

I knew it's going to be a steep learning curve especially for a non computer gig like myself and I was stuck right at the start.

When I try to open the bitcoin core application, it comes with a error message " error opening block database" " do you want to rebuilt the block database now"
I click ok and it comes wit " error opening database" and it closing the application. I have tried to delete the application and install again but I had no susses.

I would love to have someone give me an idea of how to tackle this problem.

Thank you for your time
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
February 26, 2018, 01:57:38 PM
 #2

Can you post your debug.log?
How healthy is your hard drive/computer, how much space does your hard drive have free also?

Can you post your debug log as well. Presumably you're using Windows so by default it's c:\users\[yourusername]\appdata and in a folder named bitcoin either in the Roaming or Local subfolders of appdata.
dentanik (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 26, 2018, 02:11:34 PM
 #3

HI Jackg,
Thank you for your swift reply.

I am using Mac by the way. When I open debug.log it says: 2018-02-26 12:49:38
dentanik (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 26, 2018, 02:21:11 PM
 #4

I read the debug log and it says that the disk I am using doesn't support 000001.dbtmp:

I was trying to use an external drive. obviously it doesn't work that way .

How can I change the drive?
I read the debug log and it says that the disk I am using doesn't support 000001.dbtmp:

I was trying to use an external drive. obviously it doesn't work that way .

How can I change the drive?

2018-02-26 14:12:57 Bitcoin Core version v0.16.0 (release build)
2018-02-26 14:12:57 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2018-02-26 14:12:58 Assuming ancestors of block 0000000000000000005214481d2d96f898e3d5416e43359c145944a909d242e0 have valid signatures.
2018-02-26 14:12:58 Setting nMinimumChainWork=000000000000000000000000000000000000000000f91c579d57cad4bc5278cc
2018-02-26 14:12:58 Using the 'sse4' SHA256 implementation
2018-02-26 14:12:58 Using RdRand as an additional entropy source
2018-02-26 14:12:58 Default data directory /Users/nikolayvladimirov/Library/Application Support/Bitcoin
2018-02-26 14:12:58 Using data directory /Volumes/USB_Storage
2018-02-26 14:12:58 Using config file /Volumes/USB_Storage/bitcoin.conf
2018-02-26 14:12:58 Using at most 125 automatic connections (2560 file descriptors available)
2018-02-26 14:12:58 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2018-02-26 14:12:58 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2018-02-26 14:12:58 Using 2 threads for script verification
2018-02-26 14:12:58 scheduler thread start
2018-02-26 14:12:58 Using wallet directory /Volumes/USB_Storage
2018-02-26 14:12:58 init message: Verifying wallet(s)...
2018-02-26 14:12:58 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2018-02-26 14:12:58 Using wallet wallet.dat
2018-02-26 14:12:58 CDBEnv::Open: LogDir=/Volumes/USB_Storage/database ErrorFile=/Volumes/USB_Storage/db.log
2018-02-26 14:12:58 Cache configuration:
2018-02-26 14:12:58 * Using 2.0MiB for block index database
2018-02-26 14:12:58 * Using 8.0MiB for chain state database
2018-02-26 14:12:58 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2018-02-26 14:12:58 init message: Loading block index...
2018-02-26 14:12:59 Opening LevelDB in /Volumes/USB_Storage/blocks/index
2018-02-26 14:12:59 IO error: /Volumes/USB_Storage/blocks/index/000001.dbtmp: Operation not supported
2018-02-26 14:12:59 Database I/O error
2018-02-26 14:13:03 init message: Loading block index...
2018-02-26 14:13:03 Wiping LevelDB in /Volumes/USB_Storage/blocks/index
2018-02-26 14:13:03 Opening LevelDB in /Volumes/USB_Storage/blocks/index
2018-02-26 14:13:03 IO error: /Volumes/USB_Storage/blocks/index/000001.dbtmp: Operation not supported
2018-02-26 14:13:03 Database I/O error
2018-02-26 14:13:05 Shutdown: In progress...
2018-02-26 14:13:05 scheduler thread interrupt
2018-02-26 14:13:05 Shutdown: done
Sellingaccs
Member
**
Offline Offline

Activity: 126
Merit: 50

Ask me for Pools, Nodes and Explorers.


View Profile
February 26, 2018, 02:30:32 PM
 #5

-snip-

Seems like you have installed some of the files on external drive.
Do you have sent any bitcoins to the wallet that you are trying to open? If not, the smartest way would be to uninstall the application.
Please provide some more information, and if you have any private keys that you need on the wallet.dat and i'll help you to backup and restore them correctly to new installation of Bitcoin Core.

Heisenberg_Hunter
Legendary
*
Offline Offline

Activity: 1584
Merit: 1280


Heisenberg Design Services


View Profile WWW
February 26, 2018, 02:33:08 PM
 #6

When this problem arrives:

1. Your HDD might be full
2. You may be using a very old indexed drive (Try reindex the drive)

You can change your blockchain default drive location by first locating your blockchain directory. This could be found in the /Library/Application Support/Bitcoin/. Copy the directory folder and and paste it in another drive which is free and then right click and go to properties and paste the code in Target.

Quote
-datadir=your drive name:\BitCoin

Now you can restart your wallet and everything will be fine. Smiley
dentanik (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 26, 2018, 02:52:15 PM
 #7

All done.


I am now in the process of waiting.

Thanks heaps for your help. Grin

You guys rock!!!!!

themossinator
Jr. Member
*
Offline Offline

Activity: 31
Merit: 5


View Profile
March 01, 2018, 11:07:53 PM
 #8

Hi, I am also getting this error
Running a mini PC Windows 10, blockchain on 4TB external drive

Got this from the debug log

Code:
2018-03-01 22:54:06 init message: Loading block index...
2018-03-01 22:54:06 Opening LevelDB in d:\Bitcoin\blocks\index
2018-03-01 22:54:06 IO error: d:\Bitcoin\blocks\index/000419.dbtmp: Could not rename file.
2018-03-01 22:54:06 Database I/O error
2018-03-01 22:54:07 init message: Loading block index...
2018-03-01 22:54:07 Wiping LevelDB in d:\Bitcoin\blocks\index
2018-03-01 22:54:07 IO error: d:\Bitcoin\blocks\index\000102.ldb: Could not delete file.
2018-03-01 22:54:07 Database I/O error
2018-03-01 22:54:09 Shutdown: In progress...
2018-03-01 22:54:09 scheduler thread interrupt
2018-03-01 22:54:09 Shutdown: done

any ideas what is wrong? I am really struggling to get my node up and running, thank you
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 01, 2018, 11:24:26 PM
 #9

Hi, I am also getting this error
Running a mini PC Windows 10, blockchain on 4TB external drive

Got this from the debug log

Code:
2018-03-01 22:54:06 init message: Loading block index...
2018-03-01 22:54:06 Opening LevelDB in d:\Bitcoin\blocks\index
2018-03-01 22:54:06 IO error: d:\Bitcoin\blocks\index/000419.dbtmp: Could not rename file.
2018-03-01 22:54:06 Database I/O error
2018-03-01 22:54:07 init message: Loading block index...
2018-03-01 22:54:07 Wiping LevelDB in d:\Bitcoin\blocks\index
2018-03-01 22:54:07 IO error: d:\Bitcoin\blocks\index\000102.ldb: Could not delete file.
2018-03-01 22:54:07 Database I/O error
2018-03-01 22:54:09 Shutdown: In progress...
2018-03-01 22:54:09 scheduler thread interrupt
2018-03-01 22:54:09 Shutdown: done

any ideas what is wrong? I am really struggling to get my node up and running, thank you

You don't happen to have that folder open anywhere do you?
Was it able to obtain "a LOCK on the database"?

Can you post from the startup of that instance of bitcoin core of the debug.log.
You could try reindexing it or checking the stability of your hard drive/defragment the hard drive using optimisation tools.
themossinator
Jr. Member
*
Offline Offline

Activity: 31
Merit: 5


View Profile
March 05, 2018, 05:39:45 PM
 #10

Hi, no i dont have the folder open anywhere

here is the rest of the log

Code:
2018-03-01 22:53:15 Bitcoin Core version v0.16.0 (release build)
2018-03-01 22:53:15 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2018-03-01 22:53:16 Assuming ancestors of block 0000000000000000005214481d2d96f898e3d5416e43359c145944a909d242e0 have valid signatures.
2018-03-01 22:53:16 Setting nMinimumChainWork=000000000000000000000000000000000000000000f91c579d57cad4bc5278cc
2018-03-01 22:53:16 Using the 'sse4' SHA256 implementation
2018-03-01 22:53:16 Using RdRand as an additional entropy source
2018-03-01 22:53:16 GUI: "registerShutdownBlockReason: Successfully registered: Bitcoin Core didn't yet exit safely..."
2018-03-01 22:53:17 Default data directory C:\Users\BTC\AppData\Roaming\Bitcoin
2018-03-01 22:53:17 Using data directory d:\Bitcoin
2018-03-01 22:53:17 Using config file d:\Bitcoin\bitcoin.conf
2018-03-01 22:53:17 Using at most 125 automatic connections (2048 file descriptors available)
2018-03-01 22:53:17 Using 16 MiB out of 32/2 requested for signature cache, able to store 524288 elements
2018-03-01 22:53:17 Using 16 MiB out of 32/2 requested for script execution cache, able to store 524288 elements
2018-03-01 22:53:17 Using 4 threads for script verification
2018-03-01 22:53:17 scheduler thread start
2018-03-01 22:53:17 Using wallet directory d:\Bitcoin
2018-03-01 22:53:17 init message: Verifying wallet(s)...
2018-03-01 22:53:17 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2018-03-01 22:53:17 Using wallet wallet.dat
2018-03-01 22:53:17 CDBEnv::Open: LogDir=d:\Bitcoin\database ErrorFile=d:\Bitcoin\db.log
2018-03-01 22:53:17 Cache configuration:
2018-03-01 22:53:17 * Using 2.0MiB for block index database
2018-03-01 22:53:17 * Using 8.0MiB for chain state database
2018-03-01 22:53:17 * Using 440.0MiB for in-memory UTXO set (plus up to 286.1MiB of unused mempool space)
2018-03-01 22:53:17 init message: Loading block index...
2018-03-01 22:53:17 Opening LevelDB in d:\Bitcoin\blocks\index
2018-03-01 22:53:18 IO error: d:\Bitcoin\blocks\index/000419.dbtmp: Could not rename file.
2018-03-01 22:53:18 Database I/O error
2018-03-01 22:53:42 init message: Loading block index...
2018-03-01 22:53:42 Wiping LevelDB in d:\Bitcoin\blocks\index
2018-03-01 22:53:42 IO error: d:\Bitcoin\blocks\index\000102.ldb: Could not delete file.
2018-03-01 22:53:42 Database I/O error
2018-03-01 22:53:43 Shutdown: In progress...
2018-03-01 22:53:43 scheduler thread interrupt
2018-03-01 22:53:43 Shutdown: done
2018-03-01 22:54:05
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 06, 2018, 12:35:41 AM
 #11

Hi, no i dont have the folder open anywhere

here is the rest of the log

~

Your best option is probably to try running the -reindex command and see if that fixes your issue a bit. Unless you can run/have run any hard drive testing software that has found a problem in the hard drive, then this error may likely continue.

Also, do you have ANY antivirus installed, there were rumors that at least one block in the main chain got deleted from the blockchain by antivirus because someone decided to add a virus signature to a block (not to be malicious intentionally but probably to see if it caused AV issues from the blockchain itself - which was proven).
themossinator
Jr. Member
*
Offline Offline

Activity: 31
Merit: 5


View Profile
March 06, 2018, 03:12:08 PM
 #12

thank, i dont have any AV software running - what you mean by -reindex?

I have uninstalled and reinstalled the software, after reinstall it verifies the blocks, says Done Loading - then it hangs. Cant believe this is so difficult to get running!
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
March 06, 2018, 03:28:15 PM
 #13

thank, i dont have any AV software running - what you mean by -reindex?

He is talking about running -reindex command.

Either open the console of core ('Help' -> 'Debug window' -> 'Console') and type: -reindex.

Or start core via command line with -reindex as command line argument:
e.g. in linux:
Code:
./bitcoin-qt -reindex


jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 06, 2018, 05:10:28 PM
 #14

thank, i dont have any AV software running - what you mean by -reindex?

He is talking about running -reindex command.

Either open the console of core ('Help' -> 'Debug window' -> 'Console') and type: -reindex.

Or start core via command line with -reindex as command line argument:
e.g. in linux:
Code:
./bitcoin-qt -reindex



Yes. As Bob says, I'd recommend booting it from the Linux console with the command.

Rename the Blocks and Chainstate folders first also just to check it.

Ordinarily I'd offer my version of the file but yours is a temp file and not a fully made one.

Did you shutdown forcefully at any point? As, if so, this probably caused the error (and the error doesn't always appear straight away).
themossinator
Jr. Member
*
Offline Offline

Activity: 31
Merit: 5


View Profile
March 13, 2018, 03:31:23 AM
 #15

Ok, thanks for help all - i got the reindex going so just letting it do its thing, hopefully will be ok then. My next problem is trying to open port 8333, nothing is easy with this lol
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 13, 2018, 09:41:09 PM
 #16

Ok, thanks for help all - i got the reindex going so just letting it do its thing, hopefully will be ok then. My next problem is trying to open port 8333, nothing is easy with this lol

You can change the port to a lower number (like 22 - the SSH port or another well known/used port that should be open - the 80 port also if you really have to).

Though it depends on how you're connecting to the network and the nature of the network (is it a public or private network for example)?
themossinator
Jr. Member
*
Offline Offline

Activity: 31
Merit: 5


View Profile
March 14, 2018, 10:03:40 PM
 #17

Ok, thanks for help all - i got the reindex going so just letting it do its thing, hopefully will be ok then. My next problem is trying to open port 8333, nothing is easy with this lol

You can change the port to a lower number (like 22 - the SSH port or another well known/used port that should be open - the 80 port also if you really have to).

Though it depends on how you're connecting to the network and the nature of the network (is it a public or private network for example)?

Its my own home network.

So i started the reindex and left it to do its thing for a couple of days - come back and found bitcoin core wasnt running, started the program and got the error opening block database again LOL

its almost like this isnt meant to be - cant understand why this is so difficult to get running  Sad Sad Sad
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 14, 2018, 10:27:08 PM
 #18

~

Its my own home network.

So i started the reindex and left it to do its thing for a couple of days - come back and found bitcoin core wasnt running, started the program and got the error opening block database again LOL

its almost like this isnt meant to be - cant understand why this is so difficult to get running  Sad Sad Sad

Go to the start menu and search "event" you should get an application called "Event Viewer" that pops up in the search results as a program. Click on that. Use this to check to see if there are any unexpected shutdowns (or check if there is a difference in timing between when it turns off and back on - if events are quite frequent and immediately drop off then you know there's an issue there).

Also, check your power supply and try coming back to the computer eveyr few hours just to check on it (or even once a day). If you shutdown the core every couple of hours (you can get a script to do this) and then restart it, it'll save where its up to if there is an issue with the computer - it'll cut some issues NOT ALL!

Also check the debug.log to see if it shows there is an unexpected shutdown when you rebooted bitcoin core? Is your computer set to hybernate/sleep at any point, if so, turn this off (change the setting in control panel to NEVER).
themossinator
Jr. Member
*
Offline Offline

Activity: 31
Merit: 5


View Profile
March 23, 2018, 06:16:22 PM
Merited by vapourminer (1)
 #19

thank for your help, really appreciate it. I think I will abandon this on Windows and look into running a node on Linux instead as this is just way too unreliable
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 23, 2018, 06:34:38 PM
 #20

I'm not sure Linux will help so much but you can always try, it does seem a bit more lightweight though than Windows so there may be less errors. You have to install dependencies though on their own which gets a bit annoying if you turn to Linux (though if you use Ubuntu, I guess there'll be fewer issues as that's what it's made for - it's the most widespread).
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!