I was recently updating one of my coffee files in my Rails app (using NodeJS as my runtime) and after saving it, I reloaded the page and I got the ExecJS::RuntimeError
page.
So I reverted back to what I had before and I was still getting the ExecJS::RuntimeError
.
I then ran rake assets:clean
and bundle exec rake tmp:clear
thinking that it was just something that was cached and if I cleared it out everything would be ok. Still got the ExecJS::RuntimeError page. Rebooted Apache, and rebooted the server and still no go.
Next I looked to the logs and saw I kept getting this every time I loaded the page (ran abrt-cli list --since 1442790134
):
reason: node killed by SIGSEGV time: Sun 20 Sep 2015 08:05:56 PM EDT cmdline: node /tmp/execjs20150920-17817-q0hw4js package: nodejs-0.10.36-3.el7
Just to make sure it was Turbolinks causing this, I took out <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
from the top of my application layout template and all the pages in the app loaded just fine, just without javascript.
I'm running CentOS 7, Ruby 2.0.0p598, Rails 4.2.0, and NodeJS v0.10.36.
What could be causing this and what can I do to stop this from happening?
EDIT: That seems to have fixed the issue. By setting SELinux off for a bit (setenforce 0
), it was able to write to wherever it needed and when I turned SELinux back on everything is back to normal. I'm still puzzled as to how this all started...