Android w/ Fastlane build error: Bundler cannot continue installing faraday_middleware

Hey Bitrise guys,

Our nightly Android build started failing - I pasted the relevant trace below. Any chance you can have a look? Thanks!

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
Fetching version metadata from
Fetching dependency metadata from
Using CFPropertyList 2.3.4
Using i18n 0.7.0
Using thread_safe 0.3.5
Using public_suffix 2.0.5
Using rubyzip 1.2.0
Using babosa 1.0.2
Using claide 1.0.1
Using colored 1.2
Using highline 1.7.8
Using unf_ext
Using dotenv 2.1.2
Using excon 0.54.0
Using multipart-post 2.0.0
Using bundler 1.14.3
Using gh_inspector 1.0.3
Using jwt 1.5.6
Using little-plugger 1.1.4
Using multi_json 1.12.1
Using memoist 0.15.0
Using os 0.9.6
Using httpclient 2.8.3
Using hurley 0.2
Using mime-types-data 3.2016.0521
Using uber 0.0.15
Using retriable 2.1.0
Using mini_magick 4.5.1
Using multi_xml 0.6.0
Using plist 3.2.0
Using security 0.1.3
Using slack-notifier 1.5.1
Using terminal-notifier 1.7.1
Using unicode-display_width 1.1.3
Using word_wrap 1.0.0
Using nanaimo 0.2.3
Using rouge 1.11.1
Using addressable 2.5.0
Using commander 4.4.3
Using unf 0.1.4
Using faraday 0.11.0
Using tzinfo 1.2.2
Using logging 2.1.0
Using mime-types 3.1
Using representable 2.3.0
Using domain_name 0.5.20161129
Using terminal-table 1.7.3
Using xcpretty 0.2.4
Using fastimage 2.0.1
Using signet 0.7.3
Using http-cookie 1.0.3
Using xcpretty-travis-formatter 0.0.4
Using googleauth 0.5.1
Using faraday-cookie_jar 0.0.6
Installing aws-sigv4 1.0.0
Installing jmespath 1.3.1
Installing json 1.8.6 with native extensions
Installing minitest 5.10.1
Installing faraday_middleware 0.11.0
Installing apktools 0.7.1
Installing google-api-client 0.9.20
Bundler cannot continue installing faraday_middleware (0.11.0).
The checksum for the downloaded faraday_middleware-0.11.0.gem does not match
the checksum given by the server. This means the contents of the downloaded gem
is different from what was uploaded to the server, and could be a potential
security issue.

To resolve this issue:

  1. delete the downloaded gem located at:
  2. run bundle install

If you wish to continue installing the downloaded gem, and are certain it does
not pose a security issue despite the mismatching checksum, do the following:

  1. run bundle config disable.checksum_validation true to turn off checksum
  2. run bundle install

(More info: The expected SHA256 checksum was
"c56bb3661af1d5057e578d72d2f9e93ab52630b74ebe37ce1118c93a6ddff56b", but the
checksum for the downloaded gem was
Command failed, error: exit status 19

Seems like a gem issue, you should report this for the gem’s maintainer, or maybe update the version of the gem in your Gemfile and Gemfile.lock

That’s what I did - fixed, thanks Viktor.

You did a Gemfile update?

Yes, I ran “bundle update” locally and push my new lock file with update gem versions.


Perfect, thank you, I’m sure this will help others in the future :wink: