Hide Forgot
Created attachment 560849 [details] CompilationError Description of problem: Can not access Openshift website. Version-Release number of selected component (if applicable): devenv_1600 How reproducible:always Steps to Reproduce: 1.Try to go to openshift website 2. 3. Actual results: The website can not be acccessible, the following error came out: Barista::CompilationError CoffeeScript encountered an error compiling /var/www/libra/site/app/coffeescripts/form.coffee: FATAL ERROR: v8::Context::New() V8 is no longer usable Rails.root: /var/www/libra/site Details see in attachment. Expected results: The website should be accessed sucessfully. Additional info:
This bug does not exist on devenv_1596, it is a regression bug.
Addition of Node.js to the system changed the Javascript runtime that Rails uses (via ExecJS) to compile .coffee files down to .js. [root@ip-10-34-133-24 ~]# ruby -rubygems -e "require 'execjs'; puts ExecJS::Runtimes.autodetect.inspect" #<ExecJS::ExternalRuntime:0x7f40454c7ac0 @runner_path="/usr/lib/ruby/gems/1.8/gems/execjs-1.2.6/lib/execjs/support/node_runner.js", @test_match=nil, @command=["nodejs", "node"], @binary="/usr/bin/node", @encoding=nil, @test_args=nil, @name="Node.js (V8)"> Fix will be to set ENV['EXECJS_RUNTIME'] for the site startup or to remove JS and fix the issue with node where it doesn't have enough memory.
Fixed by setting EXECJS_RUNTIME to SpiderMonkey (what we package as part of 'js'). Opened bug 789461 to cover future investigation into V8 problem.
(In reply to comment #2) Testing this bug on rhc-site-0.86.1-1.git.341.d96e1be.el6.noarch,it is fixed now.