Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LevelDB Lock error #343

Closed
xiangyangli-cn opened this issue Apr 21, 2014 · 6 comments
Closed

LevelDB Lock error #343

xiangyangli-cn opened this issue Apr 21, 2014 · 6 comments

Comments

@xiangyangli-cn
Copy link

F0421 20:12:58.524404 5173 data_layer.cpp:139] Check failed: status.ok() Failed to open leveldb dish_train_leveldb
IO error: lock dish_train_leveldb/LOCK: Resource temporarily unavailable
what I can do?

@Yangqing
Copy link
Member

This means that your leveldb is currently opened by another program. Close the other program would solve the issue.

@jeffdonahue
Copy link
Contributor

I think I've actually gotten into strange situations where I have no processes reading from the LevelDB but the lock is still there, so as a backup measure if you can't find any processes that might be reading from that LevelDB to kill, you can try actually deleting the LOCK file from the leveldb dir.

@shelhamer shelhamer changed the title resume LevelDB Lock error Apr 22, 2014
@HoldenCaulfieldRye
Copy link

Another reason this error might occur is if *train.prototxt accidentally has *val_leveldb (or vice versa) as source field under data_param.

@ghost
Copy link

ghost commented Dec 30, 2014

Another use case of a deadlock on a levelDB/LOCK file.
When I modified MNIST lenet_train_test.prototxt model to use the same data layer for TRAIN and TEST phases. For this, I removed the include: { phase: TRAIN } directive from the TRAIN layer definition and removed the TEST data layer definition altogether. I expected for the same database to participate both in TRAIN and TEST phases. In TRAIN phase Caffe opens database, in TEST phase it deadlocks.
I resolved it by referring to the separate databse for the TEST phase.

@SeraphConst
Copy link

When I was using '.jpg' files set to do some training, I forgot update ' type: "ImageData" ', then this "F0421 20:12:58.524404 5173 data_layer.cpp:139] Check failed: status.ok()" poped.

@Henry75m39
Copy link

I encountered the same issue in my development environment. since I restart my service when every change I made in code. Finally, I delete LOCK file under leveldb dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants