If you get this error when starting up the repository server, there are two possible situations:
In the second case, you can safely delete the write.lock file.
Note that when the repository server was not properly shut down, there might have been index updates which have not been flushed to disk, and hence the index might be incomplete. In case of doubt, you might want to regenerate the fulltext index.
Important for Windows users:
If you are using the Windows service integration with Daisy 2.0, the repository shutdown will almost always fail when shutting down the computer. The solution can be found in DSY-457.