bazelbuild / bazelbuild/bazel

FATAL: corrupt installation: file is missing or modified.

Open
#24,284 1 comment 0 reactions 0 assignees View on GitHub
team-Core type: bug untriaged
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

### Description of the bug:

We're running into issues where our self hosted github runners that run Bazel are running into very odd issues of some form of :

```
FATAL: corrupt installation: file '/opt/runner/.cache/bazel/_bazel_runner/install/88c4bda92e58e48775c9c9582c0165d4/rules_java/AUTHORS' is missing or modified. Please remove '/opt/runner/.cache/bazel/_bazel_runner/install/88c4bda92e58e48775c9c9582c0165d4' and try again.

```

I'm trying to understand what could even cause this issue, I did some looking into the stat value of the files and I could see output:

I understand that within the install base Bazel's internal directive is to change datetime to 10 years ahead to check for any tampering or modification, however I'm trying to understand is there something internally within Bazel that could potentially be touching this?

Trying to figure out exactly what could cause this, is it as simple as an access of the file or actual modification/removal only?

```
Access: 2024-11-12 00:21:24.354977455 +0000
Modify: 2024-11-12 00:21:24.353977479 +0000
Change: 2024-11-12 00:21:24.353977479 +0000
Birth: 2024-11-12 00:19:43.429343078 +0000

```

### Which category does this issue belong to?

Core

### What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

_No response_

### Which operating system are you running Bazel on?

Sequoia Mac 15.1

### What is the output of `bazel info release`?

_No response_

### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.

release 7.0.1

### What's the output of `git remote get-url origin; git rev-parse HEAD` ?

_No response_

### If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

_No response_

### Have you found anything relevant by searching the web?

_No response_

### Any other information, logs, or outputs that you want to share?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the reported Bazel 7.0.1 error and the installation path under /opt/runner/.cache/bazel/_bazel_runner/install/88c4bda92e58e48775c9c9582c0165d4, then review the supplied access, modification, change, and birth timestamps. Reproduce or isolate whether Bazel's installation check is triggered by access alone or by a missing or modified file; done means identifying a confirmed cause or a minimal reproduction.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.