Support Questions
Find answers, ask questions, and share your expertise

Error while installation of Metron . Project gets successfully build but while using this command "vagrant up" it throws below error. Kindly suggest on how can i sort this

Highlighted

Error while installation of Metron . Project gets successfully build but while using this command "vagrant up" it throws below error. Kindly suggest on how can i sort this

New Contributor

fatal: [node1 -> localhost]: FAILED! => {"changed": true, "cmd": "cd /home/metron/Desktop/Metron/apache-metron-0.4.1-rc4/metron-deployment/playbooks/../../metron-deployment && mvn clean package -DskipTests -P build-rpms", "delta": "0:00:33.896183", "end": "2018-04-03 14:26:15.724914", "failed": true, "rc": 1, "start": "2018-04-03 14:25:41.828731", "stderr": "The command '/bin/sh -c yum install -y tar' returned a non-zero code: 1", "stdout": "[INFO] Scanning for projects...\n[INFO] ------------------------------------------------------------------------\n[INFO] Reactor Build Order:\n[INFO] \n[INFO] metron-deployment\n[INFO] metron-rpm\n[INFO] \n[INFO] ------------------------------------------------------------------------\n[INFO] Building metron-deployment 0.4.1\n[INFO] ------------------------------------------------------------------------\n[INFO] \n[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ metron-deployment ---\n[INFO] \n[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-deployment ---\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment ---\n[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/metron/Desktop/Metron/apache-metron-0.4.1-rc4/metron-deployment/target/jacoco.exec\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-deployment ---\n[INFO] Skipping JaCoCo execution due to missing execution data file.\n[INFO] \n[INFO] ------------------------------------------------------------------------\n[INFO] Building metron-rpm 0.4.1\n[INFO] ------------------------------------------------------------------------\n[INFO] \n[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ metron-rpm ---\n[INFO] Deleting /home/metron/Desktop/Metron/apache-metron-0.4.1-rc4/metron-deployment/packaging/docker/rpm-docker/SOURCES (includes = [], excludes = [])\n[INFO] \n[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-rpm ---\n[INFO] \n[INFO] --- maven-antrun-plugin:1.1:run (default) @ metron-rpm ---\n[INFO] Executing tasks\n [echo] ******** Displaying value of property ********\n [echo] ../../../..\n[INFO] Executed tasks\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-rpm ---\n[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/metron/Desktop/Metron/apache-metron-0.4.1-rc4/metron-deployment/packaging/docker/rpm-docker/target/jacoco.exec\n[INFO] \n[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-rpm ---\n[INFO] Skipping JaCoCo execution due to missing execution data file.\n[INFO] \n[INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy-rpm-sources) @ metron-rpm ---\n[INFO] Using 'UTF-8' encoding to copy filtered resources.\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] Copying 1 resource\n[INFO] \n[INFO] --- exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm ---\nSending build context to Docker daemon 557.1 kB\rSending build context to Docker daemoMB\rSending build context to Docker daemon 62.39 MB\rSending build context to Docker daemon 62.95 MB\rSending build context to Docker daemon 63.5 MB\rSending build context to Docker daemon 64.06 MB\rSending build context to Docker daemon 64.62 MB\rSending build context to Docker daemon 65.18 MB\rSending build context to Docker daemon 65.73 MB\rSending build context to Docker daemon 66.29 MB\rSending build context to Docker daemon 832.8 MB\rSending build context to Docker daemon 833.4 MB\rSending build context to Docker daemon 833.5 MB\r\r\nStep 1 : FROM centos:centos6\n ---> 26cb1244b171\nStep 2 : RUN yum install -y tar\n ---> Running in 4bde44b63a95\nLoaded plugins: fastestmirror, ovl\nSetting up Install Process\n\u001b[91mError: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again\n\u001b[0mCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=container error was\n14: PYCURL ERROR 6 - \"Couldn't resolve host 'mirrorlist.centos.org'\"\n[ERROR] Command execution failed.\norg.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)\n\tat org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)\n\tat org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)\n\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)\n\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)\n\tat org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)\n\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)\n\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)\n\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)\n\tat org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)\n\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)\n\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)\n\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)\n\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)\n\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)\n\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:199)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.lang.reflect.Method.invoke(Method.java:498)\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)\n\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)\n[INFO] ------------------------------------------------------------------------\n[INFO] Reactor Summary:\n[INFO] \n[INFO] metron-deployment .................................. SUCCESS [ 0.913 s]\n[INFO] metron-rpm ......................................... FAILURE [ 31.397 s]\n[INFO] ------------------------------------------------------------------------\n[INFO] BUILD FAILURE\n[INFO] ------------------------------------------------------------------------\n[INFO] Total time: 32.462 s\n[INFO] Finished at: 2018-04-03T14:26:15+05:30\n[INFO] Final Memory: 16M/528M\n[INFO] ------------------------------------------------------------------------\n[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (docker-build) on project metron-rpm: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]\n[ERROR] \n[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.\n[ERROR] Re-run Maven using the -X switch to enable full debug logging.\n[ERROR] \n[ERROR] For more information about the errors and possible solutions, please read the following articles:\n[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException\n[ERROR] \n[ERROR] After correcting the problems, you can resume the build with the command\n[ERROR] mvn <goals> -rf :metron-rpm", "stdout_lines": ["[INFO] Scanning for projects...", "[INFO] ------------------------------------------------------------------------", "[INFO] Reactor Build Order:", "[INFO] ", "[INFO] metron-deployment", "[INFO] metron-rpm", "[INFO] ", "[INFO] ------------------------------------------------------------------------", "[INFO] Building metron-deployment 0.4.1", "[INFO] ------------------------------------------------------------------------", "[INFO] ", "[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ metron-deployment ---", "[INFO] ", "[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-deployment ---", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment ---", "[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/metron/Desktop/Metron/apache-metron-0.4.1-rc4/metron-deployment/target/jacoco.exec", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-deployment ---", "[INFO] Skipping JaCoCo execution due to missing execution data file.", "[INFO] ", "[INFO] ------------------------------------------------------------------------", "[INFO] Building metron-rpm 0.4.1", "[INFO] ------------------------------------------------------------------------", "[INFO] ", "[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ metron-rpm ---", "[INFO] Deleting /home/metron/Desktop/Metron/apache-metron-0.4.1-rc4/metron-deployment/packaging/docker/rpm-docker/SOURCES (includes = [], excludes = [])", "[INFO] ", "[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ metron-rpm ---", "[INFO] ", "[INFO] --- maven-antrun-plugin:1.1:run (default) @ metron-rpm ---", "[INFO] Executing tasks", " [echo] ******** Displaying value of property ********", " [echo] ../../../..", "[INFO] Executed tasks", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-rpm ---", "[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/metron/Desktop/Metron/apache-metron-0.4.1-rc4/metron-deployment/packaging/docker/rpm-docker/target/jacoco.exec", "[INFO] ", "[INFO] --- jacoco-maven-plugin:0.7.9:report (report) @ metron-rpm ---", "[INFO] Skipping JaCoCo execution due to missing execution data file.", "[INFO] ", "[INFO] --- maven-resources-plugin:3.0.1:copy-resources (copy-rpm-sources) @ metron-rpm ---", "[INFO] Using 'UTF-8' encoding to copy filtered resources.", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] Copying 1 resource", "[INFO] ", "[INFO] --- exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm ---", "Sending build context to Docker daemon 557.1 kB", "Sending build context to Docker daemon 1.114 MB", "Sending build context to Docker daemon 1.671 MB", "Sending build context to Docker daemon 2.228 MB", "Sending build context to Docker daemon 2.785 MB", , "Sending build context to Docker daemon 833.5 MB", "", "Step 1 : FROM centos:centos6", " ---> 26cb1244b171", "Step 2 : RUN yum install -y tar", " ---> Running in 4bde44b63a95", "Loaded plugins: fastestmirror, ovl", "Setting up Install Process", "\u001b[91mError: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again", "\u001b[0mCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=container error was", "14: PYCURL ERROR 6 - \"Couldn't resolve host 'mirrorlist.centos.org'\"", "[ERROR] Command execution failed.", "org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)", "\tat org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)", "\tat org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)", "\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764)", "\tat org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711)", "\tat org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289)", "\tat org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)", "\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)", "\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)", "\tat org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)", "\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)", "\tat org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)", "\tat org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)", "\tat org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)", "\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)", "\tat org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)", "\tat org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)", "\tat org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)", "\tat org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)", "\tat org.apache.maven.cli.MavenCli.main(MavenCli.java:199)", "\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", "\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)", "\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)", "\tat java.lang.reflect.Method.invoke(Method.java:498)", "\tat org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)", "\tat org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)", "\tat org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)", "\tat org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)", "[INFO] ------------------------------------------------------------------------", "[INFO] Reactor Summary:", "[INFO] ", "[INFO] metron-deployment .................................. SUCCESS [ 0.913 s]", "[INFO] metron-rpm ......................................... FAILURE [ 31.397 s]", "[INFO] ------------------------------------------------------------------------", "[INFO] BUILD FAILURE", "[INFO] ------------------------------------------------------------------------", "[INFO] Total time: 32.462 s", "[INFO] Finished at: 2018-04-03T14:26:15+05:30", "[INFO] Final Memory: 16M/528M", "[INFO] ------------------------------------------------------------------------", "[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (docker-build) on project metron-rpm: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]", "[ERROR] ", "[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.", "[ERROR] Re-run Maven using the -X switch to enable full debug logging.", "[ERROR] ", "[ERROR] For more information about the errors and possible solutions, please read the following articles:", "[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException", "[ERROR] ", "[ERROR] After correcting the problems, you can resume the build with the command", "[ERROR] mvn <goals> -rf :metron-rpm"], "warnings": []} PLAY RECAP ********************************************************************* node1 : ok=3 changed=1 unreachable=0 failed=1 Ansible failed to complete successfully. Any error output should be visible above. Please fix these errors and try again.

1 REPLY 1

Re: Error while installation of Metron . Project gets successfully build but while using this command "vagrant up" it throws below error. Kindly suggest on how can i sort this

Explorer

I see this error: Couldn't resolve host 'mirrorlist.centos.org'

Are you behind a firewall? Anything else that would block you from connecting to that host?

Don't have an account?