Bug 789281 - Can not access Openshift website on build devenv_1600
Summary: Can not access Openshift website on build devenv_1600
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Website
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-10 09:39 UTC by Yujie Zhang
Modified: 2015-05-15 01:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-13 18:31:24 UTC
Target Upstream Version:


Attachments (Terms of Use)
CompilationError (33.74 KB, image/png)
2012-02-10 09:39 UTC, Yujie Zhang
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.