ruby-on-lambda icon indicating copy to clipboard operation
ruby-on-lambda copied to clipboard

gems/bundler-1.9.9/lib/bundler/definition.rb:250:in `initialize': Read-only file system @ rb_sysopen - /var/task/bin/lib/vendor/Gemfile.lock (Errno::EROFS)

Open acatighera opened this issue 7 years ago • 5 comments

I did make some modification but running into this error. I am using ruby 2.2 but don't see why that would matter.

acatighera avatar May 31 '17 19:05 acatighera

I haven't seen that error.

If you change Ruby versions locally, you'll need to change which Ruby version is packaged in (I think.)

If that doesn't fix it, we'd have to see whatever other changes you've made.

Good luck!

lorennorman avatar May 31 '17 19:05 lorennorman

Calling require seems to try to lock the Gemfile.lock which opens the file as writeable. Not sure how requiring any gem would work on lambda since it it is read only container... Any ideas?

acatighera avatar May 31 '17 20:05 acatighera

I had a similar problem. Running bundle install inside the app folder before deploying fixed it for me.

bitsapien avatar Jun 22 '17 06:06 bitsapien

I resolved the issue by regenerating my Gemfile.lock. It seems like it was out of sync with the Gemfile.

On Thu, Jun 22, 2017 at 2:38 AM C Rahul [email protected] wrote:

I had a similar problem, running bundle install inside the app folder before deploying fixed it for me.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lorennorman/ruby-on-lambda/issues/12#issuecomment-310289745, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA37kCRES9SA2fvAm-pjhfMYAlh_jjEks5sGgvSgaJpZM4NsDo9 .

acatighera avatar Jun 22 '17 10:06 acatighera

@bitsapien It's work for me, thks a lot!

a9cQ0Q avatar Aug 02 '17 02:08 a9cQ0Q