SVN Error – No Lock Tokens available issue

Home / Blogs / SVN Error – No Lock Tokens available issue

When the SVN gives the message that no lock tokens available, then it means that the SVN server has the lock information for the file but there is no relevant client who is known as the owner of lock.  Usually this lock token issue comes up to me when I have moved the files to some other location or renamed the file.

Currently I follow below steps to break the lock in SVN server

  1. Find the file which has no-lock-token using the SVN commit window.
  2. Go to the respective folder of that file and look for SVN logs and search for that file to filter the various results.
  3. Out of the results, select the top result and right click to get “Update items to the revision” for that folder.
  4. Now, go to the folder in window explorer and click on “Check for Modification” in SVN context menu.  Then in the SVN Modification window, click “Check Repository” to get information from SVN at that commit version.  This leads SVN to load with information about the various files in the SVN server at that moment.
  5. Then, in the Lock column, find if there is someone holding the lock for that specific file.
  6. If the lock is there, then right click on that file and break the lock.
  7. If the lock is not there, then repeat the above steps to next result form step 3.  There should be some SVN version where lock is held by someone else.

 

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *