Obtaining write lock when trying to write index error

Well, the problem was that there was an old lock file in the index
directory. The trick was to cleanup index from any locks if
application crashes or smth. :slight_smile: