buildkite / buildkite/agent

"bad file descriptor" when using git mirror

Open
#2,906 6 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.1k
Forks
378
Avg merge
2d 6h
Merged PRs (30d)
74

Description

**Environment:**
Buildkite agent docker image with minor customizations (node, some extra scripts, and docker configuration)
Mirror directory is mounted AWS EFS volume (effectively NFS)
AWS Graviton processors
Agent version 3.75.1

**What's happening?**
After upgrading our agent from 3.74.0 to 3.75.1, we started seeing this message (somewhat redacted):

```
2024-07-29 12:48:01 PDT | # Could not acquire lock on "/buildkite/mirrors/https---github-com-******.clonelockf" (bad file descriptor)
-- | --
  | 2024-07-29 12:48:01 PDT | ⚠️ Warning: Checkout failed! getting/updating git mirror: bad file descriptor (Attempt 1/3 Retrying in 2s)
```

This caused all checkouts to fail on the new agent version. Upon reverting to 3.74.0, the errors went away. This appears to be specific to the agent version, not our environment.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.