KB: Fail to commit to SVN repo possibly due to file locking

Created: March 30, 2021 | Updated: February 28, 2024

[Why] Fail to commit to SVN repo possibly due to file locking [What] Commit fails with an error - Commit failed - Previous operation has not finished; run 'cleanup' if it was interrupted. [How] Run "C:\Program Files\Altium\[version]\Subversion Client\SVN cleanup"

Starting in Version: 18.0
Up to Version: Current

Solution Details

The error message indicates that a SVN process might already be accessing the folder specified in the path.
The .svn locking information may have become corrupt and performing an svn cleanup on the local working copy may resolve this issue. Installing TortoiseSVN and restarting enables a cleanup option in the right-click menu of the local working copy (the parent folder that contains the .svn folder), after the cleanup command is run, the commit may go through successfully.
It is also possible to run "
C:\Program Files\Altium\[version]\Subversion Client\SVN cleanup" on the local working copy from a command line to shut down any active SVN processes:
Open a Windows command prompt.
This can be done in Windows by typing in CMD in the search dialog after clicking on the Windows Start button, then select CMD.EXE.
Otherwise, hold down the windows start button and press R to open the Run dialog and enter CMD.
Once a command window opens, change the working directory of your project using the CD command.
If you copy the path from Windows Explorer, you can type in CD followed by a space.
Then right click and select Paste which will paste the path in.
Once In the project folder, type in: svn cleanup
Now, type Exit and attempt to recommit the files within Altium Designer.
Checking out a new copy from the svn then replacing the files with the already modified ones is another method to get these files committed.
The issue may be resolved by committing repo changes in Windows explorer. Then in Altium by right-clicking the project and clicking Version Control Refresh.
Here is documentation on Version Control:
And some other links that may be useful:
Here is a reference to SVN command lines which may be helpful:

Was this article helpful?
Found an issue with this document? Highlight the area, then use Ctrl+Enter to report it.

Contact Us

Contact our corporate or local offices directly.

We're sorry to hear the article wasn't helpful to you.
Could you take a moment to tell us why?
200 characters remaining
You are reporting an issue with the following selected text
and/or image within the active document: