Author

Topic: How can I fix a leveldb read failure, too many open files. (Read 1823 times)

legendary
Activity: 1498
Merit: 1000
I just think I am accessing to many things from bitcoind, but this is just since I upgraded from 0.9.0 to 0.9.1. And nothing is getting corrupted from these crashes, cause it starts up just fine.

Edit: I need to use 0.9.1 I am one of the few that use rpcssl.

Code:
*** buffer overflow detected ***: ./bitcoind terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f966dc8af6c]
/lib/x86_64-linux-gnu/libc.so.6(+0x109e40)[0x7f966dc89e40]
/lib/x86_64-linux-gnu/libc.so.6(+0x10aefe)[0x7f966dc8aefe]
./bitcoind(+0x147ffd)[0x7f966eee6ffd]
./bitcoind(_Z11TraceThreadIPFvvEEvPKcT_+0x4a)[0x7f966eef313a]
./bitcoind(+0x2d872a)[0x7f966f07772a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a)[0x7f966df47e9a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f966dc743fd]
legendary
Activity: 2128
Merit: 1073
Quote
I guess I have a long day of testing out numbers. Either I get a buffer overflow, or I get that other error.
Maybe an open file handle leak? On Linux could be easily checked by peeking into /proc file system while the program is running.
legendary
Activity: 2128
Merit: 1073
Code:
ulimit -n
is your friend.
legendary
Activity: 1498
Merit: 1000
Code:
LevelDB read failure: IO error: /home/bitcoin/.bitcoin/blocks/index/061074.sst: Too many open files
2014-04-24 06:28:02 IO error: /home/bitcoin/.bitcoin/blocks/index/061074.sst: Too many open files

Should I just increase the number of open files on the system? It is ubuntu 12.10.


Edit: Also looking thru the logs I get this error as well.
Code:
ERROR: bool GetTransaction(const uint256&, CTransaction&, uint256&, bool) : Deserialize or I/O error - CAutoFile::operator>> : file handle is NULL
Jump to: