Container shutdown does not remove git index.lock file so that git repo seems locked for the next container
- Process in container accesses git repository and therefore creates temporary
index.lock
file
- When process and therefore container is killed, the file remains on disk
- Next process is not able to access repository anymore -> Pipeline blocked, no restoration
Possible solution
- Shutdown of spring context needs to ensure that
index.lock
file is removed
- ??? Service must not start if
index.lock
file exists ???
- ??? Delete existing
index.lock
file at application startup ???
Improvements
- Log with
ERROR
level, if index.lock
exists before first git repo access
Edited by Alexander Mühlbauer