[svn] svn: E155004: ..(path of resource).. is already locked

I'm getting an error when trying to commit a change to a repository. I'm sure that my resources (classes) are not locked but it still gives me the error:

Some resources were not updated.
svn: E155004: Working copy 'D:\svnworkspace\crm\weblayer\com\lmkr\crm\web\model\dashboard' locked
svn: E155004: 'D:\svnworkspace\crm' is already locked

This question is related to svn

The answer is


We had the same problem and we solved it as follows : we tried a "revert from SVN" from another folder than the one we faced the issue, and suddenly we were able to perform commit,revert etc from the folder that had the issue. It seems that it firstly needs to commit a change from another dir.

BR


  1. Downlaod and copy sqlite.exe to .svn's parent directory
  2. Open shell in this directory
  3. Query to find locks in corresponding tables => in wc_lock* table (the table name is something like this)
  4. Delete the locked items in above table by sqlite query

just this steps helped me to resolve:

svn: E155004: Working copy 'resourceAddress' locked

I had the same problem as you. I have solved it in the next steps. In the command line you have to type just

  1. "svn cleanup"--> run ,than
  2. "svn update" --> run

and you have to check it ,that your App. is working without any failures or not, and if everything is ok, you can commit your changes.


Inside the folder

TortoiseSVN -> Clean up...


For me worked, in Eclipse:

Team -> Cleanup


In my case, it worked making a merge (WinMerge in Windows, Meld in Linux) between locked project and a new project checkout. After that, I continued working on the new project checkout, and the lock problem was solved.


This happens while switching. Before starting close the eclipse.

These are the steps I follow to solve and works for me.

  • Eclipse Version:Version: 2018-12 (4.10.0)

  • SQLLite version: DB.Browser.for.SQLite-3.11.2-win64

Steps:

  1. Download - https://sqlitebrowser.org/dl/ I downloaded zip version.
  2. Extract the downloaded zip.
  3. Open "DB Browser for SQLite"
  4. Locate your .svn folder - C:\Workspace-Eorder\myNCR_Release_5.0.0.0.svn\
  5. Open the "wc" file.
  6. Go to SQL Query browser:
  7. select from wc_lock; --- if lock you get some rows.
  8. delete from wc_lock
  9. Close and save the changes.

Screenshot: enter image description here


//Inside the folder,

svn cleanup

svn update

//If are viewing any conflicts,

svn revert --depth infinity conflicted_filename

svn update conflicted_filename

svn update


Still if it doesn't work, just lock all the files and unlock. Now clean up again, It will work.

svn update svn cleanup


I had the same problem

The problem is that with Subversion 1.7 this doesn't work anymore. The good news is there is a better way to do this - and what it appears I should have been doing this all along. All you need is:

svn cleanup

found the solution here


Just cleanup. Happened in JetBrains PhpStorm


For me it's worked with svn cleanup in Eclipse.


Solution:

Step1: Have to remove “lock” file which present under “.svn” hidden file.

Step2: In case if there is no “lock” file then you would see “we.db” you have to open this database and need to delete content alone from the following tables

– lock

– wc_lock

Step3: Clean your project

Step4: Try to commit now.

Step5: Done.