Rails bootsnap `cannot load such file` error after MacOS Big Sur

1.5k Views Asked by At

After updating to Big Sur, rails no longer runs my application. /Users/me/.rvm/gems/ruby-2.6.6@my_app/gems/bootsnap-1.4.8/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in require': cannot load such file -- /Users/me/.rvm/gems/ruby-2.6.6@my_app/gems/newrelic_rpm-6.10.0.364/lib/new_relic/agent/instrumentation/active_storage.rb (LoadError)

The error is not specific to a gem as it will throw the same error for different gems. I have tried reinstalling rvm, bundler, and all my libraries (pretty much everything i can think of) and nothing has resolved this issue. Any ideas to try solving this are appreciated.

Clearing the bootsnap cache in the app tmp folder does not solve the problem. It only changes the error each time to a different cannot load such file -- some different gem or it throws an error that looks like /Users/tomblais/.rvm/gems/ruby-2.6.6@crm-web/gems/bootsnap-1.4.8/lib/bootsnap/compile_cache/iseq.rb:13:in compile_file': Interrupted system call @ rb_sysopen - /Users/tomblais/Documents/starburstLabs/crm-web/app/helpers/email_connect/email_templates_helper.rb (Errno::EINTR)

UPDATE: I have since wiped my drive and done a clean install of MacOS Big Sur, set everything up yesterday and it was working great. Go to run my program today and get the same sort of error as I have listed above, no idea whats going on here.

1

There are 1 best solutions below

0
On

In my case, the problem was the Real Time protection of the Antivirus Software (Intego Virus Barrier). Turning it off solved.