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 https://github.com/github/fetch.git#^2.0.1
bower fetch#^2.0.1 resolve https://github.com/github/fetch.git#^2.0.1
bower polymer#^1.7.0 not-cached https://github.com/Polymer/polymer.git#^1.7.0
bower polymer#^1.7.0 resolve https://github.com/Polymer/polymer.git#^1.7.0
bower app-route#^0.9.3 not-cached https://github.com/PolymerElements/app-route.git#^0.9.3
bower app-route#^0.9.3 resolve https://github.com/PolymerElements/app-route.git#^0.9.3
bower paper-elements#^1.0.7 not-cached https://github.com/PolymerElements/paper-elements.git#^1.0.7
bower paper-elements#^1.0.7 resolve https://github.com/PolymerElements/paper-elements.git#^1.0.7
bower iron-icons#^1.1.3 not-cached https://github.com/PolymerElements/iron-icons.git#^1.1.3
bower iron-icons#^1.1.3 resolve https://github.com/PolymerElements/iron-icons.git#^1.1.3
bower cuba-app#^0.2.0 not-cached https://github.com/cuba-elements/cuba-app.git#^0.2.0
bower cuba-app#^0.2.0 resolve https://github.com/cuba-elements/cuba-app.git#^0.2.0
bower cuba-data#^0.2.0 not-cached https://github.com/cuba-elements/cuba-data.git#^0.2.0
bower cuba-data#^0.2.0 resolve https://github.com/cuba-elements/cuba-data.git#^0.2.0
bower cuba-form#^0.2.0 not-cached https://github.com/cuba-elements/cuba-form.git#^0.2.0
bower cuba-form#^0.2.0 resolve https://github.com/cuba-elements/cuba-form.git#^0.2.0
bower cuba-login#^0.2.0 not-cached https://github.com/cuba-elements/cuba-login.git#^0.2.0
bower cuba-login#^0.2.0 resolve https://github.com/cuba-elements/cuba-login.git#^0.2.0
bower cuba-styles#^0.1.0 not-cached https://github.com/cuba-elements/cuba-styles.git#^0.1.0
bower cuba-styles#^0.1.0 resolve https://github.com/cuba-elements/cuba-styles.git#^0.1.0
bower webcomponentsjs#^0.7.0 not-cached https://github.com/webcomponents/webcomponentsjs.git#^0.7.0
bower webcomponentsjs#^0.7.0 resolve https://github.com/webcomponents/webcomponentsjs.git#^0.7.0
bower iron-signals#^1.0.3 not-cached https://github.com/PolymerElements/iron-signals.git#^1.0.3
bower iron-signals#^1.0.3 resolve https://github.com/PolymerElements/iron-signals.git#^1.0.3
bower iron-component-page#^1.0.0 not-cached https://github.com/PolymerElements/iron-component-page.git#^1.0.0
bower iron-component-page#^1.0.0 resolve https://github.com/PolymerElements/iron-component-page.git#^1.0.0
bower iron-demo-helpers#^1.0.0 not-cached https://github.com/PolymerElements/iron-demo-helpers.git#^1.0.0
bower iron-demo-helpers#^1.0.0 resolve https://github.com/PolymerElements/iron-demo-helpers.git#^1.0.0
bower iron-lazy-pages#^1.4.3 not-cached https://github.com/TimvdLippe/iron-lazy-pages.git#^1.4.3
bower iron-lazy-pages#^1.4.3 resolve https://github.com/TimvdLippe/iron-lazy-pages.git#^1.4.3
bower vaadin-combo-box#^1.1.5 not-cached https://github.com/vaadin/vaadin-combo-box.git#^1.1.5
bower vaadin-combo-box#^1.1.5 resolve https://github.com/vaadin/vaadin-combo-box.git#^1.1.5
bower vaadin-date-picker#^1.1.4 not-cached https://github.com/vaadin/vaadin-date-picker.git#^1.1.4
bower vaadin-date-picker#^1.1.4 resolve https://github.com/vaadin/vaadin-date-picker.git#^1.1.4
bower web-component-tester#^4.0.0 not-cached https://github.com/Polymer/web-component-tester.git#^4.0.0
bower web-component-tester#^4.0.0 resolve https://github.com/Polymer/web-component-tester.git#^4.0.0
bower cuba-app#^0.2.0 ECMDERR Failed to execute “git ls-remote --tags --heads https://github.com/cuba-elements/cuba-app.git”, 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
https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
and reinstalled git.

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