Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-3339

Fix Ambari build failure due to using old Bower

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: build
    • Labels:
      None

      Description

      Building the current version of Ambari fails with the following error. Its workaround is introduced in AMBARI-25499.

      [INFO] --- exec-maven-plugin:1.6.0:exec (Bower install) @ ambari-admin ---
      bower                            error Unexpected token {
      
      Stack trace:
      SyntaxError: Unexpected token {
          at exports.runInThisContext (vm.js:53:16)
          at Module._compile (module.js:373:25)
          at Object.Module._extensions..js (module.js:416:10)
          at Module.load (module.js:343:32)
          at Function.Module._load (module.js:300:12)
          at Module.require (module.js:353:17)
          at require (internal/module.js:12:17)
          at Object.<anonymous> (/home/sekikn/repos/bigtop/output/ambari/ambari-2.6.1.0/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/bower-registry-client/node_modules/request/lib/cookies.js:3:13)
          at Module._compile (module.js:409:26)
          at Object.Module._extensions..js (module.js:416:10)
      
      Console trace:
      Trace
          at StandardRenderer.error (/home/sekikn/repos/bigtop/output/ambari/ambari-2.6.1.0/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/lib/renderers/StandardRenderer.js:72:17)
          at Logger.<anonymous> (/home/sekikn/repos/bigtop/output/ambari/ambari-2.6.1.0/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/bin/bower:111:22)
          at emitOne (events.js:77:13)
          at Logger.emit (events.js:169:7)
          at Logger.emit (/home/sekikn/repos/bigtop/output/ambari/ambari-2.6.1.0/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
          at /home/sekikn/repos/bigtop/output/ambari/ambari-2.6.1.0/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/lib/commands/index.js:40:20
          at _rejected (/home/sekikn/repos/bigtop/output/ambari/ambari-2.6.1.0/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:797:24)
          at /home/sekikn/repos/bigtop/output/ambari/ambari-2.6.1.0/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:823:30
          at Promise.when (/home/sekikn/repos/bigtop/output/ambari/ambari-2.6.1.0/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:1035:31)
          at Promise.promise.promiseDispatch (/home/sekikn/repos/bigtop/output/ambari/ambari-2.6.1.0/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:741:41)
      
      System info:
      Bower version: 1.3.8
      Node version: 4.5.0
      OS: Linux 5.3.0-46-generic x64
      [ERROR] Command execution failed.
      org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
          at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
          at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)
          at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:804)
          at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:751)
          at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:313)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:498)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] Ambari Main 2.6.1.0.0 .............................. SUCCESS [  1.431 s]
      [INFO] Apache Ambari Project POM 2.6.1.0.0 ................ SUCCESS [  0.013 s]
      [INFO] Ambari Web 2.6.1.0.0 ............................... SUCCESS [ 31.820 s]
      [INFO] Ambari Views 2.6.1.0.0 ............................. SUCCESS [  1.327 s]
      [INFO] Ambari Admin View 2.6.1.0.0 ........................ FAILURE [07:22 min]
      [INFO] utility 1.0.0.0-SNAPSHOT ........................... SKIPPED
      [INFO] ambari-metrics 2.6.1.0.0 ........................... SKIPPED
      [INFO] Ambari Metrics Common 2.6.1.0.0 .................... SKIPPED
      [INFO] Ambari Metrics Hadoop Sink 2.6.1.0.0 ............... SKIPPED
      [INFO] Ambari Metrics Flume Sink 2.6.1.0.0 ................ SKIPPED
      [INFO] Ambari Metrics Kafka Sink 2.6.1.0.0 ................ SKIPPED
      [INFO] Ambari Metrics Storm Sink 2.6.1.0.0 ................ SKIPPED
      [INFO] Ambari Metrics Storm Sink (Legacy) 2.6.1.0.0 ....... SKIPPED
      [INFO] Ambari Metrics Collector 2.6.1.0.0 ................. SKIPPED
      [INFO] Ambari Metrics Monitor 2.6.1.0.0 ................... SKIPPED
      [INFO] Ambari Metrics Grafana 2.1.0.0.0 ................... SKIPPED
      [INFO] Ambari Metrics Assembly 2.6.1.0.0 .................. SKIPPED
      [INFO] Ambari Server 2.6.1.0.0 ............................ SKIPPED
      [INFO] Ambari Functional Tests 2.6.1.0.0 .................. SKIPPED
      [INFO] Ambari Agent 2.6.1.0.0 ............................. SKIPPED
      [INFO] Ambari Client 2.6.1.0.0 ............................ SKIPPED
      [INFO] Ambari Python Client 2.6.1.0.0 ..................... SKIPPED
      [INFO] Ambari Groovy Client 2.6.1.0.0 ..................... SKIPPED
      [INFO] Ambari Shell 2.6.1.0.0 ............................. SKIPPED
      [INFO] Ambari Python Shell 2.6.1.0.0 ...................... SKIPPED
      [INFO] Ambari Groovy Shell 2.6.1.0.0 ...................... SKIPPED
      [INFO] ambari-logsearch 2.6.1.0.0 ......................... SKIPPED
      [INFO] Ambari Logsearch Appender 2.6.1.0.0 ................ SKIPPED
      [INFO] Ambari Logsearch Portal 2.6.1.0.0 .................. SKIPPED
      [INFO] Ambari Logsearch Log Feeder 2.6.1.0.0 .............. SKIPPED
      [INFO] Ambari Logsearch Solr Client 2.6.1.0.0 ............. SKIPPED
      [INFO] Ambari Infra Solr Plugin 2.6.1.0.0 ................. SKIPPED
      [INFO] Ambari Logsearch Assembly 2.6.1.0.0 ................ SKIPPED
      [INFO] Ambari Logsearch Integration Test 2.6.1.0.0 ........ SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  07:59 min
      [INFO] Finished at: 2020-04-13T09:50:48+09:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (Bower install) on project ambari-admin: 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 <args> -rf :ambari-admin
      debian/rules:29: recipe for target 'override_dh_auto_build' failed
      make[1]: *** [override_dh_auto_build] Error 1
      make[1]: Leaving directory '/home/sekikn/repos/bigtop/output/ambari/ambari-2.6.1.0'
      debian/rules:26: recipe for target 'build' failed
      make: *** [build] Error 2
      dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
      debuild: fatal error at line 1152:
      dpkg-buildpackage -rfakeroot -us -uc -ui -b
       failed
      
      > Task :ambari-deb FAILED
      
      FAILURE: Build failed with an exception.
      

      Hopefully I'd like to include BIGTOP-3329 into the 1.5.0 release, but in the case that we can't make it, I'll submit a minimal patch for this problem.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sekikn Kengo Seki
                Reporter:
                sekikn Kengo Seki
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m