bitrise-io / bitrise

Bitrise runner CLI - run your automations on your Mac or Linux machine -
https://www.bitrise.io/cli
MIT License
839 stars 130 forks source link

Setup failed, error: Stepman failed to install: Failed to get version #387

Open dagio opened 8 years ago

dagio commented 8 years ago

When I execute bitrise setup, I have an error : Stepman failed to install: Failed to get version

❯ bitrise setup

  ██████╗ ██╗████████╗██████╗ ██╗███████╗███████╗
  ██╔══██╗██║╚══██╔══╝██╔══██╗██║██╔════╝██╔════╝
  ██████╔╝██║   ██║   ██████╔╝██║███████╗█████╗
  ██╔══██╗██║   ██║   ██╔══██╗██║╚════██║██╔══╝
  ██████╔╝██║   ██║   ██║  ██║██║███████║███████╗
  ╚═════╝ ╚═╝   ╚═╝   ╚═╝  ╚═╝╚═╝╚══════╝╚══════╝

Version: 1.3.7

INFO[13:15:50] Setup
INFO[13:15:50] Full setup: false
INFO[13:15:50] Detected OS: darwin
INFO[13:15:50] Doing OS X specific setup
INFO[13:15:50] Checking required tools...
INFO[13:15:50]  * [OK] Homebrew : /usr/local/bin/brew
INFO[13:15:50]         version : Homebrew 0.9.9 (git revision 8e29cf; last commit 2016-08-28)
Homebrew/homebrew-core (git revision 5888; last commit 2016-08-30)
INFO[13:15:50]  * [OK] xcodebuild path : /usr/bin/xcodebuild
INFO[13:15:50]         version (xcodebuild) : Xcode 7.3.1 | Build version 7D1014
INFO[13:15:50]         active Xcode (Command Line Tools) path (xcode-select --print-path) : /Applications/Xcode.app/Contents/Developer
INFO[13:15:50]  * [OK] envman : /Users/damiengavard/.bitrise/tools/envman
INFO[13:15:50]         version : 1.1.0
INFO[13:15:50]
FATA[13:15:50] Setup failed, error: Stepman failed to install: Failed to get version

In case we need to have envman in $PATH, I do not have it :

❯ envman
zsh: command not found: envman
viktorbenei commented 8 years ago

Thanks for the report!

Can you please copy paste the output of:

which stepman
which envman
which bitrise

?

I suspect you have stepman installed somewhere, or maybe a download failed. If the download failed, probably the easiest fix is:

rm -rf ~/.bitrise/tools

To delete all the bitrise CLI tools. After that, a new bitrise setup should attempt to download the tools again.

viktorbenei commented 8 years ago

In any case, a better error message, and a download retry logic for the tools would be an awesome addition.

viktorbenei commented 8 years ago

@godrei please add this to our Trello

dagio commented 8 years ago
~
❯ which stepman
stepman not found

~
❯ which envman
envman not found

~
❯ which bitrise
/usr/local/bin/bitrise

The fix that you suggested works !

~
❯ rm -rf ~/.bitrise/tools

Then :

~
❯ bitrise setup --full

  ██████╗ ██╗████████╗██████╗ ██╗███████╗███████╗
  ██╔══██╗██║╚══██╔══╝██╔══██╗██║██╔════╝██╔════╝
  ██████╔╝██║   ██║   ██████╔╝██║███████╗█████╗
  ██╔══██╗██║   ██║   ██╔══██╗██║╚════██║██╔══╝
  ██████╔╝██║   ██║   ██║  ██║██║███████║███████╗
  ╚═════╝ ╚═╝   ╚═╝   ╚═╝  ╚═╝╚═╝╚══════╝╚══════╝

Version: 1.3.7

INFO[15:12:30] Setup
INFO[15:12:30] Full setup: true
INFO[15:12:30] Detected OS: darwin
INFO[15:12:30] Doing OS X specific setup
INFO[15:12:30] Checking required tools...
INFO[15:12:51]  * [OK] Homebrew : /usr/local/bin/brew
INFO[15:12:51]         version : Homebrew 0.9.9 (git revision 8e29cf; last commit 2016-08-28)
Homebrew/homebrew-core (git revision 3220; last commit 2016-08-30)
INFO[15:12:51]  * [OK] xcodebuild path : /usr/bin/xcodebuild
INFO[15:12:51]         version (xcodebuild) : Xcode 7.3.1 | Build version 7D1014
INFO[15:12:51]         active Xcode (Command Line Tools) path (xcode-select --print-path) : /Applications/Xcode.app/Contents/Developer

WARN[15:12:51] No supported envman version found.
INFO[15:12:51] You can find more information about envman on it's official GitHub page: https://github.com/bitrise-io/envman
INFO[15:12:51] Installing...
INFO[15:12:58]  * [OK] envman : /Users/damiengavard/.bitrise/tools/envman
INFO[15:12:58]         version : 1.1.0

WARN[15:12:58] No supported stepman version found.
INFO[15:12:58] You can find more information about stepman on it's official GitHub page: https://github.com/bitrise-io/stepman
INFO[15:12:58] Installing...
INFO[15:13:01]  * [OK] stepman : /Users/damiengavard/.bitrise/tools/stepman
INFO[15:13:01]         version : 0.9.22
INFO[15:13:01]  * [OK] Plugin (analytics) : /Users/damiengavard/.bitrise/plugins/analytics
INFO[15:13:01]         version : 0.9.4
INFO[15:13:01] All the required tools are installed!
INFO[15:13:01] We're ready to rock!!

INFO[15:13:01] To start using bitrise:
INFO[15:13:01] * cd into your project's directory (if you're not there already)
INFO[15:13:01] * call: bitrise init
INFO[15:13:01] * follow the guide

INFO[15:13:01] That's all :)
viktorbenei commented 8 years ago

Thanks for the logs, I believe this issue was caused by a failed stepman tool download - so after that Bitrise CLI detected that stepman is available, but as the download was interrupted it was not a valid binary, so a stepman -version call would fail.

We'll definitely fix this, thanks again for reporting and for the details!