heroku-buildpack-ruby: Bundle install gives `Errno::EROFS: Read-only file system @ dir_s_mkdir`

Now that we are using the new Bundler 2.1.4 support released today, we are seeing the following issue:

-----> Installing dependencies using bundler 2.1.4
Running: BUNDLE_WITHOUT=development:test BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
There was an error accessing `/home/rof/cache/bundler/ruby/2.7.0`.
The underlying system error is Errno::EROFS: Read-only file system @ dir_s_mkdir
- /home
Bundler Output: There was an error accessing `/home/rof/cache/bundler/ruby/2.7.0`.
The underlying system error is Errno::EROFS: Read-only file system @ dir_s_mkdir
- /home

!
!     Failed to install gems via Bundler.
!
!     Push rejected, failed to compile Ruby app.

!     Push failed
    Build failed

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 19 (5 by maintainers)

Most upvoted comments

Awesome. Thanks!

This issue is coming from CodeShip. They’re sending over a .bundle/config with some values in it that appear to take precedence over the env vars that we’re now using see https://devcenter.heroku.com/changelog-items/1930.

  1. The short term workaround is to change your CodeShip config to delete the .bundle/config file before deploy
  2. If you have a copy of the config, can you provide it to me? I would like to see what’s in there.
  3. Please contact CodeShip’s support and ask them to remove the .bundle/config file before attempting to deploy to Heroku.