Kengo Seki created BIGTOP-3952:
----------------------------------

             Summary: Fix toolchain to download Maven from archive.apache.org 
instead of dlcdn.apache.org
                 Key: BIGTOP-3952
                 URL: https://issues.apache.org/jira/browse/BIGTOP-3952
             Project: Bigtop
          Issue Type: Bug
          Components: toolchain
            Reporter: Kengo Seki
            Assignee: Kengo Seki


[bigtop_toolchain tries to download Maven 
3.6.x|https://github.com/apache/bigtop/blob/release-3.2.0/bigtop_toolchain/manifests/maven.pp#L21]
 [from 
dlcdn.apache.org|https://github.com/apache/bigtop/blob/release-3.2.0/bigtop_toolchain/lib/puppet/parser/functions/latest_maven_binary.rb#L20],
 but those versions are no longer published:

{code}
$ curl -L https://dlcdn.apache.org/maven/maven-3/?F=0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Index of /maven/maven-3</title>
 </head>
 <body>
<h1>Index of /maven/maven-3</h1>
<ul><li><a href="/maven/"> Parent Directory</a></li>
<li><a href="3.8.8/"> 3.8.8/</a></li>
<li><a href="3.9.2/"> 3.9.2/</a></li>
</ul>
</body></html>
{code}

Therefore running toolchain fails as follows:

{code}
$ git clone https://github.com/apache/bigtop.git
$ cd bigtop
$ sudo bigtop_toolchain/bin/puppetize.sh 
$ ./gradlew toolchain

...

Error: /usr/bin/wget 
https://dlcdn.apache.org//maven/maven-3//binaries/apache-maven--bin.tar.gz 
returned 8 instead of one of [0]
Notice: /Stage[main]/Bigtop_toolchain::Maven/Exec[Download Maven binaries 
signature]: Dependency Exec[Download Maven binaries] has failures: true
Notice: /Stage[main]/Bigtop_toolchain::Maven/Exec[Verify Maven binaries 
signature]: Dependency Exec[Download Maven binaries] has failures: true
Notice: /Stage[main]/Bigtop_toolchain::Maven/Exec[Extract Maven binaries]: 
Dependency Exec[Download Maven binaries] has failures: true
Error: /Stage[main]/Bigtop_toolchain::Maven/Exec[Download Maven 
binaries]/returns: change from notrun to 0 failed: /usr/bin/wget 
https://dlcdn.apache.org//maven/maven-3//binaries/apache-maven--bin.tar.gz 
returned 8 instead of one of [0]
{code}

Upgrading Maven to 3.8.x probably works, but those versions also will be 
removed from dlcdn.apache.org someday, so I'd rather change the download site 
to archive.apache.org.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to