Command failed, error: exit status 5 - with Fastlane Android

Bitrise Build Issue Report template

Description of the issue

Trying to generate build using Bitrise IO using fastlane in Android. But am receiving

An error occurred while installing curb (0.9.9), and Bundler cannot continue.
Make sure that gem install curb -v '0.9.9' --source 'https://rubygems.org/'
succeeds before bundling.
In Gemfile:
fastlane-plugin-badge was resolved to 1.2.0, which depends on
badge was resolved to 0.10.0, which depends on
curb
Command failed, error: exit status 5

Am able to create build locally on mac, using the same .yml file. But receiving above error, from IO.

Gemfile

GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.0)
addressable (2.6.0)
public_suffix (>= 2.0.2, < 4.0)
atomos (0.1.3)
babosa (1.0.2)
badge (0.10.0)
curb (~> 0.9)
fastimage (>= 1.6)
fastlane (>= 2.0)
mini_magick (>= 4.5)
claide (1.0.2)
colored (1.2)
colored2 (3.1.2)
commander-fastlane (4.4.6)
highline (~> 1.7.2)
curb (0.9.9)
declarative (0.0.10)
declarative-option (0.1.0)
digest-crc (0.4.1)
domain_name (0.5.20180417)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.2)
emoji_regex (1.0.1)
excon (0.62.0)
faraday (0.15.4)
multipart-post (>= 1.2, < 3)
faraday-cookie_jar (0.0.6)
faraday (>= 0.7.4)
http-cookie (~> 1.0.0)
faraday_middleware (0.13.1)
faraday (>= 0.7.4, < 1.0)
fastimage (2.1.5)
fastlane (2.119.0)
CFPropertyList (>= 2.3, < 4.0.0)
addressable (>= 2.3, < 3.0.0)
babosa (>= 1.0.2, < 2.0.0)
bundler (>= 1.12.0, < 3.0.0)
colored
commander-fastlane (>= 4.4.6, < 5.0.0)
dotenv (>= 2.1.1, < 3.0.0)
emoji_regex (>= 0.1, < 2.0)
excon (>= 0.45.0, < 1.0.0)
faraday (~> 0.9)
faraday-cookie_jar (~> 0.0.6)
faraday_middleware (~> 0.9)
fastimage (>= 2.1.0, < 3.0.0)
gh_inspector (>= 1.1.2, < 2.0.0)
google-api-client (>= 0.21.2, < 0.24.0)
google-cloud-storage (>= 1.15.0, < 2.0.0)
highline (>= 1.7.2, < 2.0.0)
json (< 3.0.0)
mini_magick (~> 4.5.1)
multi_json
multi_xml (~> 0.5)
multipart-post (~> 2.0.0)
plist (>= 3.1.0, < 4.0.0)
public_suffix (~> 2.0.0)
rubyzip (>= 1.2.2, < 2.0.0)
security (= 0.1.3)
simctl (~> 1.6.3)
slack-notifier (>= 2.0.0, < 3.0.0)
terminal-notifier (>= 2.0.0, < 3.0.0)
terminal-table (>= 1.4.5, < 2.0.0)
tty-screen (>= 0.6.3, < 1.0.0)
tty-spinner (>= 0.8.0, < 1.0.0)
word_wrap (~> 1.0.0)
xcodeproj (>= 1.8.1, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-appcenter (0.1.7)
fastlane-plugin-badge (1.2.0)
badge (~> 0.10.0)
gh_inspector (1.1.3)
google-api-client (0.23.9)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.5, < 0.7.0)
httpclient (>= 2.8.1, < 3.0)
mime-types (~> 3.0)
representable (~> 3.0)
retriable (>= 2.0, < 4.0)
signet (~> 0.9)
google-cloud-core (1.3.0)
google-cloud-env (~> 1.0)
google-cloud-env (1.0.5)
faraday (~> 0.11)
google-cloud-storage (1.16.0)
digest-crc (~> 0.4)
google-api-client (~> 0.23)
google-cloud-core (~> 1.2)
googleauth (>= 0.6.2, < 0.10.0)
googleauth (0.6.7)
faraday (~> 0.12)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (~> 0.7)
highline (1.7.10)
http-cookie (1.0.3)
domain_name (~> 0.5)
httpclient (2.8.3)
json (2.2.0)
jwt (2.1.0)
memoist (0.16.0)
mime-types (3.2.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2019.0331)
mini_magick (4.5.1)
multi_json (1.13.1)
multi_xml (0.6.0)
multipart-post (2.0.0)
nanaimo (0.2.6)
naturally (2.2.0)
os (1.0.0)
plist (3.5.0)
public_suffix (2.0.5)
representable (3.0.4)
declarative (< 0.1.0)
declarative-option (< 0.2.0)
uber (< 0.2.0)
retriable (3.1.2)
rouge (2.0.7)
rubyzip (1.2.2)
security (0.1.3)
signet (0.11.0)
addressable (~> 2.3)
faraday (~> 0.9)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simctl (1.6.5)
CFPropertyList
naturally
slack-notifier (2.3.2)
terminal-notifier (2.0.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
tty-cursor (0.6.1)
tty-screen (0.6.5)
tty-spinner (0.9.0)
tty-cursor (~> 0.6.0)
uber (0.1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.5)
unicode-display_width (1.5.0)
word_wrap (1.0.0)
xcodeproj (1.8.2)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.2.6)
xcpretty (0.3.0)
rouge (~> 2.0.7)
xcpretty-travis-formatter (1.0.0)
xcpretty (~> 0.2, >= 0.0.7)

PLATFORMS
ruby

DEPENDENCIES
fastlane
fastlane-plugin-appcenter
fastlane-plugin-badge

BUNDLED WITH
2.0.1

Environment:

Bitrise.io, maxOs high Sierra 10.13.6

Which build Step causes the issue and which version of the step?

fastlane@2.4.0

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • Does the issue happen sporadically, or every time? : Every time
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : First time set up.

Local reproduction

_Can it be reproduced on your own Mac/PC by following our

Works fine on Mac, able to create build successfully.
✓ | fastlane@2.4.0 | 28 sec

Build Log

Log

_Agent version: 1.2.1
Start time: 2019-04-01T20:28:16Z
$ docker “run” “-v” “/var/run/docker.sock:/var/run/docker.sock” “-v” “/bitrise:/bitrise” “-v” “/tmp/bitrise-agent378185811:/.bitrise-config” “-e” “BITRISE_GIT_BRANCH=ci/fastlane” “-e” “BITRISEIO_GIT_REPOSITORY_OWNER=plasticmobile” “-e” “BITRISEIO_GIT_REPOSITORY_SLUG=pp-pizzapizza-android-v2” “-e” “BITRISE_APP_SLUG=fb3f0db4e09e2582” “-e” “BITRISE_APP_TITLE=PizzaPizza-v2-Android-QA” “-e” “GIT_REPOSITORY_URL=git@bitbucket.org:plasticmobile/pp-pizzapizza-android-v2.git” “-e” “BITRISEIO_STACK_ID=linux-docker-android” “-e” “BITRISE_BUILD_TRIGGER_TIMESTAMP=1554150495” “-e” “BITRISE_BUILD_NUMBER=12” “-e” “BITRISE_IO=true” “-e” “BITRISE_APP_URL=Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation” “-e” “BITRISE_BUILD_URL=Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation” “-e” “BITRISE_BUILD_SLUG=00ff03f9305dacee” “–privileged” “–network=host” “–name=bitrise-main-container” “bitriseio/android-ndk:pinned” “bitrise” “run” “–config” “/.bitrise-config/bitrise.yml” “–inventory” “/.bitrise-config/bitrise.secrets.yml” “–json-params-base64” “eyJ3b3JrZmxvdyI6InByaW1hcnkifQ==”
██████╗ ██╗████████╗██████╗ ██╗███████╗███████╗
██╔══██╗██║╚══██╔══╝██╔══██╗██║██╔════╝██╔════╝
██████╔╝██║ ██║ ██████╔╝██║███████╗█████╗
██╔══██╗██║ ██║ ██╔══██╗██║╚════██║██╔══╝
██████╔╝██║ ██║ ██║ ██║██║███████║███████╗
╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚══════╝
version: 1.28.0
INFO[20:28:17] bitrise runs in Secret Filtering mode
INFO[20:28:17] bitrise runs in CI mode
INFO[20:28:17] Running workflow: primary
Switching to workflow: primary
±-----------------------------------------------------------------------------+

| (0) activate-ssh-key@4.0.3 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | activate-ssh-key@4.0.3 | 4.81 sec |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+

| (1) git-clone@4.0.11 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | git-clone@4.0.11 | 7.19 sec |
±–±--------------------------------------------------------------±---------+
| Update available: 4.0.11 → 4.0.14 |
±–±--------------------------------------------------------------±---------+

±-----------------------------------------------------------------------------+

| (2) script@1.1.5 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | script@1.1.5 | 9.89 sec |
±–±--------------------------------------------------------------±---------+

INFO[20:28:40] Step info not found in StepLib (GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib) – Updating …
INFO[20:28:40] Update StepLib (GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib)…
±-----------------------------------------------------------------------------+

| (3) fastlane@2.4.0 |
±-----------------------------------------------------------------------------+
| id: fastlane |
| version: 2.4.0 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2019-04-01T20:28:45Z |
±-----------------------------------------------------------------------------+
| |
INFO[20:28:45] Start installing (golang) with apt-get
INFO[20:28:45] * [OK] Step dependency (go) installed, available.
Configs:

  • WorkDir: .
  • Lane: android test
  • UpdateFastlane: false
    Expand WorkDir
    Expanded WorkDir: /bitrise/src
    Ensure cookies for Apple Developer Portal
    Failed to activate the Bitrise Apple Developer Portal connection: %!s(MISSING)
    Read more: https://devcenter.bitrise.io/getting-started/signing-up/connecting-apple-dev-account/
    errors:
    Falied to fetch portal data from Bitrise, error: Response status: 404 - Body: {“error_msg”:“No Apple developer account found for this build.”}
    Determine desired Fastlane version
    Checking Gemfile.lock (/bitrise/src/Gemfile.lock) for fastlane gem
    Gemfile.lock defined fastlane version: >= 2.0
    Install Fastlane with bundler
    $ bundle “install” “–jobs” “20” “–retry” “5”
    Don’t run Bundler as root. Bundler can ask for sudo if it is needed, and
    installing your bundle as root will break this application for all non-root
    users on this machine.
    Fetching gem metadata from https://rubygems.org/
    Fetching gem metadata from https://rubygems.org/.
    Resolving dependencies…
    Using CFPropertyList 3.0.0
    Using public_suffix 2.0.5
    Using atomos 0.1.3
    Using babosa 1.0.2
    Fetching curb 0.9.9
    Using fastimage 2.1.5
    Using bundler 2.0.1
    Using colored 1.2
    Using highline 1.7.10
    Fetching dotenv 2.7.2
    Using emoji_regex 1.0.1
    Using excon 0.62.0
    Using multipart-post 2.0.0
    Using unf_ext 0.0.7.5
    Using gh_inspector 1.1.3
    Using jwt 2.1.0
    Using memoist 0.16.0
    Using multi_json 1.13.1
    Using os 1.0.0
    Using httpclient 2.8.3
    Fetching mime-types-data 3.2019.0331
    Using declarative 0.0.10
    Using declarative-option 0.1.0
    Using uber 0.1.0
    Using retriable 3.1.2
    Using digest-crc 0.4.1
    Fetching json 2.2.0
    Using mini_magick 4.5.1
    Using multi_xml 0.6.0
    Using plist 3.5.0
    Using rubyzip 1.2.2
    Using security 0.1.3
    Using naturally 2.2.0
    Using slack-notifier 2.3.2
    Using terminal-notifier 2.0.0
    Using unicode-display_width 1.5.0
    Using tty-screen 0.6.5
    Using tty-cursor 0.6.1
    Using word_wrap 1.0.0
    Using claide 1.0.2
    Using colored2 3.1.2
    Using nanaimo 0.2.6
    Using rouge 2.0.7
    Using addressable 2.6.0
    Using representable 3.0.4
    Fetching fastlane-plugin-appcenter 0.1.7
    Using commander-fastlane 4.4.6
    Using faraday 0.15.4
    Using unf 0.1.4
    Using simctl 1.6.5
    Using terminal-table 1.8.0
    Using tty-spinner 0.9.0
    Fetching xcodeproj 1.8.2
    Using xcpretty 0.3.0
    Using domain_name 0.5.20180417
    Using faraday_middleware 0.13.1
    Using signet 0.11.0
    Using google-cloud-env 1.0.5
    Using xcpretty-travis-formatter 1.0.0
    Using http-cookie 1.0.3
    Using googleauth 0.6.7
    Using google-cloud-core 1.3.0
    Using faraday-cookie_jar 0.0.6
    Installing fastlane-plugin-appcenter 0.1.7
    Installing dotenv 2.7.2
    Installing curb 0.9.9 with native extensions
    Installing xcodeproj 1.8.2
    Installing json 2.2.0 with native extensions
    Installing mime-types-data 3.2019.0331
    Using mime-types 3.2.2
    Using google-api-client 0.23.9
    Using google-cloud-storage 1.16.0
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    current directory: /usr/local/lib/ruby/gems/2.5.0/gems/curb-0.9.9/ext
    /usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.5.0 -r
    ./siteconf20190401-1883-hqivvz.rb extconf.rb
    checking for curl-config… no
    checking for -lcurl… no
    *** extconf.rb failed ***
    Could not create Makefile due to some reason, probably lack of necessary
    libraries and/or headers. Check the mkmf.log file for more details. You may
    need configuration options.
    Provided configuration options:
    –with-opt-dir
    –without-opt-dir
    –with-opt-include
    –without-opt-include=${opt-dir}/include
    –with-opt-lib
    –without-opt-lib=${opt-dir}/lib
    –with-make-prog
    –without-make-prog
    –srcdir=.
    –curdir
    –ruby=/usr/local/bin/$(RUBY_BASE_NAME)
    –with-curl-dir
    –without-curl-dir
    –with-curl-include
    –without-curl-include=${curl-dir}/include
    –with-curl-lib
    –without-curl-lib=${curl-dir}/lib
    –with-curllib
    –without-curllib
    extconf.rb:18:in <main>': Can't find libcurl or curl/curl.h (RuntimeError) Try passing --with-curl-dir or --with-curl-lib and --with-curl-include options to extconf. To see why this extension failed to compile, please check the mkmf.log which can be found here: /usr/local/lib/ruby/gems/2.5.0/extensions/x86_64-linux/2.5.0-static/curb-0.9.9/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /usr/local/lib/ruby/gems/2.5.0/gems/curb-0.9.9 for inspection. Results logged to /usr/local/lib/ruby/gems/2.5.0/extensions/x86_64-linux/2.5.0-static/curb-0.9.9/gem_make.out An error occurred while installing curb (0.9.9), and Bundler cannot continue. Make sure that gem install curb -v ‘0.9.9’ --source 'https://rubygems.org/'`
    succeeds before bundling.
    In Gemfile:
    fastlane-plugin-badge was resolved to 1.2.0, which depends on
    badge was resolved to 0.10.0, which depends on
    curb
    Command failed, error: exit status 5
    | |
    ±–±--------------------------------------------------------------±---------+
    | x | fastlane@2.4.0 (exit code: 1) | 22 sec |
    ±–±--------------------------------------------------------------±---------+
    | Issue tracker: Issues · bitrise-steplib/steps-fastlane · GitHub |
    | Source: GitHub - bitrise-steplib/steps-fastlane |
    ±–±--------------------------------------------------------------±---------+

    ±-----------------------------------------------------------------------------+

| (4) deploy-to-bitrise-io@1.3.15 |
±–±--------------------------------------------------------------±---------+
±–±--------------------------------------------------------------±---------+
| ✓ | deploy-to-bitrise-io@1.3.15 | 5.89 sec |
±–±--------------------------------------------------------------±---------+
| Update available: 1.3.15 → 1.3.19 |
±–±--------------------------------------------------------------±---------+
±-----------------------------------------------------------------------------+
| bitrise summary |
±–±--------------------------------------------------------------±---------+
| | title | time (s) |
±–±--------------------------------------------------------------±---------+
| ✓ | activate-ssh-key@4.0.3 | 4.81 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | git-clone@4.0.11 | 7.19 sec |
±–±--------------------------------------------------------------±---------+
| Update available: 4.0.11 → 4.0.14 |
±–±--------------------------------------------------------------±---------+
| ✓ | script@1.1.5 | 9.89 sec |
±–±--------------------------------------------------------------±---------+
| x | fastlane@2.4.0 (exit code: 1) | 22 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: Issues · bitrise-steplib/steps-fastlane · GitHub |
| Source: GitHub - bitrise-steplib/steps-fastlane |
±–±--------------------------------------------------------------±---------+
| ✓ | deploy-to-bitrise-io@1.3.15 | 5.89 sec |
±–±--------------------------------------------------------------±---------+
| Update available: 1.3.15 → 1.3.19 |
±–±--------------------------------------------------------------±---------+
| Total runtime: 50 sec |
±-----------------------------------------------------------------------------+_

Hello there, did you try to install curb? :thinking:

Yes tried to install, curb with script, but no success

ERROR: Error installing curb:

ERROR: Failed to build gem native extension.

current directory: /usr/local/lib/ruby/gems/2.5.0/gems/curb-0.9.9/ext

/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.5.0 -r ./siteconf20190402-1354-1yl6yv2.rb extconf.rb

checking for curl-config… no

checking for -lcurl… no

*** extconf.rb failed ***

Could not create Makefile due to some reason, probably lack of necessary

libraries and/or headers. Check the mkmf.log file for more details. You may

need configuration options. indent preformatted text by 4 spaces

did you try it with gem install? :thinking:
Could you please send me a build’s url and enable support user on the settings tab of the app? I would like to check a few things and run some builds if it’s ok with you :upside_down_face:

1 Like

My bad, It’s with work flow specific stack configuration.
Everything works fine now.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.