Android build issue when starting Fastlane

Description of the issue

I have a workflow for Android that uses Fastlane and it fails when installing bundler (before executing Fastlane).

Environment:

stack: Android & Docker, on Ubuntu 16.04

step: Fastlane 2.3.3

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
  • If you have multiple different build configurations (workflows), does the issue affect all/more than one? : YES
  • If it’s an issue which happens sporadically, what’s the frequency? (e.g. Once a day ; about x% of the builds) : ALWAYS
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : 1/17/16

Linux/Android stack builds

Not reproducible on dev machine (Mac OS X).

Other stacks

N/A

Build log

±-----------------------------------------------------------------------------+
| (3) fastlane |
±-----------------------------------------------------------------------------+
| id: fastlane |
| version: 2.3.3 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2017-01-17T21:34:51Z |
±-----------------------------------------------------------------------------+
| |
INFO[21:34:51] Start installing (golang) with apt-get
INFO[21:34:51] * [OK] Step dependency (go) installed, available.

Configs:

  • WorkDir: .
  • Lane: test_and_build
  • UpdateFastlane: true

Expand WorkDir
Expanded WorkDir: /bitrise/src

Determine desired Fastlane version
Checking Gemfile.lock (/bitrise/src/Gemfile.lock) for fastlane gem
Gemfile.lock defined fastlane version: 1.106.2

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 version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/.
Your bundle is locked to credentials_manager (0.16.2), but that version could
not be found in any of the sources listed in your Gemfile. If you haven’t
changed sources, that means the author of credentials_manager (0.16.2) has
removed it. You’ll need to update your bundle to a different version of
credentials_manager (0.16.2) that hasn’t been removed in order to install.
Command failed, error: exit status 7
| |
±–±--------------------------------------------------------------±---------+
| x | fastlane (exit code: 1) | 9.29 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: https://github.com/bitrise-io/steps-fastlane/issues |
| Source: https://github.com/bitrise-io/steps-fastlane |
±–±--------------------------------------------------------------±---------+

1 Like

You should upgrade your Gemfile and run bundle update and git commit the Gemfile.lock change too.

It seems your Gemfile.lock right now references a credentials_manager gem version which was removed (?)

Or you can remove the Gemfile and Gemfile.lock from the repo, if you don’t want to manage the fastlane version through these.

Ran bundle update locally and push the new gemfile.lock, that did it. Thanks Viktor.

1 Like