Bug 789281

Summary: Can not access Openshift website on build devenv_1600
Product: OKD Reporter: Yujie Zhang <yujzhang>
Component: WebsiteAssignee: Clayton Coleman <ccoleman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: szhou, xtian
Target Milestone: ---Keywords: Regression, TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-13 18:31:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
CompilationError none

Description Yujie Zhang 2012-02-10 09:39:47 UTC
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:

Comment 1 Yujie Zhang 2012-02-10 09:47:52 UTC
This bug does not exist on devenv_1596, it is a regression bug.

Comment 2 Clayton Coleman 2012-02-10 17:26:05 UTC
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.

Comment 3 Clayton Coleman 2012-02-10 20:25:28 UTC
Fixed by setting EXECJS_RUNTIME to SpiderMonkey (what we package as part of 'js').  Opened bug 789461 to cover future investigation into V8 problem.

Comment 4 Yujie Zhang 2012-02-13 07:21:10 UTC
(In reply to comment #2)
Testing this bug on rhc-site-0.86.1-1.git.341.d96e1be.el6.noarch,it is fixed now.