# Build issue

**URL:** <https://discuss.elastic.co/t/build-issue/381992>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [September 16, 2025, 6:57pm UTC](https://discuss.elastic.co/t/build-issue/381992 "2025-09-16T18:57:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedro\_Pacheco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedro_pacheco/32/145051_2.png) [@Pedro\_Pacheco](https://discuss.elastic.co/u/Pedro_Pacheco)\
**Post date:** [September 16, 2025, 6:57pm UTC](https://discuss.elastic.co/t/build-issue/381992/1 "2025-09-16T18:57:18Z")

</div>

Hello - I am trying to build elastic from source. I clone the repo, and as I am running ./gradlew clean build, it fails here:

WARNING: module-info.class ignored in patch: /Users/pedropacheco/Projects/elasticsearch/libs/entitlement/bridge/build/distributions/elasticsearch-entitlement-bridge-9.2.0-SNAPSHOT.jar  
WARNING: module-info.class ignored in patch: /Users/pedropacheco/Projects/elasticsearch/libs/entitlement/bridge/build/distributions/elasticsearch-entitlement-bridge-9.2.0-SNAPSHOT.jar  
WARNING: module-info.class ignored in patch: /Users/pedropacheco/Projects/elasticsearch/libs/entitlement/bridge/build/distributions/elasticsearch-entitlement-bridge-9.2.0-SNAPSHOT.jar  
WARNING: module-info.class ignored in patch: /Users/pedropacheco/Projects/elasticsearch/libs/entitlement/bridge/build/distributions/elasticsearch-entitlement-bridge-9.2.0-SNAPSHOT.jar

> Task :modules:data-streams:compileTestJava  
> Note: /Users/pedropacheco/Projects/elasticsearch/modules/data-streams/src/test/java/org/elasticsearch/datastreams/UpdateTimeSeriesRangeServiceTests.java uses or overrides a deprecated API.  
> Note: Recompile with -Xlint:deprecation for details.

> Task :distribution:docker:buildAarch64WolfiDockerImage FAILED  
> Exec output and error:  
> | Output for docker:#0 building with "desktop-linux" instance using docker driver  
> |  
> | #1 [internal] load build definition from Dockerfile  
> | #1 transferring dockerfile: 7.72kB 0.0s done  
> | #1 DONE 0.1s  
> |  
> | #2 [internal] load metadata for [docker.elastic.co/wolfi/chainguard-base:latest@sha256:ec172778d432abfcd18641ec25270b2fff7c22ff9956d44c495860cdb0477357](http://docker.elastic.co/wolfi/chainguard-base:latest@sha256:ec172778d432abfcd18641ec25270b2fff7c22ff9956d44c495860cdb0477357)
> 
> | #2 ERROR: pull access denied, repository does not exist or may require authorization: server message: insufficient\_scope: authorization failed |
> | --- |
> | \> [internal] load metadata for [docker.elastic.co/wolfi/chainguard-base:latest@sha256:ec172778d432abfcd18641ec25270b2fff7c22ff9956d44c495860cdb0477357:](http://docker.elastic.co/wolfi/chainguard-base:latest@sha256:ec172778d432abfcd18641ec25270b2fff7c22ff9956d44c495860cdb0477357:) |
> | ------ |
> | Dockerfile:72 |
> | -------------------- |
> | 70 |
> | 71 |
> | 72 |
> | 73 |
> | 74 |
> | -------------------- |
> | ERROR: failed to build: failed to solve: [docker.elastic.co/wolfi/chainguard-base:latest@sha256:ec172778d432abfcd18641ec25270b2fff7c22ff9956d44c495860cdb0477357:](http://docker.elastic.co/wolfi/chainguard-base:latest@sha256:ec172778d432abfcd18641ec25270b2fff7c22ff9956d44c495860cdb0477357:) failed to resolve source metadata for [docker.elastic.co/wolfi/chainguard-base:latest@sha256:ec172778d432abfcd18641ec25270b2fff7c22ff9956d44c495860cdb0477357:](http://docker.elastic.co/wolfi/chainguard-base:latest@sha256:ec172778d432abfcd18641ec25270b2fff7c22ff9956d44c495860cdb0477357:) pull access denied, repository does not exist or may require authorization: server message: insufficient\_scope: authorization failed |

> Task :libs:x-content:test

I have Gradle 9 and OpenJDK 21. Is there a solution for this?
