Failing to build lumify-web-war

259 views
Skip to first unread message
Assigned to jason....@gmail.com by me

Krishna Mohan

unread,
Nov 14, 2014, 11:03:52 PM11/14/14
to lum...@googlegroups.com
Hello All,

When trying to build Lumify instance on AWS on a 6.5 RHEL CDH4 JAVA1.6 After following all the steps from the Lumify Docs CentOS install towards the end while building the lumify app, i am getting the following error.

Any help is greatly appreciated.

Thanks,
Krishna
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[INFO] --- exec-maven-plugin:1.2.1:exec (WebApp Dependencies and Minification) @ lumify-web-war ---
npm WARN deprecated grunt-jsc...@0.6.1: Package was renamed to 'grunt-jscs'
npm ERR! git clone git://github.com/jharwig/grunt-mocha-selenium Initialized empty Git repository in /home/lumify/.npm/_git-remotes/git-github-com-jharwig-grunt-mocha-selenium-f6c1d670/
npm ERR! git clone git://github.com/jharwig/grunt-mocha-selenium
npm ERR! git clone git://github.com/jharwig/grunt-mocha-selenium github.com[0: 192.30.252.131]: errno=Connection timed out
npm ERR! git clone git://github.com/jharwig/grunt-mocha-selenium fatal: unable to connect a socket (Connection timed out)
npm ERR! Error: Command failed: github.com[0: 192.30.252.131]: errno=Connection timed out
npm ERR! fatal: unable to connect a socket (Connection timed out)
npm ERR!
npm ERR!     at ChildProcess.exithandler (child_process.js:648:15)
npm ERR!     at ChildProcess.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:756:16)
npm ERR!     at Socket.<anonymous> (child_process.js:969:11)
npm ERR!     at Socket.emit (events.js:95:17)
npm ERR!     at Pipe.close (net.js:465:12)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <np...@googlegroups.com>

npm ERR! System Linux 2.6.32-431.29.2.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "--quiet"
npm ERR! cwd /home/lumify/lumify/web/war/src/main/webapp
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.3.6
npm ERR! code 128
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/lumify/lumify/web/war/src/main/webapp/npm-debug.log
npm ERR! not ok code 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Lumify Root: Build Tools ........................... SUCCESS [  2.222 s]
[INFO] Lumify ............................................. SUCCESS [  1.389 s]
[INFO] Lumify: Web ........................................ SUCCESS [  0.274 s]
[INFO] Lumify: Web: Client API ............................ SUCCESS [  2.501 s]
[INFO] Lumify: Core ....................................... SUCCESS [  0.152 s]
[INFO] Lumify: Core ....................................... SUCCESS [  6.856 s]
[INFO] Lumify: Core: Plugins .............................. SUCCESS [  0.295 s]
[INFO] Lumify: Core: Plugin: Model: RabbitMQ .............. SUCCESS [ 10.846 s]
[INFO] Lumify: Core: Plugin: Model: Secure Graph .......... SUCCESS [ 27.395 s]
[INFO] Lumify: Web: Base .................................. SUCCESS [  7.077 s]
[INFO] Lumify: Web: War ................................... FAILURE [01:04 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:06 min
[INFO] Finished at: 2014-11-14T22:31:07-05:00
[INFO] Final Memory: 53M/700M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (WebApp Dependencies and Minification) on project lumify-web-war: 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 :lumify-web-war

Susan Feng

unread,
Nov 17, 2014, 9:51:37 AM11/17/14
to lum...@googlegroups.com
Hello,

It looks like your AWS EC2 instance doesn't have access to the internet. Can you try 'curl www.google.com' to confirm?

- Susan

Krishna Mohan

unread,
Nov 17, 2014, 10:53:10 AM11/17/14
to lum...@googlegroups.com
Thanks Susan for replying,
I have internet access as i was able to follow quite a few steps of the install process that involved downloading content. And just to confirm i also did the curl, and it threw the html content.

Thanks,
Krishna.

Jason Harwig

unread,
Nov 17, 2014, 12:02:01 PM11/17/14
to lum...@googlegroups.com
Hi Krishna,

Can you run the following in the web/war/src/main/webapp directory?

> rm -rf node_modules
> npm cache clean
> npm install --verbose

And paste the log from the last one (if it doesn't work.) If it does try to run mvn again.

thanks

Krishna Mohan

unread,
Nov 17, 2014, 12:22:04 PM11/17/14
to lum...@googlegroups.com
Jason,

The last step threw some errors. Thank You.

npm verb chown /home/lumify/.npm/grunt-notify/0.2.20/package.tgz [ 504, 501 ]

npm ERR! git clone git://github.com/jharwig/grunt-mocha-selenium Initialized emp                                                                                                                     ty Git repository in /home/lumify/.npm/_git-remotes/git-github-com-jharwig-grunt                                                                                                                     -mocha-selenium-f6c1d670/
npm ERR! git clone git://github.com/jharwig/grunt-mocha-selenium
npm ERR! git clone git://github.com/jharwig/grunt-mocha-selenium github.com[0: 1                                                                                                                     92.30.252.128]: errno=Connection timed out
npm ERR! git clone git://github.com/jharwig/grunt-mocha-selenium fatal: unable t                                                                                                                     o connect a socket (Connection timed out)
npm ERR! Error: Command failed: github.com[0: 192.30.252.128]: errno=Connection                                                                                                                      timed out

npm ERR! fatal: unable to connect a socket (Connection timed out)
npm ERR!
npm ERR!     at ChildProcess.exithandler (child_process.js:648:15)
npm ERR!     at ChildProcess.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:756:16)
npm ERR!     at Socket.<anonymous> (child_process.js:969:11)
npm ERR!     at Socket.emit (events.js:95:17)
npm ERR!     at Pipe.close (net.js:465:12)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <np...@googlegroups.com>

npm ERR! System Linux 2.6.32-431.29.2.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "-verbose"

npm ERR! cwd /home/lumify/lumify/web/war/src/main/webapp
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.3.6
npm ERR! code 128
npm verb exit [ 1, true ]

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/lumify/lumify/web/war/src/main/webapp/npm-debug.log
npm ERR! not ok code 0


Leo nardo Furio

unread,
Nov 21, 2014, 9:58:42 AM11/21/14
to lum...@googlegroups.com
If you have a proxy for the access to the web please follow this article


Another solution is go  /home/lumify/lumify/web/war/src/main/webapp/   and try npm install directly after all (if run successfull, try again the maven package)

Leo 

Krishna Mohan

unread,
Nov 24, 2014, 2:35:12 PM11/24/14
to lum...@googlegroups.com
Hello Leo,

Thanks for the response. I am not that familiar with npm, so can you please elaborate on what you meant by "try npm install directly".

there are other packages in .npm folder that have been downloaded, so i don't think it would be an issue with proxy.

The error is see is with something related to git clone git://github.com/jharwig/grunt-mocha-selenium

when i do it directly under /home/lumify/.npm

i get the following error.
Initialized empty Git repository in /home/lumify/.npm/grunt-mocha-selenium/.git/
github.com[0: 192.30.252.129]: errno=Connection timed out

fatal: unable to connect a socket (Connection timed out)




Jason Harwig

unread,
Dec 2, 2014, 10:09:42 AM12/2/14
to lum...@googlegroups.com
My guess is git:// protocols are blocked by policy on your machine or network. Since that dependency is the only one that points to git, it's showing the issue.

Try these git configuration settings to force https

git config --global url."https://github.com/".insteadOf g...@github.com:

git config --global url."https://".insteadOf git://

Krishna Mohan

unread,
Dec 2, 2014, 12:48:24 PM12/2/14
to lum...@googlegroups.com
Thanks Jason, this helped.

Also I ran into some issues with the disk space, once we freed the space and ran this command, I was able to build Lumify app without any issues.
Reply all
Reply to author
Forward
0 new messages