When launching a rails 5 application today the following error is being hit:
1: from /home/deploy/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/compile_cache/iseq.rb:37:in `load_iseq'
/home/deploy/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/compile_cache/iseq.rb:37:in `fetch':
Operation not permitted - bs_fetch:atomic_write_cache_file:chmod (Errno::EPERM)
Other questions here seem to point to a solution where the gemfile call has require: false
but that is already specified
gem 'bootsnap', '>= 1.1.0', require: false
The only way the application server can start (in development mode for the time being) is by commenting out from boot.rb the following line:
# require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
Between previous re-boot (yesterday) and present moment, neither the boot.rb nor Gemfile was modified. Toggling this line on and off proves the issue is with bootsnap.
What is wrong? What is going on?
tmp
directory permissions is fundamentally correct, but the exact solution may vary according to circumstances. – Tedmann