SVN: “Attempted to lock an already locked dir”

If you work with Eclipse and SVN, you’ll probably come across an error similar to: Attempted to lock an already locked dir

You can sometimes resolve this by cleaning up the workplace directly in eclipse by right clicking on your project -> team -> cleanup.

However, if that fails, you will need to delete all the lock files in your workplace.

If you’re under linux, run find ./ -name lock -exec rm {} \; in the workplace directory. If you’re on windows, I’m guessing you can do a search for all lock files and deleting it from the search results. Once that’s done, try to commit again, and hopefully it will work.

If eclipse still refuses to stop spewing error messages after all that, it’s best you start over your workplace. That is, back up your workplace, delete it, re-checkout the code, copy the backed up code into the workplace again, refresh the workplace in eclipse, and attempt to recommit again.

If even that fails, then it’s time to gg.

One thought on “SVN: “Attempted to lock an already locked dir”

Leave a Reply

Your email address will not be published.