Caffe: db_lmdb.hpp:15] Check failed: mdb_status == 0 (-30796 vs. 0) MDB_CORRUPTED: Located page was wrong type

Created on 18 Oct 2018  路  6Comments  路  Source: BVLC/caffe

Fresh, successful Caffe installation on Ubuntu 16.04. Caffe was compiled on the system for CPU-only operation. LMDB version 0.9.17-3 is installed as well. Everything is very 'vanilla'.

To double check everything, I followed the MNIST installation instructions:

cd $CAFFE_ROOT
./data/mnist/get_mnist.sh
./examples/mnist/create_mnist.sh

The third script is the one that generated the aforementioned error. Does anyone know the cause?

Most helpful comment

Do you use windows WSL??
I got same error in my WSL .
But when i use same command and same script run in my ubuntu server,no errors happend.

I meet the same problem with WSL

if u use wsl,the error is make by wsl,i was sure that

All 6 comments

me too

Do you use windows WSL??
I got same error in my WSL .
But when i use same command and same script run in my ubuntu server,no errors happend.

Do you use windows WSL??
I got same error in my WSL .
But when i use same command and same script run in my ubuntu server,no errors happend.

I meet the same problem with WSL

Do you use windows WSL??
I got same error in my WSL .
But when i use same command and same script run in my ubuntu server,no errors happend.

I meet the same problem with WSL

if u use wsl,the error is make by wsl,i was sure that

I found a method to solve this,

  1. you can vim the file$CAFFE_ROOT/include/caffe/util/db_lmdb.hpp ,
  2. comment out the line CHECK_EQ(mdb_status, MDB_SUCCESS) << mdb_strerror(mdb_status);
  3. return to the $CAFFE_ROOT, remake caffe by make -j

image

By the way, you can run make test && make runtest to test if caffe works.

I found a method to solve this,

  1. you can vim the file$CAFFE_ROOT/include/caffe/util/db_lmdb.hpp ,
  2. comment out the line CHECK_EQ(mdb_status, MDB_SUCCESS) << mdb_strerror(mdb_status);
  3. return to the $CAFFE_ROOT, remake caffe by make -j

image

By the way, you can run make test && make runtest to test if caffe works.

it works! thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ruhjkg picture Ruhjkg  路  3Comments

LarsHH picture LarsHH  路  3Comments

iamhankai picture iamhankai  路  3Comments

OpenHero picture OpenHero  路  3Comments

inferrna picture inferrna  路  3Comments