sample project akkount does not deploy

I’ve tried to start application server in cuba studio and the sample is not deploying, error message is :

crun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
:app-polymer-client:installBowerPackages FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app-polymer-client:installBowerPackages’.

Process ‘command ‘/Users/ronald/studio-projects/sample-akkount/modules/polymer-client/.gradle/nodejs/node-v6.9.1-darwin-x64/bin/node’’ finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    BUILD FAILED
    Total time: 19.54 secs
    [16:11:37.747] Task ‘deploy, start’ failed
    org.gradle.process.internal.ExecException: Process ‘command ‘/Users/ronald/studio-projects/sample-akkount/modules/polymer-client/.gradle/nodejs/node-v6.9.1-darwin-x64/bin/node’’ finished with non-zero exit value 1

I’m running the project with the latest release cuba studio 6.4.2 and also tried to deploy the project with cuba platform versions 6.4.0, 6.4.1, 6.4.2, none of them deployed the project.

Hi Ronald,

Please attach more detailed log (don’t cut lines above the ‘Execution failed for task…’ ).
Also in case if you are behind a proxy please look here for the solution.

Hello Vlad. No I have copied the whole log that Cuba Studio throws from the start when clicking “Run Application Server”
I’m not behind a proxy though.

I’ve now tried typing “git” in terminal and got this error message:

Last login: Wed Mar 29 11:05:09 on console
Ronalds-MacBook-Air:~ ronald$ git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Ronalds-MacBook-Air:~ ronald$

[12:31:28.137] Restarting the application server
:app-core:assembleDbScripts UP-TO-DATE
:app-core:dbScriptsArchive UP-TO-DATE
:app-global:compileJava UP-TO-DATE
:app-global:enhance UP-TO-DATE
:app-global:processResources UP-TO-DATE
:app-global:classes UP-TO-DATE
:app-global:jar UP-TO-DATE
:app-core:compileJava UP-TO-DATE
:app-core:processResources UP-TO-DATE
:app-core:classes UP-TO-DATE
:app-core:jar UP-TO-DATE
:app-core:sourceJar UP-TO-DATE
:app-core:assemble UP-TO-DATE
:app-core:cleanConf
:app-core:deploy
:app-polymer-client:nodeSetup UP-TO-DATE
:app-polymer-client:npmSetup SKIPPED
:app-polymer-client:npmInstall UP-TO-DATE
:app-polymer-client:installBowerPackages
bower fetch#^2.0.1 not-cached GitHub - github/fetch: A window.fetch JavaScript polyfill.
bower fetch#^2.0.1 resolve GitHub - github/fetch: A window.fetch JavaScript polyfill.
bower polymer#^1.7.0 not-cached GitHub - Polymer/polymer: Our original Web Component library.
bower polymer#^1.7.0 resolve GitHub - Polymer/polymer: Our original Web Component library.
bower app-route#^0.9.3 not-cached GitHub - PolymerElements/app-route: A modular client-side router
bower app-route#^0.9.3 resolve GitHub - PolymerElements/app-route: A modular client-side router
bower paper-elements#^1.0.7 not-cached GitHub - PolymerElements/paper-elements: Material design UI elements implemented using Polymer
bower paper-elements#^1.0.7 resolve GitHub - PolymerElements/paper-elements: Material design UI elements implemented using Polymer
bower iron-icons#^1.1.3 not-cached GitHub - PolymerElements/iron-icons: A set of icons for use with iron-icon
bower iron-icons#^1.1.3 resolve GitHub - PolymerElements/iron-icons: A set of icons for use with iron-icon
bower cuba-app#^0.2.0 not-cached GitHub - cuba-elements/cuba-app: Element used for initialization and configuration connection to CUBA REST API
bower cuba-app#^0.2.0 resolve GitHub - cuba-elements/cuba-app: Element used for initialization and configuration connection to CUBA REST API
bower cuba-data#^0.2.0 not-cached GitHub - cuba-elements/cuba-data: A set of elements for loading data in a declarative manner
bower cuba-data#^0.2.0 resolve GitHub - cuba-elements/cuba-data: A set of elements for loading data in a declarative manner
bower cuba-form#^0.2.0 not-cached GitHub - cuba-elements/cuba-form
bower cuba-form#^0.2.0 resolve GitHub - cuba-elements/cuba-form
bower cuba-login#^0.2.0 not-cached GitHub - cuba-elements/cuba-login
bower cuba-login#^0.2.0 resolve GitHub - cuba-elements/cuba-login
bower cuba-styles#^0.1.0 not-cached GitHub - cuba-elements/cuba-styles
bower cuba-styles#^0.1.0 resolve GitHub - cuba-elements/cuba-styles
bower webcomponentsjs#^0.7.0 not-cached GitHub - webcomponents/webcomponentsjs: A suite of polyfills supporting the HTML Web Components specs
bower webcomponentsjs#^0.7.0 resolve GitHub - webcomponents/webcomponentsjs: A suite of polyfills supporting the HTML Web Components specs
bower iron-signals#^1.0.3 not-cached GitHub - googlearchive/iron-signals: Publish-subscribe functionality
bower iron-signals#^1.0.3 resolve GitHub - googlearchive/iron-signals: Publish-subscribe functionality
bower iron-component-page#^1.0.0 not-cached GitHub - PolymerElements/iron-component-page: A reusable landing page for elements
bower iron-component-page#^1.0.0 resolve GitHub - PolymerElements/iron-component-page: A reusable landing page for elements
bower iron-demo-helpers#^1.0.0 not-cached GitHub - PolymerElements/iron-demo-helpers: Utility classes to make building demo pages easier
bower iron-demo-helpers#^1.0.0 resolve GitHub - PolymerElements/iron-demo-helpers: Utility classes to make building demo pages easier
bower iron-lazy-pages#^1.4.3 not-cached GitHub - TimvdLippe/iron-lazy-pages: Lazy-load content and lazy-register pages to reduce the first load time
bower iron-lazy-pages#^1.4.3 resolve GitHub - TimvdLippe/iron-lazy-pages: Lazy-load content and lazy-register pages to reduce the first load time
bower vaadin-combo-box#^1.1.5 not-cached GitHub - vaadin/vaadin-combo-box: The Web Component for displaying a list of items with filtering. Part of the Vaadin components.
bower vaadin-combo-box#^1.1.5 resolve GitHub - vaadin/vaadin-combo-box: The Web Component for displaying a list of items with filtering. Part of the Vaadin components.
bower vaadin-date-picker#^1.1.4 not-cached GitHub - vaadin/vaadin-date-picker: The Web Component providing a date selection field with scrollable month calendar. Part of the Vaadin components.
bower vaadin-date-picker#^1.1.4 resolve GitHub - vaadin/vaadin-date-picker: The Web Component providing a date selection field with scrollable month calendar. Part of the Vaadin components.
bower web-component-tester#^4.0.0 not-cached GitHub - Polymer/web-component-tester: Moved to Polymer/tools monorepo
bower web-component-tester#^4.0.0 resolve GitHub - Polymer/web-component-tester: Moved to Polymer/tools monorepo
bower cuba-app#^0.2.0 ECMDERR Failed to execute “git ls-remote --tags --heads GitHub - cuba-elements/cuba-app: Element used for initialization and configuration connection to CUBA REST API”, exit code of #1 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Additional error details:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
:app-polymer-client:installBowerPackages FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app-polymer-client:installBowerPackages’.

Process ‘command ‘/Users/ronald/studio-projects/sample-akkount/modules/polymer-client/.gradle/nodejs/node-v6.9.1-darwin-x64/bin/node’’ finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    BUILD FAILED
    Total time: 4.363 secs
    [12:31:33.342] Task ‘deploy, start’ failed
    org.gradle.process.internal.ExecException: Process ‘command ‘/Users/ronald/studio-projects/sample-akkount/modules/polymer-client/.gradle/nodejs/node-v6.9.1-darwin-x64/bin/node’’ finished with non-zero exit value 1

Issue solved. Cause was bad git installation.
I’ve followed instruction on this site

and reinstalled git.

tried deploying akkount project again, and it deployed ok this time.