/
Git lock file (gc.pid.lock) crash

Git lock file (gc.pid.lock) crash

Issue

  • Iguana service repeatedly crashes when trying to start the service (possibly without creating crash dump files)

  • The following error is found in the ServiceErrorLog:

[2020-06-02 16:54:12] [ERROR] fatal: Unable to create 'C:/Program Files/iNTERFACEWARE/Iguana/IguanaMainRepo/gc.pid.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue. Process timed out after 180 seconds. - GarbageCollectionError

Possible Causes

  • The gc.pid.lock file is created and removed as part of the git gc command which performs maintenance on the repository

  • The file may get left behind if:

    • the server shuts down or crashes while git gc is running

    • git gc itself crashes (due to running out of memory, running out of disk space, etc.)

Solutions

  • Check that no Iguana processes are currently running via the Task Manager

  • Remove the gc.pid.lock file and restart the service

  • Verify that the server has sufficient memory and disk space to help ensure that the file did not get let behind due to git gc crashing as a result of insufficient memory or disk space

 

Related content

Git Repo Export Error ( src ref spec ‘refs/heads/master’)
Git Repo Export Error ( src ref spec ‘refs/heads/master’)
Read with this
Quick Rebuilding Corrupted Iguana Repo Solutions
Quick Rebuilding Corrupted Iguana Repo Solutions
More like this
How to handle Iguana Crash
How to handle Iguana Crash
Read with this
Iguana Repo Corruption
Iguana Repo Corruption
More like this
Iguana Common Errors
Iguana Common Errors
More like this