Skip to content

[CI][Java] Maven 3.9.3 causing Docker build failure #37022

Closed

Description

@zinking

Describe the bug, including details regarding any error messages, version, and platform.

running:

archery docker run java-jni-manylinux-2014

causing

java-jni-manylinux-201x.dockerfile:38
--------------------
  37 |     ARG maven=3.9.3
  38 | >>> RUN yum install -y java-$java-openjdk-devel && \
  39 | >>>       yum clean all && \
  40 | >>>       curl https://dlcdn.apache.org/maven/maven-3/${maven}/binaries/apache-maven-${maven}-bin.tar.gz | \
  41 | >>>         tar xfz - -C /usr/local && \
  42 | >>>       ln -s /usr/local/apache-maven-${maven}/bin/mvn /usr/local/bin
  43 |
--------------------
ERROR: failed to solve: process "/bin/bash -i -c yum install -y java-$java-openjdk-devel &&       yum clean all &&       curl https://dlcdn.apache.org/maven/maven-3/${maven}/binaries/apache-maven-${maven}-bin.tar.gz |         tar xfz - -C /usr/local &&       ln -s /usr/local/apache-maven-${maven}/bin/mvn /usr/local/bin" did not complete successfully: exit code: 2
Service 'java-jni-manylinux-2014' failed to build
Error: `docker-compose --file /root/zhenw/arrow/docker-compose.yml build --build-arg BUILDKIT_INLINE_CACHE=1 java-jni-manylinux-2014` exited with a non-zero exit code 1, see the process log above.

it seems the link for maven version 3.5.4 is no longer available

curl https://dlcdn.apache.org/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>

Component(s)

Release

Activity

  1. zinking commented on Aug 4, 2023

    @zinking
    Author

    the maven version in .env seems 3.5.4 but the argument is actually correct.

    #11 ERROR: process "/bin/bash -i -c curl https://dlcdn.apache.org/maven/maven-3/${maven}/binaries/apache-maven-${maven}-bin.tar.gz |         tar xfz - -C /usr/local" did not complete successfully: exit code: 2
    ------
     > [ 6/11] RUN curl https://dlcdn.apache.org/maven/maven-3/3.9.3/binaries/apache-maven-3.9.3-bin.tar.gz |         tar xfz - -C /usr/local:
    ^M100   196  100   196    0     0    914      0 --:--:-- --:--:-- --:--:--   911
    0.493
    0.493 gzip: stdin: not in gzip format
    0.494 tar: Child returned status 1
    0.494 tar: Error is not recoverable: exiting now
    
  2. zinking commented on Aug 4, 2023

    @zinking
    Author

    3.9.4 seems works, let me create a pr

  3. changed the title [-]maven 3.5.4 causing docker build failure[/-] [+]maven 3.9.3 causing docker build failure[/+] on Aug 4, 2023
  4. changed the title [-]maven 3.9.3 causing docker build failure[/-] [+][CI][Java] Maven 3.9.3 causing Docker build failure[/+] on Aug 6, 2023
  5. zinking commented on Aug 8, 2023

    @zinking
    Author

    as discussed centos7 is not supported.

  6. kou commented on Aug 11, 2023

    @kou
    Member

    This is also happen on Ubuntu 22.04: https://github.com/ursacomputing/crossbow/actions/runs/5818829907/job/15776016691#step:6:3163

    > [3/5] RUN yum install -y java-1.8.0-openjdk-devel &&       yum clean all &&       curl https://dlcdn.apache.org/maven/maven-3/3.9.3/binaries/apache-maven-3.9.3-bin.tar.gz |         tar xfz - -C /usr/local &&       ln -s /usr/local/apache-maven-3.9.3/bin/mvn /usr/local/bin:
    81.83 
    81.83 Complete!
    82.01 Loaded plugins: fastestmirror, ovl
    82.09 Cleaning repos: base centos-sclo-rh epel extras updates
    82.15 Cleaning up list of fastest mirrors
      0   196    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    100   196  100   196    0     0    281      0 --:--:-- --:--:-- --:--:--   281
    82.87 
    82.87 gzip: stdin: not in gzip format
    82.87 tar: Child returned status 1
    82.87 tar: Error is not recoverable: exiting now
    ------
    java-jni-manylinux-201x.dockerfile:38
    --------------------
      37 |     ARG maven=3.9.3
      38 | >>> RUN yum install -y java-$java-openjdk-devel && \
      39 | >>>       yum clean all && \
      40 | >>>       curl [https://dlcdn.apache.org/maven/maven-3/${maven}/binaries/apache-maven-${maven}-bin.tar.gz](https://dlcdn.apache.org/maven/maven-3/$%7Bmaven%7D/binaries/apache-maven-$%7Bmaven%7D-bin.tar.gz) | \
      41 | >>>         tar xfz - -C /usr/local && \
      42 | >>>       ln -s /usr/local/apache-maven-${maven}/bin/mvn /usr/local/bin
      43 |     
    --------------------
    ERROR: failed to solve: process "/bin/bash -i -c yum install -y java-$java-openjdk-devel &&       yum clean all &&       curl [https://dlcdn.apache.org/maven/maven-3/${maven}/binaries/apache-maven-${maven}-bin.tar.gz](https://dlcdn.apache.org/maven/maven-3/$%7Bmaven%7D/binaries/apache-maven-$%7Bmaven%7D-bin.tar.gz) |         tar xfz - -C /usr/local &&       ln -s /usr/local/apache-maven-${maven}/bin/mvn /usr/local/bin" did not complete successfully: exit code: 2
    Service 'java-jni-manylinux-2014' failed to build : Build failed
    Error: `docker-compose --file /home/runner/work/crossbow/crossbow/arrow/docker-compose.yml build --build-arg BUILDKIT_INLINE_CACHE=1 java-jni-manylinux-2014` exited with a non-zero exit code 1, see the process log above.
    
  7. reopened this on Aug 11, 2023
  8. added a commit that references this issue on Aug 11, 2023
  9. added a commit that references this issue on Aug 11, 2023
  10. added this to the 14.0.0 milestone on Aug 11, 2023
  11. added a commit that references this issue on Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions