Thanks, NPM seems to have been the issue,

Kev



On Thu, May 18, 2017 at 7:30 AM, Nick Allen <[email protected]> wrote:

> You need Docker installed with the daemon running.  You also need Node and
> NPM for the UI stuff.
>
> Jon recently updated the docs to reflect this.
>
> On Wed, May 17, 2017 at 5:23 PM, Kevin Waterson <[email protected]>
> wrote:
>
>> $ sh incubator-metron/metron-deployment/scripts/platform-info.sh
>> incubator-metron/metron-deployment/scripts/platform-info.sh: 23:
>> incubator-metron/metron-deployment/scripts/platform-info.sh: Bad
>> substitution
>> cat: /home/kevin/metron/docs/../../pom.xml: No such file or directory
>> Metron
>> fatal: Not a git repository (or any of the parent directories): .git
>> incubator-metron/metron-deployment/scripts/platform-info.sh: 31: [:
>> unexpected operator
>> --
>> ansible 2.0.0.2
>>   config file = /etc/ansible/ansible.cfg
>>   configured module search path = Default w/o overrides
>> --
>> Vagrant 1.9.4
>> --
>> Python 2.7.12
>> --
>> Apache Maven 3.3.9
>> Maven home: /usr/share/maven
>> Java version: 1.8.0_131, vendor: Oracle Corporation
>> Java home: /usr/lib/jvm/java-8-oracle/jre
>> Default locale: en_AU, platform encoding: UTF-8
>> OS name: "linux", version: "4.4.0-75-generic", arch: "amd64", family:
>> "unix"
>> --
>> incubator-metron/metron-deployment/scripts/platform-info.sh: 64:
>> incubator-metron/metron-deployment/scripts/platform-info.sh: docker: not
>> found
>> --
>> node
>> incubator-metron/metron-deployment/scripts/platform-info.sh: 69:
>> incubator-metron/metron-deployment/scripts/platform-info.sh: node: not
>> found
>> --
>> npm
>> incubator-metron/metron-deployment/scripts/platform-info.sh: 74:
>> incubator-metron/metron-deployment/scripts/platform-info.sh: npm: not
>> found
>> --
>> Linux sirius 4.4.0-75-generic #96-Ubuntu SMP Thu Apr 20 09:56:33 UTC 2017
>> x86_64 x86_64 x86_64 GNU/Linux
>> --
>> Unable to detect system resources for
>> kevin@sirius:~/metron/docs$
>>
>> On Wed, May 17, 2017 at 7:56 PM, [email protected] <[email protected]>
>> wrote:
>>
>>> "[INFO] --- exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm
>>> ---", "[ERROR] Command execution failed.", "java.io.IOException: Cannot run
>>> program \"docker\" (in directory \"/home/kevin/metron/docs/incu
>>> bator-metron/metron-deployment/packaging/docker/rpm-docker\"): error=2,
>>> No such file or directory"
>>>
>>> Can you run the platform-info.sh script?
>>>
>>> Usually when I have issues spinning up Ansible I'll run the mvn commands
>>> manually because it provides output in a much more sane manner, instead of
>>> bunching it all together.
>>>
>>> Jon
>>>
>>> On Tue, May 16, 2017, 11:52 PM Kevin Waterson <[email protected]>
>>> wrote:
>>>
>>>> This is the full dev platform.
>>>> Build seems to fail with ansible
>>>>
>>>> Any thoughts on this?
>>>>
>>>> Kind regards
>>>> Kevin
>>>>
>>>> TASK [metron-builder : Build Metron RPMs] ******************************
>>>> ********
>>>> fatal: [node1 -> localhost]: FAILED! => {"changed": true, "cmd": "cd
>>>> /home/kevin/metron/docs/incubator-metron/metron-deployment/p
>>>> laybooks/../../metron-deployment && mvn clean package -DskipTests -P
>>>> build-rpms", "delta": "0:00:03.042597", "end": "2017-05-17
>>>> 13:50:05.995330", "failed": true, "rc": 1, "start": "2017-05-17
>>>> 13:50:02.952733", "stderr": "", "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.0\n[INFO] ------------------------------
>>>> ------------------------------------------\n[INFO] \n[INFO] ---
>>>> maven-clean-plugin:2.5:clean (default-clean) @ 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/kevi
>>>> n/metron/docs/incubator-metron/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.0\n[INFO] ------------------------------
>>>> ------------------------------------------\n[INFO] \n[INFO] ---
>>>> maven-clean-plugin:3.0.0:clean (default-clean) @ 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/repositor
>>>> y/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-r
>>>> untime.jar=destfile=/home/kevin/metron/docs/incubator-metron
>>>> /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] \n[INFO] ---
>>>> exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm ---\n[ERROR]
>>>> Command execution failed.\njava.io.IOException: Cannot run program
>>>> \"docker\" (in directory \"/home/kevin/metron/docs/incu
>>>> bator-metron/metron-deployment/packaging/docker/rpm-docker\"):
>>>> error=2, No such file or directory\n\tat java.lang.ProcessBuilder.start
>>>> (ProcessBuilder.java:1048)\n\tat 
>>>> java.lang.Runtime.exec(Runtime.java:620)\n\tat
>>>> org.apache.commons.exec.launcher.Java13CommandLauncher.exec(
>>>> Java13CommandLauncher.java:61)\n\tat org.apache.commons.exec.Defaul
>>>> tExecutor.launch(DefaultExecutor.java:279)\n\tat
>>>> org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)\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.executeMoj
>>>> o(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.b
>>>> uildProject(LifecycleModuleBuilder.java:116)\n\tat
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>>>> uildProject(LifecycleModuleBuilder.java:80)\n\tat
>>>> org.apache.maven.lifecycle.internal.builder.singlethreaded.S
>>>> ingleThreadedBuilder.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(DelegatingMe
>>>> thodAccessorImpl.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.mainWithEx
>>>> itCode(Launcher.java:415)\n\tat org.codehaus.plexus.classworld
>>>> s.launcher.Launcher.main(Launcher.java:356)\nCaused by:
>>>> java.io.IOException: error=2, No such file or directory\n\tat
>>>> java.lang.UNIXProcess.forkAndExec(Native Method)\n\tat
>>>> java.lang.UNIXProcess.<init>(UNIXProcess.java:247)\n\tat
>>>> java.lang.ProcessImpl.start(ProcessImpl.java:134)\n\tat
>>>> java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)\n\t... 30
>>>> more\n[INFO] ------------------------------
>>>> ------------------------------------------\n[INFO] Reactor
>>>> Summary:\n[INFO] \n[INFO] metron-deployment 
>>>> ..................................
>>>> SUCCESS [  0.603 s]\n[INFO] metron-rpm 
>>>> .........................................
>>>> FAILURE [  1.068 s]\n[INFO] ------------------------------
>>>> ------------------------------------------\n[INFO] BUILD
>>>> FAILURE\n[INFO] ------------------------------
>>>> ------------------------------------------\n[INFO] Total time: 1.809
>>>> s\n[INFO] Finished at: 2017-05-17T13:50:05+10:00\n[INFO] Final Memory:
>>>> 16M/391M\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. Cannot run program \"docker\"
>>>> (in directory \"/home/kevin/metron/docs/incu
>>>> bator-metron/metron-deployment/packaging/docker/rpm-docker\"):
>>>> error=2, No such file or directory -> [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/MojoExecuti
>>>> onException\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.0", "[INFO]
>>>> ------------------------------------------------------------------------",
>>>> "[INFO] ", "[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
>>>> metron-deployment ---", "[INFO] ", "[INFO] ---
>>>> jacoco-maven-plugin:0.7.9:prepare-agent (default) @ metron-deployment
>>>> ---", "[INFO] argLine set to -javaagent:/root/.m2/repositor
>>>> y/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-r
>>>> untime.jar=destfile=/home/kevin/metron/docs/incubator-metron
>>>> /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.0", "[INFO] ------------------------------
>>>> ------------------------------------------", "[INFO] ", "[INFO] ---
>>>> maven-clean-plugin:3.0.0:clean (default-clean) @ 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/kevi
>>>> n/metron/docs/incubator-metron/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] ",
>>>> "[INFO] --- exec-maven-plugin:1.5.0:exec (docker-build) @ metron-rpm ---",
>>>> "[ERROR] Command execution failed.", "java.io.IOException: Cannot run
>>>> program \"docker\" (in directory \"/home/kevin/metron/docs/incu
>>>> bator-metron/metron-deployment/packaging/docker/rpm-docker\"):
>>>> error=2, No such file or directory", "\tat 
>>>> java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)",
>>>> "\tat java.lang.Runtime.exec(Runtime.java:620)", "\tat
>>>> org.apache.commons.exec.launcher.Java13CommandLauncher.exec(
>>>> Java13CommandLauncher.java:61)", "\tat org.apache.commons.exec.Defaul
>>>> tExecutor.launch(DefaultExecutor.java:279)", "\tat
>>>> org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:336)",
>>>> "\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.executeMoj
>>>> o(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.b
>>>> uildProject(LifecycleModuleBuilder.java:116)", "\tat
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.b
>>>> uildProject(LifecycleModuleBuilder.java:80)", "\tat
>>>> org.apache.maven.lifecycle.internal.builder.singlethreaded.S
>>>> ingleThreadedBuilder.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)",
>>>> "Caused by: java.io.IOException: error=2, No such file or directory", "\tat
>>>> java.lang.UNIXProcess.forkAndExec(Native Method)", "\tat
>>>> java.lang.UNIXProcess.<init>(UNIXProcess.java:247)", "\tat
>>>> java.lang.ProcessImpl.start(ProcessImpl.java:134)", "\tat
>>>> java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)", "\t... 30
>>>> more", "[INFO] ------------------------------
>>>> ------------------------------------------", "[INFO] Reactor
>>>> Summary:", "[INFO] ", "[INFO] metron-deployment
>>>> .................................. SUCCESS [  0.603 s]", "[INFO]
>>>> metron-rpm ......................................... FAILURE [  1.068
>>>> s]", "[INFO] ------------------------------
>>>> ------------------------------------------", "[INFO] BUILD FAILURE",
>>>> "[INFO] 
>>>> ------------------------------------------------------------------------",
>>>> "[INFO] Total time: 1.809 s", "[INFO] Finished at:
>>>> 2017-05-17T13:50:05+10:00", "[INFO] Final Memory: 16M/391M", "[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. Cannot run
>>>> program \"docker\" (in directory \"/home/kevin/metron/docs/incu
>>>> bator-metron/metron-deployment/packaging/docker/rpm-docker\"):
>>>> error=2, No such file or directory -> [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.
>>>>
>>>> --
>>>
>>> Jon
>>>
>>
>>
>

Reply via email to