You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Erin Boyd <eb...@redhat.com> on 2014/10/02 22:27:13 UTC

current trunk build failing since Monday

Is anyone else's current trunk failing with the following error:
[DEBUG]   (f) nodeVersion = v0.10.26
[DEBUG]   (f) npmVersion = 1.4.3
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@f8b7298
[DEBUG]   (f) workingDirectory = /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
[DEBUG] -- end configuration --
[INFO] Node v0.10.26 is already installed.
[INFO] Found NPM version 1.4.3
[INFO] 
[INFO] --- frontend-maven-plugin:0.0.14:npm (npm install) @ ambari-admin ---
[DEBUG] Configuring mojo com.github.eirslett:frontend-maven-plugin:0.0.14:npm from plugin realm ClassRealm[plugin>com.github.eirslett:frontend-maven-plugin:0.0.14, parent: sun.misc.Launcher$AppClassLoader@138d107f]
[DEBUG] Configuring mojo 'com.github.eirslett:frontend-maven-plugin:0.0.14:npm' with basic configurator -->
[DEBUG]   (f) arguments = install --unsafe-perm
[DEBUG]   (f) workingDirectory = /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
[DEBUG] -- end configuration --
[INFO] Running 'npm install --unsafe-perm --color=false' in /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
[INFO] npm WARN package.json adminconsole@0.0.0 No description
[INFO] npm WARN package.json adminconsole@0.0.0 No repository field.
[INFO] npm WARN package.json adminconsole@0.0.0 No README data
[INFO] 
[INFO] > adminconsole@0.0.0 postinstall /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
[INFO] > bower install
[INFO] 
[INFO] bower ESUDO         Cannot be run with sudo
[INFO] 
[INFO] Additional error details:
[INFO] Since bower is a user command, there is no need to execute it with superuser permissions.
[INFO] If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
[INFO] 
[INFO] http://www.joyent.com/blog/installing-node-and-npm
[INFO] https://gist.github.com/isaacs/579814
[INFO] 
[INFO] You can however run a command with sudo using --allow-root option
[INFO] 
[INFO] npm ERR! adminconsole@0.0.0 postinstall: `bower install`
[INFO] npm ERR! Exit status 1
[INFO] npm ERR! 
[INFO] npm ERR! Failed at the adminconsole@0.0.0 postinstall script.
[INFO] npm ERR! This is most likely a problem with the adminconsole package,
[INFO] npm ERR! not with npm itself.
[INFO] npm ERR! Tell the author that this fails on your system:
[INFO] npm ERR!     bower install
[INFO] npm ERR! You can get their info via:
[INFO] npm ERR!     npm owner ls adminconsole
[INFO] npm ERR! There is likely additional logging output above.
[INFO] npm ERR! System Linux 2.6.32-431.20.3.el6.x86_64
[INFO] npm ERR! command "/root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node" "/root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/node/npm/bin/npm-cli.js" "install" "--unsafe-perm" "--color=false"
[INFO] npm ERR! cwd /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
[INFO] npm ERR! node -v v0.10.26
[INFO] npm ERR! npm -v 1.4.3
[INFO] npm ERR! code ELIFECYCLE
[INFO] npm ERR! 
[INFO] npm ERR! Additional logging details can be found in:
[INFO] npm ERR!     /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/npm-debug.log
[INFO] npm ERR! not ok code 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Ambari Main ....................................... SUCCESS [11.055s]
[INFO] Apache Ambari Project POM ......................... SUCCESS [1.346s]
[INFO] Ambari Web ........................................ SUCCESS [1:58.936s]
[INFO] Ambari Views ...................................... SUCCESS [13.178s]
[INFO] Ambari Admin View ................................. FAILURE [3.873s]
[INFO] Ambari Server ..................................... SKIPPED
[INFO] Ambari Agent ...................................... SKIPPED
[INFO] Ambari Client ..................................... SKIPPED
[INFO] Ambari Python Client .............................. SKIPPED
[INFO] Ambari Groovy Client .............................. SKIPPED
[INFO] Ambari Shell ...................................... SKIPPED
[INFO] Ambari Python Shell ............................... SKIPPED
[INFO] Ambari Groovy Shell ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:31.656s
[INFO] Finished at: Sat Sep 27 00:22:41 EDT 2014
[INFO] Final Memory: 23M/56M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.14:npm (npm install) on project ambari-admin: 'npm install --unsafe-perm --color=false' failed. (error code 1) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.14:npm (npm install) on project ambari-admin: 'npm install --unsafe-perm --color=false' failed. (error code 1)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoFailureException: 'npm install --unsafe-perm --color=false' failed. (error code 1)

Re: current trunk build failing since Monday

Posted by Erin Boyd <eb...@redhat.com>.
Thanks, Yusaku!
I was just used to running as root.
I don't have a preference either way.  
Thanks,
Erin


----- Original Message -----
From: "Yusaku Sako" <yu...@hortonworks.com>
To: dev@ambari.apache.org
Sent: Thursday, October 2, 2014 2:46:23 PM
Subject: Re: current trunk build failing since Monday

Erin,

If you really prefer to run mvn as root, you can do "git revert
ee2b308eba8819c75b83c2b46043105aeb1e5208" locally to unblock yourself.

Yusaku

On Thu, Oct 2, 2014 at 1:37 PM, Yusaku Sako <yu...@hortonworks.com> wrote:
> Erin,
>
> If works if you run the mvn command as a non-root user, but if you are
> used to running it as root, then it breaks due to a recent change to
> set up unit tests for ambari-admin.
> We'll create a patch for this so that it can run as root as well.
> Filed https://issues.apache.org/jira/browse/AMBARI-7616 to take care
> of this.
>
> Thanks,
> Yusaku
>
>
> On Thu, Oct 2, 2014 at 1:27 PM, Erin Boyd <eb...@redhat.com> wrote:
>> Is anyone else's current trunk failing with the following error:
>> [DEBUG]   (f) nodeVersion = v0.10.26
>> [DEBUG]   (f) npmVersion = 1.4.3
>> [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@f8b7298
>> [DEBUG]   (f) workingDirectory = /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
>> [DEBUG] -- end configuration --
>> [INFO] Node v0.10.26 is already installed.
>> [INFO] Found NPM version 1.4.3
>> [INFO]
>> [INFO] --- frontend-maven-plugin:0.0.14:npm (npm install) @ ambari-admin ---
>> [DEBUG] Configuring mojo com.github.eirslett:frontend-maven-plugin:0.0.14:npm from plugin realm ClassRealm[plugin>com.github.eirslett:frontend-maven-plugin:0.0.14, parent: sun.misc.Launcher$AppClassLoader@138d107f]
>> [DEBUG] Configuring mojo 'com.github.eirslett:frontend-maven-plugin:0.0.14:npm' with basic configurator -->
>> [DEBUG]   (f) arguments = install --unsafe-perm
>> [DEBUG]   (f) workingDirectory = /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
>> [DEBUG] -- end configuration --
>> [INFO] Running 'npm install --unsafe-perm --color=false' in /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
>> [INFO] npm WARN package.json adminconsole@0.0.0 No description
>> [INFO] npm WARN package.json adminconsole@0.0.0 No repository field.
>> [INFO] npm WARN package.json adminconsole@0.0.0 No README data
>> [INFO]
>> [INFO] > adminconsole@0.0.0 postinstall /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
>> [INFO] > bower install
>> [INFO]
>> [INFO] bower ESUDO         Cannot be run with sudo
>> [INFO]
>> [INFO] Additional error details:
>> [INFO] Since bower is a user command, there is no need to execute it with superuser permissions.
>> [INFO] If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
>> [INFO]
>> [INFO] http://www.joyent.com/blog/installing-node-and-npm
>> [INFO] https://gist.github.com/isaacs/579814
>> [INFO]
>> [INFO] You can however run a command with sudo using --allow-root option
>> [INFO]
>> [INFO] npm ERR! adminconsole@0.0.0 postinstall: `bower install`
>> [INFO] npm ERR! Exit status 1
>> [INFO] npm ERR!
>> [INFO] npm ERR! Failed at the adminconsole@0.0.0 postinstall script.
>> [INFO] npm ERR! This is most likely a problem with the adminconsole package,
>> [INFO] npm ERR! not with npm itself.
>> [INFO] npm ERR! Tell the author that this fails on your system:
>> [INFO] npm ERR!     bower install
>> [INFO] npm ERR! You can get their info via:
>> [INFO] npm ERR!     npm owner ls adminconsole
>> [INFO] npm ERR! There is likely additional logging output above.
>> [INFO] npm ERR! System Linux 2.6.32-431.20.3.el6.x86_64
>> [INFO] npm ERR! command "/root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node" "/root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/node/npm/bin/npm-cli.js" "install" "--unsafe-perm" "--color=false"
>> [INFO] npm ERR! cwd /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
>> [INFO] npm ERR! node -v v0.10.26
>> [INFO] npm ERR! npm -v 1.4.3
>> [INFO] npm ERR! code ELIFECYCLE
>> [INFO] npm ERR!
>> [INFO] npm ERR! Additional logging details can be found in:
>> [INFO] npm ERR!     /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/npm-debug.log
>> [INFO] npm ERR! not ok code 0
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Ambari Main ....................................... SUCCESS [11.055s]
>> [INFO] Apache Ambari Project POM ......................... SUCCESS [1.346s]
>> [INFO] Ambari Web ........................................ SUCCESS [1:58.936s]
>> [INFO] Ambari Views ...................................... SUCCESS [13.178s]
>> [INFO] Ambari Admin View ................................. FAILURE [3.873s]
>> [INFO] Ambari Server ..................................... SKIPPED
>> [INFO] Ambari Agent ...................................... SKIPPED
>> [INFO] Ambari Client ..................................... SKIPPED
>> [INFO] Ambari Python Client .............................. SKIPPED
>> [INFO] Ambari Groovy Client .............................. SKIPPED
>> [INFO] Ambari Shell ...................................... SKIPPED
>> [INFO] Ambari Python Shell ............................... SKIPPED
>> [INFO] Ambari Groovy Shell ............................... SKIPPED
>> [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 2:31.656s
>> [INFO] Finished at: Sat Sep 27 00:22:41 EDT 2014
>> [INFO] Final Memory: 23M/56M
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.14:npm (npm install) on project ambari-admin: 'npm install --unsafe-perm --color=false' failed. (error code 1) -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.14:npm (npm install) on project ambari-admin: 'npm install --unsafe-perm --color=false' failed. (error code 1)
>>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>         at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.MojoFailureException: 'npm install --unsafe-perm --color=false' failed. (error code 1)

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re: current trunk build failing since Monday

Posted by Yusaku Sako <yu...@hortonworks.com>.
Erin,

If you really prefer to run mvn as root, you can do "git revert
ee2b308eba8819c75b83c2b46043105aeb1e5208" locally to unblock yourself.

Yusaku

On Thu, Oct 2, 2014 at 1:37 PM, Yusaku Sako <yu...@hortonworks.com> wrote:
> Erin,
>
> If works if you run the mvn command as a non-root user, but if you are
> used to running it as root, then it breaks due to a recent change to
> set up unit tests for ambari-admin.
> We'll create a patch for this so that it can run as root as well.
> Filed https://issues.apache.org/jira/browse/AMBARI-7616 to take care
> of this.
>
> Thanks,
> Yusaku
>
>
> On Thu, Oct 2, 2014 at 1:27 PM, Erin Boyd <eb...@redhat.com> wrote:
>> Is anyone else's current trunk failing with the following error:
>> [DEBUG]   (f) nodeVersion = v0.10.26
>> [DEBUG]   (f) npmVersion = 1.4.3
>> [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@f8b7298
>> [DEBUG]   (f) workingDirectory = /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
>> [DEBUG] -- end configuration --
>> [INFO] Node v0.10.26 is already installed.
>> [INFO] Found NPM version 1.4.3
>> [INFO]
>> [INFO] --- frontend-maven-plugin:0.0.14:npm (npm install) @ ambari-admin ---
>> [DEBUG] Configuring mojo com.github.eirslett:frontend-maven-plugin:0.0.14:npm from plugin realm ClassRealm[plugin>com.github.eirslett:frontend-maven-plugin:0.0.14, parent: sun.misc.Launcher$AppClassLoader@138d107f]
>> [DEBUG] Configuring mojo 'com.github.eirslett:frontend-maven-plugin:0.0.14:npm' with basic configurator -->
>> [DEBUG]   (f) arguments = install --unsafe-perm
>> [DEBUG]   (f) workingDirectory = /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
>> [DEBUG] -- end configuration --
>> [INFO] Running 'npm install --unsafe-perm --color=false' in /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
>> [INFO] npm WARN package.json adminconsole@0.0.0 No description
>> [INFO] npm WARN package.json adminconsole@0.0.0 No repository field.
>> [INFO] npm WARN package.json adminconsole@0.0.0 No README data
>> [INFO]
>> [INFO] > adminconsole@0.0.0 postinstall /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
>> [INFO] > bower install
>> [INFO]
>> [INFO] bower ESUDO         Cannot be run with sudo
>> [INFO]
>> [INFO] Additional error details:
>> [INFO] Since bower is a user command, there is no need to execute it with superuser permissions.
>> [INFO] If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
>> [INFO]
>> [INFO] http://www.joyent.com/blog/installing-node-and-npm
>> [INFO] https://gist.github.com/isaacs/579814
>> [INFO]
>> [INFO] You can however run a command with sudo using --allow-root option
>> [INFO]
>> [INFO] npm ERR! adminconsole@0.0.0 postinstall: `bower install`
>> [INFO] npm ERR! Exit status 1
>> [INFO] npm ERR!
>> [INFO] npm ERR! Failed at the adminconsole@0.0.0 postinstall script.
>> [INFO] npm ERR! This is most likely a problem with the adminconsole package,
>> [INFO] npm ERR! not with npm itself.
>> [INFO] npm ERR! Tell the author that this fails on your system:
>> [INFO] npm ERR!     bower install
>> [INFO] npm ERR! You can get their info via:
>> [INFO] npm ERR!     npm owner ls adminconsole
>> [INFO] npm ERR! There is likely additional logging output above.
>> [INFO] npm ERR! System Linux 2.6.32-431.20.3.el6.x86_64
>> [INFO] npm ERR! command "/root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node" "/root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/node/npm/bin/npm-cli.js" "install" "--unsafe-perm" "--color=false"
>> [INFO] npm ERR! cwd /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
>> [INFO] npm ERR! node -v v0.10.26
>> [INFO] npm ERR! npm -v 1.4.3
>> [INFO] npm ERR! code ELIFECYCLE
>> [INFO] npm ERR!
>> [INFO] npm ERR! Additional logging details can be found in:
>> [INFO] npm ERR!     /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/npm-debug.log
>> [INFO] npm ERR! not ok code 0
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Ambari Main ....................................... SUCCESS [11.055s]
>> [INFO] Apache Ambari Project POM ......................... SUCCESS [1.346s]
>> [INFO] Ambari Web ........................................ SUCCESS [1:58.936s]
>> [INFO] Ambari Views ...................................... SUCCESS [13.178s]
>> [INFO] Ambari Admin View ................................. FAILURE [3.873s]
>> [INFO] Ambari Server ..................................... SKIPPED
>> [INFO] Ambari Agent ...................................... SKIPPED
>> [INFO] Ambari Client ..................................... SKIPPED
>> [INFO] Ambari Python Client .............................. SKIPPED
>> [INFO] Ambari Groovy Client .............................. SKIPPED
>> [INFO] Ambari Shell ...................................... SKIPPED
>> [INFO] Ambari Python Shell ............................... SKIPPED
>> [INFO] Ambari Groovy Shell ............................... SKIPPED
>> [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 2:31.656s
>> [INFO] Finished at: Sat Sep 27 00:22:41 EDT 2014
>> [INFO] Final Memory: 23M/56M
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.14:npm (npm install) on project ambari-admin: 'npm install --unsafe-perm --color=false' failed. (error code 1) -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.14:npm (npm install) on project ambari-admin: 'npm install --unsafe-perm --color=false' failed. (error code 1)
>>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>         at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.MojoFailureException: 'npm install --unsafe-perm --color=false' failed. (error code 1)

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re: current trunk build failing since Monday

Posted by Yusaku Sako <yu...@hortonworks.com>.
Erin,

If works if you run the mvn command as a non-root user, but if you are
used to running it as root, then it breaks due to a recent change to
set up unit tests for ambari-admin.
We'll create a patch for this so that it can run as root as well.
Filed https://issues.apache.org/jira/browse/AMBARI-7616 to take care
of this.

Thanks,
Yusaku


On Thu, Oct 2, 2014 at 1:27 PM, Erin Boyd <eb...@redhat.com> wrote:
> Is anyone else's current trunk failing with the following error:
> [DEBUG]   (f) nodeVersion = v0.10.26
> [DEBUG]   (f) npmVersion = 1.4.3
> [DEBUG]   (f) session = org.apache.maven.execution.MavenSession@f8b7298
> [DEBUG]   (f) workingDirectory = /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
> [DEBUG] -- end configuration --
> [INFO] Node v0.10.26 is already installed.
> [INFO] Found NPM version 1.4.3
> [INFO]
> [INFO] --- frontend-maven-plugin:0.0.14:npm (npm install) @ ambari-admin ---
> [DEBUG] Configuring mojo com.github.eirslett:frontend-maven-plugin:0.0.14:npm from plugin realm ClassRealm[plugin>com.github.eirslett:frontend-maven-plugin:0.0.14, parent: sun.misc.Launcher$AppClassLoader@138d107f]
> [DEBUG] Configuring mojo 'com.github.eirslett:frontend-maven-plugin:0.0.14:npm' with basic configurator -->
> [DEBUG]   (f) arguments = install --unsafe-perm
> [DEBUG]   (f) workingDirectory = /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
> [DEBUG] -- end configuration --
> [INFO] Running 'npm install --unsafe-perm --color=false' in /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
> [INFO] npm WARN package.json adminconsole@0.0.0 No description
> [INFO] npm WARN package.json adminconsole@0.0.0 No repository field.
> [INFO] npm WARN package.json adminconsole@0.0.0 No README data
> [INFO]
> [INFO] > adminconsole@0.0.0 postinstall /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
> [INFO] > bower install
> [INFO]
> [INFO] bower ESUDO         Cannot be run with sudo
> [INFO]
> [INFO] Additional error details:
> [INFO] Since bower is a user command, there is no need to execute it with superuser permissions.
> [INFO] If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
> [INFO]
> [INFO] http://www.joyent.com/blog/installing-node-and-npm
> [INFO] https://gist.github.com/isaacs/579814
> [INFO]
> [INFO] You can however run a command with sudo using --allow-root option
> [INFO]
> [INFO] npm ERR! adminconsole@0.0.0 postinstall: `bower install`
> [INFO] npm ERR! Exit status 1
> [INFO] npm ERR!
> [INFO] npm ERR! Failed at the adminconsole@0.0.0 postinstall script.
> [INFO] npm ERR! This is most likely a problem with the adminconsole package,
> [INFO] npm ERR! not with npm itself.
> [INFO] npm ERR! Tell the author that this fails on your system:
> [INFO] npm ERR!     bower install
> [INFO] npm ERR! You can get their info via:
> [INFO] npm ERR!     npm owner ls adminconsole
> [INFO] npm ERR! There is likely additional logging output above.
> [INFO] npm ERR! System Linux 2.6.32-431.20.3.el6.x86_64
> [INFO] npm ERR! command "/root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node" "/root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/node/npm/bin/npm-cli.js" "install" "--unsafe-perm" "--color=false"
> [INFO] npm ERR! cwd /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web
> [INFO] npm ERR! node -v v0.10.26
> [INFO] npm ERR! npm -v 1.4.3
> [INFO] npm ERR! code ELIFECYCLE
> [INFO] npm ERR!
> [INFO] npm ERR! Additional logging details can be found in:
> [INFO] npm ERR!     /root/102/ambari/ambari-admin/src/main/resources/ui/admin-web/npm-debug.log
> [INFO] npm ERR! not ok code 0
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Ambari Main ....................................... SUCCESS [11.055s]
> [INFO] Apache Ambari Project POM ......................... SUCCESS [1.346s]
> [INFO] Ambari Web ........................................ SUCCESS [1:58.936s]
> [INFO] Ambari Views ...................................... SUCCESS [13.178s]
> [INFO] Ambari Admin View ................................. FAILURE [3.873s]
> [INFO] Ambari Server ..................................... SKIPPED
> [INFO] Ambari Agent ...................................... SKIPPED
> [INFO] Ambari Client ..................................... SKIPPED
> [INFO] Ambari Python Client .............................. SKIPPED
> [INFO] Ambari Groovy Client .............................. SKIPPED
> [INFO] Ambari Shell ...................................... SKIPPED
> [INFO] Ambari Python Shell ............................... SKIPPED
> [INFO] Ambari Groovy Shell ............................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2:31.656s
> [INFO] Finished at: Sat Sep 27 00:22:41 EDT 2014
> [INFO] Final Memory: 23M/56M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.14:npm (npm install) on project ambari-admin: 'npm install --unsafe-perm --color=false' failed. (error code 1) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.14:npm (npm install) on project ambari-admin: 'npm install --unsafe-perm --color=false' failed. (error code 1)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoFailureException: 'npm install --unsafe-perm --color=false' failed. (error code 1)

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.