Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git lock failure #96

Closed
kit-ty-kate opened this issue Dec 15, 2021 · 5 comments · Fixed by ocurrent/ocluster#216
Closed

Git lock failure #96

kit-ty-kate opened this issue Dec 15, 2021 · 5 comments · Fixed by ocurrent/ocluster#216
Labels
bug Something isn't working

Comments

@kit-ty-kate
Copy link
Contributor

Building on cree.ocamllabs.io
fatal: Unable to create '/var/cache/obuilder/ocluster/git/opam-repository.git-b322f7b18d276db68487afc3dfc5a5befdd45818/.git/index.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.
git-reset failed with exit-code 128

e.g. https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/fac594542e6e3fb469687d23f9ebe25982ab36c7/variant/opam-2.0,compilers,4.12,solo5-elftool.0.1.0

@talex5
Copy link
Contributor

talex5 commented Dec 15, 2021

Probably just this again: ocurrent/ocluster#115

@tmcgilchrist
Copy link
Member

tmcgilchrist commented Jan 5, 2023

And again https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/c58c3f18c25359b70e1c8d7e00a5cd6530287fe0/variant/macos,macos-homebrew-ocaml-4.14-arm64,tezt.3.0.0

2023-01-03 16:49.20: Waiting for resource in pool OCluster
2023-01-03 21:17.58: Waiting for worker…
2023-01-04 00:01.23: Got resource from pool OCluster
Building on m1-worker-01
All commits already cached
fatal: Unable to create '/private/var/lib/ocluster-worker/git/opam-repository.git-b322f7b18d276db68487afc3dfc5a5befdd45818/.git/index.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.
git-reset failed with exit-code 128
2023-01-04 00:01.23: Job failed: Failed: Build failed

@tmcgilchrist tmcgilchrist added the bug Something isn't working label Jan 5, 2023
@kit-ty-kate
Copy link
Contributor Author

See also ocurrent/opam-repo-ci#202 (comment)

@talex5 are we using Lwt.cancel for anything at this level?

@talex5
Copy link
Contributor

talex5 commented Jan 29, 2023

@talex5 are we using Lwt.cancel for anything at this level?

Unlikely. I try to avoid it.

But I don't see what this issue has to do with OBuilder anyway. OCluster only passes a temporary copy of the git repository to OBuilder, so if it's broken then it's OCluster's fault (e.g. ocurrent/ocluster#115).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants