Note: please note that Liferay has renamed its Liferay Experience
Could offerings to Liferay SaaS (formerly LXC) and
Liferay PaaS (formerly LXC-SM).
Issue
- Deployment gets stuck at jenkins with below error:
stderr: fatal: Unable to create '/var/jenkins_home/workspace/xyz_prd/.git/shallow.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
Environment
- Liferay DXP 7.1
- Liferay DXP 7.2
- Liferay DXP 7.3
- Liferay DXP 7.4
Resolution
- The issue is observed when a deployment gets failed due to memory/ other reasons and workspace auto-cleanup job is not completed successfully.
- Issue should be resolved automatically after running a new build, as workspace gets cleaned up after every build completion.
- In case the issue still persists, kindly create a support ticket mentioning the same.