Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2428

Mirage 2 build problem - timeout error

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Answered
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: XMLUI
    • Labels:
      None
    • Environment:
      RHEL 6.6, git version 1.7.1
    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      In Comments

      Description

      When trying to build DSpace 5.0 with Mirage 2, I run into an error message that ultimately appears to stem from a connection timeout on
      git ls-remote --tags --heads git://github.com/Modernizr/Modernizr.git
      I can confirm that this command hangs when run individually on the command line. It completes successfully within reasonable time when I change the protocol from git to https. It does complete successfully with the git protocol on my workstation (Ubuntu 14.04.1, git version 1.9.1).

      The build command I'm using is (in [dspace-src])
      mvn clean package -P !dspace-jspui,!dspace-lni,!dspace-rest,!dspace-swordv2,!dspace-sword,!dspace-oai,!dspace-rdf -Dmirage2.on=true

      The error message around the failure is

      [INFO] > Mirage2@0.1.1 postinstall /usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2
      [INFO] > bower install
      [INFO]
      [INFO] bower modernizr#2.8.3 not-cached git://github.com/Modernizr/Modernizr.git#2.8.3
      [INFO] bower modernizr#2.8.3 resolve git://github.com/Modernizr/Modernizr.git#2.8.3
      [INFO] bower bootstrap-sass-official#3.3.0 not-cached git://github.com/twbs/bootstrap-sass.git#3.3.0
      [INFO] bower bootstrap-sass-official#3.3.0 resolve git://github.com/twbs/bootstrap-sass.git#3.3.0
      [INFO] bower jquery#~1.10.2 not-cached git://github.com/jquery/jquery.git#~1.10.2
      [INFO] bower jquery#~1.10.2 resolve git://github.com/jquery/jquery.git#~1.10.2
      [INFO] bower respond#1.4.2 not-cached git://github.com/scottjehl/Respond.git#1.4.2
      [INFO] bower respond#1.4.2 resolve git://github.com/scottjehl/Respond.git#1.4.2
      [INFO] bower handlebars#2.0.0 not-cached git://github.com/components/handlebars.js.git#2.0.0
      [INFO] bower handlebars#2.0.0 resolve git://github.com/components/handlebars.js.git#2.0.0
      [INFO] bower html5shiv#3.7.2 not-cached git://github.com/aFarkas/html5shiv.git#3.7.2
      [INFO] bower html5shiv#3.7.2 resolve git://github.com/aFarkas/html5shiv.git#3.7.2
      [INFO] bower jquery-ui#1.10.3 not-cached git://github.com/components/jqueryui.git#1.10.3
      [INFO] bower jquery-ui#1.10.3 resolve git://github.com/components/jqueryui.git#1.10.3
      [INFO] bower jqueryuibootstrap#4f3772cd37b898f456c0126c4b44178ce8d4aad7 not-cached git://github.com/addyosmani/jquery-ui-bootstrap.git#4f3772cd37b898f456c0126c4b44178ce8d4aad7
      [INFO] bower jqueryuibootstrap#4f3772cd37b898f456c0126c4b44178ce8d4aad7 resolve git://github.com/addyosmani/jquery-ui-bootstrap.git#4f3772cd37b898f456c0126c4b44178ce8d4aad7
      [INFO] bower holderjs#2.4.1 not-cached git://github.com/imsky/holder.git#2.4.1
      [INFO] bower holderjs#2.4.1 resolve git://github.com/imsky/holder.git#2.4.1
      [INFO] bower datatables#1.10.3 not-cached git://github.com/DataTables/DataTables.git#1.10.3
      [INFO] bower datatables#1.10.3 resolve git://github.com/DataTables/DataTables.git#1.10.3
      [INFO] bower jqueryuibootstrap#4f3772cd37b898f456c0126c4b44178ce8d4aad7 checkout 4f3772cd37b898f456c0126c4b44178ce8d4aad7
      [INFO] bower modernizr#2.8.3 ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/Modernizr/Modernizr.git", exit code of #128
      [INFO]
      [INFO] Additional error details:
      [INFO] github.com[0: 192.30.252.128]: errno=Connection timed out
      [INFO] fatal: unable to connect a socket (Connection timed out)
      [INFO]
      [INFO] npm ERR! Mirage2@0.1.1 postinstall: `bower install`
      [INFO] npm ERR! Exit status 1
      [INFO] npm ERR!
      [INFO] npm ERR! Failed at the Mirage2@0.1.1 postinstall script.
      [INFO] npm ERR! This is most likely a problem with the Mirage2 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 Mirage2
      [INFO] npm ERR! There is likely additional logging output above.
      [INFO] npm ERR! System Linux 2.6.32-504.3.3.el6.x86_64
      [INFO] npm ERR! command "/usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/node" "/usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/node/npm/bin/npm-cli.js" "install" "--color=false"
      [INFO] npm ERR! cwd /usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2
      [INFO] npm ERR! node -v v0.10.31
      [INFO] npm ERR! npm -v 1.4.23
      [INFO] npm ERR! code ELIFECYCLE
      [INFO] npm ERR!
      [INFO] npm ERR! Additional logging details can be found in:
      [INFO] npm ERR! /usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/npm-debug.log
      [INFO] npm ERR! not ok code 0
      [ERROR] MojoFailureException:
      org.apache.maven.plugin.MojoFailureException: Failed to run task
      at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute(NpmMojo.java:45)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      at com.soebes.maven.plugins.iterator.ExecutorMojo.executeMojo(ExecutorMojo.java:302)
      at com.soebes.maven.plugins.iterator.ExecutorMojo.execute(ExecutorMojo.java:235)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      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:116)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install --color=false' failed. (error code 1)
      at com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute(NodeTaskExecutor.java:38)
      at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute(NpmMojo.java:43)
      ... 24 more

      The file /usr/local/src/dspace-src/dspace/modules/xmlui-mirage2/target/themes/Mirage2/npm-debug.log doesn't appear to have anything interesting in it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                schweer Andrea Schweer
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: