Pages:
Author

Topic: Error opening block database (Read 816 times)

legendary
Activity: 1946
Merit: 1427
January 25, 2020, 08:19:36 AM
#31
Any ideas? I know i could format the drive and re-download the hole database, I would like no avoid doing that
Hmm. Those errors could mean a variety of things. Best thing you could probably do is make a backup first, then maybe open a new thread (as you're currently bumping a year-old thread) with a debug.log attached ( => https://en.bitcoin.it/wiki/Data_directory).

If you're not interested in opening another thread, you can try some of the following:

https://bitcoin.stackexchange.com/questions/60709/when-should-i-use-reindex-chainstate-and-when-reindex/60711#60711

Reindex it and see if that fixes your DB issues. (Again that might be unnecessary if you can check the debug.log to see what the error might be.)
(Maybe there is an error with the -datadir (since you use it a "different" location?) but if you've used the wallet succesfully before, i kind of doubt it.)
newbie
Activity: 1
Merit: 0
January 24, 2020, 08:45:45 PM
#30
I got a similar error, i use the core at another location, now I use a MacBook to check some things and even tho the hard disk is updated till yesterday without issues the Mac client shows the following errors

https://i.ibb.co/rxrm3CV/BC1.png
https://i.ibb.co/84hgKkY/BC2.png

Any ideas? I know i could format the drive and re-download the hole database, I would like no avoid doing that
jr. member
Activity: 31
Merit: 5
April 25, 2018, 03:38:04 PM
#29
Its actually ok, when my wallet finished syncing it's working!! thanks to everyone for helping me!  Smiley
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
April 21, 2018, 04:39:00 PM
#28
For ALL OSes, locate the bitcoin-qt script (for microsoft windows it's bitcoin-qt.exe for linux, you can probably jsut type bitcoin-qt into the console).

FOR WINDOWS:
Open command prompt and type Path_You_Just_Found+"\bitcoin-qt.exe -port=22"

For Linux:
Open command prompt and type "bitcoin-qt -port=22".

Hopefully that should work correctly. If not, try installing TOR and forcing your packets through it.
jr. member
Activity: 31
Merit: 5
April 21, 2018, 02:08:01 PM
#27
If i use one of those port checking websites it says 8333 is Open but https://bitnodes.earn.com/ says Not Reachable

does anyone know what Im missing here?
Let's start with the obvious: did you portforward port 8333 in your modem settings to the IP address of your Ubuntu?

yes

Do you use a VPN or have a service that monitors your network traffic (a "physical firewall" for outbound/inbound data).

Since you're still getting connections, what does it say at the bottom? Is it still syncing or is there another error. 8 perrs seems about right.

If you're still stuck after this, I'd suggest you try and change the port to something else (22 would be my suggestion - it's usually for SSH so should be available unless your router already uses that port).

says its syncing with network, only 2 active connections Sad

how to change the default port?

thanks
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
April 18, 2018, 12:46:03 PM
#26
If i use one of those port checking websites it says 8333 is Open but https://bitnodes.earn.com/ says Not Reachable

does anyone know what Im missing here?
Let's start with the obvious: did you portforward port 8333 in your modem settings to the IP address of your Ubuntu?

yes

Do you use a VPN or have a service that monitors your network traffic (a "physical firewall" for outbound/inbound data).

Since you're still getting connections, what does it say at the bottom? Is it still syncing or is there another error. 8 perrs seems about right.

If you're still stuck after this, I'd suggest you try and change the port to something else (22 would be my suggestion - it's usually for SSH so should be available unless your router already uses that port).
jr. member
Activity: 31
Merit: 5
April 18, 2018, 12:20:57 PM
#25
If i use one of those port checking websites it says 8333 is Open but https://bitnodes.earn.com/ says Not Reachable

does anyone know what Im missing here?
Let's start with the obvious: did you portforward port 8333 in your modem settings to the IP address of your Ubuntu?

yes
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
April 17, 2018, 12:52:14 PM
#24
If i use one of those port checking websites it says 8333 is Open but https://bitnodes.earn.com/ says Not Reachable

does anyone know what Im missing here?
Let's start with the obvious: did you portforward port 8333 in your modem settings to the IP address of your Ubuntu?
jr. member
Activity: 31
Merit: 5
April 17, 2018, 10:18:12 AM
#23
hey thanks for replies - I am now running on Ubuntu 16.04 LTS - so far so good, blockchain syncing now but its taking quite a while, not sure why, it seemed to sync a hell of a lot faster on Windows

Anyway, my final problem (i hope) is that I cannot open port 8333, have seen suggestions that ISPs may block this port but I think its probably more something on my end

If i use one of those port checking websites it says 8333 is Open but https://bitnodes.earn.com/ says Not Reachable

does anyone know what Im missing here? I am only getting 8 active connections on my Bitcoin Core

thanks
member
Activity: 126
Merit: 50
Ask me for Pools, Nodes and Explorers.
April 03, 2018, 02:39:40 AM
#22
Code:
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
Could this be a file system limitation? Which file system do you use?

I think I will abandon this on Windows and look into running a node on Linux instead as this is just way too unreliable
May I suggest installing a "Linux file system" on your external drive? Ext4 is a good default choice.

That is a great suggestion! I'd personally recommend Minitool Partition Wizard to use for creating partition, IF you wish to create partitions via Windows OS. That tool is easy to use and very reliable. It is very similar to Gparted IMO.



However creating partitions is usually safer on GNU/Linux OS and i think that he should create the partition from installation of Xubuntu or liveCD. Xubuntu is lightweight, as it features XFCE instead of Gnome3 as DE.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
March 23, 2018, 03:14:54 PM
#21
Code:
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
Could this be a file system limitation? Which file system do you use?

I think I will abandon this on Windows and look into running a node on Linux instead as this is just way too unreliable
May I suggest installing a "Linux file system" on your external drive? Ext4 is a good default choice.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
March 23, 2018, 02: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).
jr. member
Activity: 31
Merit: 5
March 23, 2018, 02:16:22 PM
#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
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
March 14, 2018, 06: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).
jr. member
Activity: 31
Merit: 5
March 14, 2018, 06: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
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
March 13, 2018, 05: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)?
jr. member
Activity: 31
Merit: 5
March 12, 2018, 11:31:23 PM
#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
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
March 06, 2018, 01: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).
legendary
Activity: 1624
Merit: 2481
March 06, 2018, 11:28:15 AM
#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

jr. member
Activity: 31
Merit: 5
March 06, 2018, 11:12:08 AM
#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!
Pages:
Jump to: