Unable to update CVS repository due to cvslog.write.lock error
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
The following appears in the atlassian-jira.log
when updating CVS repository:
1
2
3
4
5
6
7
8
9
2015-06-23 10:26:49,020 ERROR [atlassian.jira.vcs.DefaultRepositoryManager] Error occurred while updating repository 'xxx': Could not obtain lock 'C:\jira\cvs\cvslog.write.lock' in 10000 msecs.
com.atlassian.jira.util.LockException: Could not obtain lock 'C:\jira\cvs\cvslog.write.lock' in 10000 msecs.
at com.atlassian.jira.vcs.cvsimpl.CvsRepositoryUtilImpl.updateCvs(CvsRepositoryUtilImpl.java:246)
at com.atlassian.jira.vcs.cvsimpl.CvsRepository.updateCvs(CvsRepository.java:204)
at com.atlassian.jira.vcs.cvsimpl.CvsRepository.updateRepository(CvsRepository.java:295)
at com.atlassian.jira.vcs.DefaultRepositoryManager.updateRepository(DefaultRepositoryManager.java:489)
at com.atlassian.jira.vcs.DefaultRepositoryManager.updateRepositories(DefaultRepositoryManager.java:445)
at com.atlassian.jira.service.services.vcs.VcsService.run(VcsService.java:54)
at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59)
Cause
The lock file is created each time JIRA updates the CVS module. If JIRA is stopped while it is working with CVS it will leave the lock file behind and the lock will need to be manually removed before restarting JIRA.
Resolution
Delete the lock file manually, see the following steps:
Stop JIRA
Remove the corresponding lock, for example
C:\jira\cvs\cvslog.write.lock
Restart JIRA
Was this helpful?