db-update fails to update state repo with a git error
db-update sometimes updates the db successfully but fails to update the state repo. This makes the state repo inconsistent and breaks a future db-move etc.
DEBUG:root:haskell-hasql-transaction: ==> Updating [extra-staging]...
DEBUG:root:haskell-hasql-transaction: -> haskell-hasql-transaction-1.0.1.1-172-x86_64.pkg.tar.zst (x86_64)
DEBUG:root:haskell-hasql-transaction: -> haskell-hasql-transaction-debug-1.0.1.1-172-x86_64.pkg.tar.zst (x86_64)
DEBUG:root:haskell-hasql-transaction: fatal: Unable to create '/srv/repos/state/.git/index.lock': File exists.
DEBUG:root:haskell-hasql-transaction:
DEBUG:root:haskell-hasql-transaction: Another git process seems to be running in this repository, e.g.
DEBUG:root:haskell-hasql-transaction: an editor opened by 'git commit'. Please make sure all processes
DEBUG:root:haskell-hasql-transaction: are terminated then try again. If it still fails, a git process
DEBUG:root:haskell-hasql-transaction: may have crashed in this repository earlier:
DEBUG:root:haskell-hasql-transaction: remove the file manually to continue.
DEBUG:root:haskell-hasql-transaction: fatal: Unable to create '/srv/repos/state/.git/index.lock': File exists.
DEBUG:root:haskell-hasql-transaction:
DEBUG:root:haskell-hasql-transaction: Another git process seems to be running in this repository, e.g.
DEBUG:root:haskell-hasql-transaction: an editor opened by 'git commit'. Please make sure all processes
DEBUG:root:haskell-hasql-transaction: are terminated then try again. If it still fails, a git process
DEBUG:root:haskell-hasql-transaction: may have crashed in this repository earlier:
DEBUG:root:haskell-hasql-transaction: remove the file manually to continue.