6.4 build failed

Hi,

I tried to build 6.4 but it failed.
I googled it for long time :disappointed_relieved:

If my step has errors, please correct me.

amazon linux, java "1.8.0_171"

$git clone -b 6.x https://github.com/elastic/elasticsearch.git
$cd elasticsearch
$./gradlew assemble --info

$ ./gradlew assemble --info
Initialized native services in: /home/ec2-user/.gradle/native
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/4.8.1/userguide/gradle_daemon.html.
Starting process 'Gradle build daemon'. Working directory: /home/ec2-user/.gradle/daemon/4.8.1 Command: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.38.amzn1.x86_64/bin/java -Xmx2g -Dfile.encoding=UTF-8 -Duser.country=KR -Duser.language=ko -Duser.variant -cp /home/ec2-user/.gradle/wrapper/dists/gradle-4.8.1-all/6fmj4nezasjg1b7kkmy10xgo2/gradle-4.8.1/lib/gradle-launcher-4.8.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 4.8.1
Successfully started process 'Gradle build daemon'
An attempt to start the daemon took 0.795 secs.
The client will now receive all logging from the daemon (pid: 23275). The daemon log file: /home/ec2-user/.gradle/daemon/4.8.1/daemon-23275.out.log
Daemon will be stopped at the end of the build stopping after processing
Using 2 worker leases.
Starting Build

> Configure project :buildSrc
Evaluating project ':buildSrc' using build file '/home/ec2-user/6.4/elasticsearch/buildSrc/build.gradle'.
Selected primary task 'build' from project :
:compileJava (Thread[Daemon worker,5,main]) started.

> Task :buildSrc:compileJava UP-TO-DATE
Skipping task ':buildSrc:compileJava' as it is up-to-date.
:compileJava (Thread[Daemon worker,5,main]) completed. Took 0.297 secs.
:compileGroovy (Thread[Daemon worker,5,main]) started.


...



> Task :buildSrc:testClasses UP-TO-DATE
Skipping task ':buildSrc:testClasses' as it has no actions.
:testClasses (Thread[Daemon worker,5,main]) completed. Took 0.0 secs.
:test (Thread[Daemon worker,5,main]) started.
Gradle Test Executor 1 started executing tests.

> Task :buildSrc:testtests completed
Task ':buildSrc:test' is not up-to-date because:
  Task has failed previously.
Starting process 'Gradle Test Executor 1'. Working directory: /home/ec2-user/6.4/elasticsearch/buildSrc Command: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.38.amzn1.x86_64/bin/java -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dorg.gradle.native=false -Dfile.encoding=UTF-8 -Duser.country=KR -Duser.language=ko -Duser.variant -ea -cp /home/ec2-user/.gradle/caches/4.8.1/workerMain/gradle-worker.jar worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 1'
Successfully started process 'Gradle Test Executor 1'

org.elasticsearch.gradle.precommit.NamingConventionsTaskIT > testNameCheckFailsAsItShould STANDARD_ERROR
    7월 06, 2018 9:33:28 오후 com.carrotsearch.randomizedtesting.ThreadLeakControl checkThreadLeaks
    경고: Will linger awaiting termination of 1 leaked thread(s).

org.elasticsearch.gradle.precommit.NamingConventionsTaskIT > testNameCheckFailsAsItShould FAILED
    java.lang.AssertionError: task did not run
        at __randomizedtesting.SeedInfo.seed([1577DE1873734A15:3B55630949E9AF13]:0)
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at org.junit.Assert.assertNotNull(Assert.java:712)
        at org.elasticsearch.gradle.precommit.NamingConventionsTaskIT.testNameCheckFailsAsItShould(NamingConventionsTaskIT.java:30)

org.elasticsearch.gradle.precommit.NamingConventionsTaskIT > testPluginCanBeApplied STANDARD_ERROR
    7월 06, 2018 9:33:29 오후 com.carrotsearch.randomizedtesting.ThreadLeakControl checkThreadLeaks
    경고: Will linger awaiting termination of 1 leaked thread(s).

org.elasticsearch.gradle.precommit.NamingConventionsTaskIT > testPluginCanBeApplied FAILED
    org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /home/ec2-user/6.4/elasticsearch/buildSrc/src/testKit/namingConventionsSelfTest with arguments [hello, -s, -PcheckForTestsInMain=false]

    Output:

    > Configure project :
    Project evaluation failed including an error in afterEvaluate {}.
    org.gradle.api.GradleException: Must specify license and notice file for project :
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
        at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
        at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
        at 

...



This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.