Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25499

Outdated bower version causes Ambari build to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.1, 2.7.3, 2.7.4, 2.7.5
    • 2.7.6
    • ambari-admin
    • None

    Description

      following the instruction on https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.5
       

      I started to build Ambari but I get the error:
        

      [INFO] — exec-maven-plugin:1.2.1:exec (Bower install) @ ambari-admin —
       bower error Unexpected token {
      

        

      [INFO] bower@1.3.8 node_modules/bower
       [INFO] ├── is-root@0.1.0
       [INFO] ├── stringify-object@0.2.1
       [INFO] ├── junk@0.3.0
       [INFO] ├── abbrev@1.0.9
       [INFO] ├── which@1.0.9
       [INFO] ├── opn@0.1.2
       [INFO] ├── bower-endpoint-parser@0.2.2
       [INFO] ├── chmodr@0.1.2
       [INFO] ├── bower-logger@0.2.2
       [INFO] ├── archy@0.0.2
       [INFO] ├── q@1.0.1
       [INFO] ├── lockfile@0.4.3
       [INFO] ├── nopt@3.0.6
       [INFO] ├── rimraf@2.2.8
       [INFO] ├── lru-cache@2.5.2
       [INFO] ├── retry@0.6.1
       [INFO] ├── tmp@0.0.23
       [INFO] ├── osenv@0.1.5 (os-tmpdir@1.0.2, os-homedir@1.0.2)
       [INFO] ├── chalk@0.4.0 (ansi-styles@1.0.0, has-color@0.1.7, strip-ansi@0.1.1)
       [INFO] ├── semver@2.3.2
       [INFO] ├── request-progress@0.3.1 (throttleit@0.0.2)
       [INFO] ├── p-throttler@0.0.1 (q@0.9.7)
       [INFO] ├── graceful-fs@3.0.12 (natives@1.1.6)
       [INFO] ├── shell-quote@1.4.3 (array-filter@0.0.1, jsonify@0.0.0, array-reduce@0.0.0, array-map@0.0.0)
       [INFO] ├── bower-json@0.4.0 (intersect@0.0.3, deep-extend@0.2.11, graceful-fs@2.0.3)
       [INFO] ├── mkdirp@0.5.5 (minimist@1.2.5)
       [INFO] ├── promptly@0.2.1 (read@1.0.7)
       [INFO] ├── fstream@0.1.31 (inherits@2.0.4)
       [INFO] ├── tar@0.1.20 (inherits@2.0.4, block-stream@0.0.9)
       [INFO] ├── fstream-ignore@0.0.10 (inherits@2.0.4, minimatch@0.3.0)
       [INFO] ├── glob@4.0.6 (inherits@2.0.4, once@1.4.0, minimatch@1.0.0)
       [INFO] ├── request@2.36.0 (tunnel-agent@0.4.3, aws-sign2@0.5.0, forever-agent@0.5.2, qs@0.6.6, oauth-sign@0.3.0, mime@1.2.11, json-stringify-safe@5.0.1, node-uuid@1.4.8, tough-cookie@4.0.0, http-signature@0.10.1, form-data@0.1.4, hawk@1.0.0)
       [INFO] ├── bower-config@0.5.3 (osenv@0.0.3, graceful-fs@2.0.3, optimist@0.6.1)
       [INFO] ├── cardinal@0.4.4 (ansicolors@0.2.1, redeyed@0.4.4)
       [INFO] ├── decompress-zip@0.0.8 (nopt@2.2.1, mkpath@0.1.0, touch@0.0.2, readable-stream@1.1.14, binary@0.3.0)
       [INFO] ├── bower-registry-client@0.2.4 (async@0.2.10, graceful-fs@2.0.3, request-replay@0.2.0, lru-cache@2.3.1, mkdirp@0.3.5, request@2.51.0)
       [INFO] ├── update-notifier@0.2.2 (is-npm@1.0.0, semver-diff@2.1.0, chalk@0.5.1, string-length@1.0.1, latest-version@1.0.1, configstore@0.3.2)
       [INFO] ├── handlebars@1.3.0 (optimist@0.3.7, uglify-js@2.3.6)
       [INFO] ├── insight@0.3.1 (object-assign@0.1.2, async@0.2.10, lodash.debounce@2.4.1, request@2.27.0, configstore@0.2.3, inquirer@0.4.1)
       [INFO] ├── mout@0.9.1
       [INFO] └── inquirer@0.5.1 (mute-stream@0.0.4, async@0.8.0, through@2.3.8, lodash@2.4.2, readline2@0.1.1, cli-color@0.3.3)
       [INFO] 
       [INFO] phantomjs@2.1.7 node_modules/phantomjs
       [INFO] ├── progress@1.1.8
       [INFO] ├── kew@0.7.0
       [INFO] ├── which@1.2.14 (isexe@2.0.0)
       [INFO] ├── request-progress@2.0.1 (throttleit@1.0.0)
       [INFO] ├── hasha@2.2.0 (is-stream@1.1.0, pinkie-promise@2.0.1)
       [INFO] ├── extract-zip@1.5.0 (debug@0.7.4, yauzl@2.4.1, concat-stream@1.5.0, mkdirp@0.5.0)
       [INFO] ├── fs-extra@0.26.7 (path-is-absolute@1.0.1, klaw@1.3.1, graceful-fs@4.2.3, jsonfile@2.4.0, rimraf@2.7.1)
       [INFO] └── request@2.67.0 (aws-sign2@0.6.0, tunnel-agent@0.4.3, oauth-sign@0.8.2, forever-agent@0.6.1, caseless@0.11.0, is-typedarray@1.0.0, stringstream@0.0.6, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.2, tough-cookie@2.2.2, qs@5.2.1, node-uuid@1.4.8, combined-stream@1.0.8, mime-types@2.1.26, bl@1.0.3, hawk@3.1.3, har-validator@2.0.6, http-signature@1.1.1, form-data@1.0.1)
       [INFO] 
       [INFO] karma-phantomjs-launcher@0.1.4 node_modules/karma-phantomjs-launcher
       [INFO] └── phantomjs@1.9.20 (progress@1.1.8, kew@0.7.0, which@1.2.14, request-progress@2.0.1, hasha@2.2.0, extract-zip@1.5.0, fs-extra@0.26.7, request@2.67.0)
       [INFO] 
       [INFO] — exec-maven-plugin:1.2.1: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> (/usr/src/apache-ambari-2.7.5-src/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 (/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/lib/renderers/StandardRenderer.js:72:17)
       at Logger.<anonymous> (/usr/src/apache-ambari-2.7.5-src/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 (/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
       at /usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/lib/commands/index.js:40:20
       at _rejected (/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:797:24)
       at /usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:823:30
       at Promise.when (/usr/src/apache-ambari-2.7.5-src/ambari-admin/src/main/resources/ui/admin-web/node_modules/bower/node_modules/q/q.js:1035:31)
       at Promise.promise.promiseDispatch (/usr/src/apache-ambari-2.7.5-src/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 3.10.0-1062.el7.x86_64 x64
       [INFO] ------------------------------------------------------------------------
       [INFO] Reactor Summary:
       [INFO] 
       [INFO] Ambari Main ........................................ SUCCESS [ 44.570 s]
       [INFO] Apache Ambari Project POM .......................... SUCCESS [ 0.410 s]
       [INFO] Ambari Web ......................................... SUCCESS [01:25 min]
       [INFO] Ambari Views ....................................... SUCCESS [ 19.071 s]
       [INFO] Ambari Admin View .................................. FAILURE [01:24 min]
       [INFO] ambari-utility ..................................... SKIPPED
       [INFO] ambari-metrics ..................................... SKIPPED
       [INFO] Ambari Metrics Common .............................. SKIPPED
       [INFO] Ambari Metrics Hadoop Sink ......................... SKIPPED
       [INFO] Ambari Metrics Flume Sink .......................... SKIPPED
       [INFO] Ambari Metrics Kafka Sink .......................... SKIPPED
       [INFO] Ambari Metrics Storm Sink .......................... SKIPPED
       [INFO] Ambari Metrics Storm Sink (Legacy) ................. SKIPPED
       [INFO] Ambari Metrics Collector ........................... SKIPPED
       [INFO] Ambari Metrics Monitor ............................. SKIPPED
       [INFO] Ambari Metrics Grafana ............................. SKIPPED
       [INFO] Ambari Metrics Host Aggregator ..................... SKIPPED
       [INFO] Ambari Metrics Assembly ............................ SKIPPED
       [INFO] Ambari Service Advisor ............................. SKIPPED
       [INFO] Ambari Server ...................................... SKIPPED
       [INFO] Ambari Functional Tests ............................ SKIPPED
       [INFO] Ambari Agent ....................................... SKIPPED
       [INFO] ambari-logsearch ................................... SKIPPED
       [INFO] Ambari Logsearch Appender .......................... SKIPPED
       [INFO] Ambari Logsearch Config Api ........................ SKIPPED
       [INFO] Ambari Logsearch Config JSON ....................... SKIPPED
       [INFO] Ambari Logsearch Config Solr ....................... SKIPPED
       [INFO] Ambari Logsearch Config Zookeeper .................. SKIPPED
       [INFO] Ambari Logsearch Config Local ...................... SKIPPED
       [INFO] Ambari Logsearch Log Feeder Plugin Api ............. SKIPPED
       [INFO] Ambari Logsearch Log Feeder Container Registry ..... SKIPPED
       [INFO] Ambari Logsearch Log Feeder ........................ SKIPPED
       [INFO] Ambari Logsearch Web ............................... SKIPPED
       [INFO] Ambari Logsearch Server ............................ SKIPPED
       [INFO] Ambari Logsearch Assembly .......................... SKIPPED
       [INFO] Ambari Logsearch Integration Test .................. SKIPPED
       [INFO] ambari-infra ....................................... SKIPPED
       [INFO] Ambari Infra Solr Client ........................... SKIPPED
       [INFO] Ambari Infra Solr Plugin ........................... SKIPPED
       [INFO] Ambari Infra Manager ............................... SKIPPED
       [INFO] Ambari Infra Assembly .............................. SKIPPED
       [INFO] Ambari Infra Manager Integration Tests ............. SKIPPED
       [INFO] ------------------------------------------------------------------------
       [INFO] BUILD FAILURE
       [INFO] ------------------------------------------------------------------------
       [INFO] Total time: 03:54 min
       [INFO] Finished at: 2020-04-07T00:50:18-07:00
       [INFO] Final Memory: 44M/560M
       [INFO] ------------------------------------------------------------------------
       [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (Bower install) on project ambari-admin: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
       org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (Bower install) on project ambari-admin: Command execution failed.
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
       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:128)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
       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: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: org.apache.maven.plugin.MojoExecutionException: Command execution failed.
       at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:362)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
       ... 20 more
       Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
       at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
       at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
       at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:610)
       at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:352)
       ... 22 more
       [ERROR] 
       [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 :ambari-admin
      
       

       

      Any suggestion?

       

      Attachments

        Activity

          People

            hapylestat Dmytro Grinenko
            luigius Luigi Caramico
            Votes:
            1 Vote for this issue
            Watchers:
            7 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 - 2h
                2h