Andrey Voronkov
2011-May-27 13:17 UTC
Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
Environment: rvm ruby 1.9.2-p180 rails 3.1.rc1 Conditions: gem "coffee-script" # in Gemfile at least one file with .js.coffee (even empty inside) in app/assets Result: WEBrick or Unicorn hangs. Only kill -9 <pid> helps. P.S. What additional info should I provide? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Andrey Voronkov
2011-May-27 13:36 UTC
Re: Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
Oh, I forgot! I think the problem is somewhere around these two lines in my Gemfile: gem ''therubyracer'', :require => ''v8'' gem ''uglifier'' Because without the first line Rails gives me this on start: in `<module:ExecJS>'': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) 2011/5/27 Andrey Voronkov <voronkovaa@gmail.com>:> Environment: > rvm > ruby 1.9.2-p180 > rails 3.1.rc1 > > Conditions: > gem "coffee-script" # in Gemfile > at least one file with .js.coffee (even empty inside) in app/assets > > Result: > WEBrick or Unicorn hangs. Only kill -9 <pid> helps. > > P.S. What additional info should I provide? >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Matthew Smart
2011-May-27 18:15 UTC
Re: Re: Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
You need a javascript interpreter like therubyracer installed. Keep that line, but remove the version. It shouldn''t be necessary. Try running your app with and without the uglifier gem. My guess is a problem with uglifier. If so, post the error from that. On Fri, May 27, 2011 at 9:36 AM, Andrey Voronkov <voronkovaa@gmail.com>wrote:> Oh, I forgot! I think the problem is somewhere around these two lines > in my Gemfile: > > gem ''therubyracer'', :require => ''v8'' > gem ''uglifier'' > > Because without the first line Rails gives me this on start: > in `<module:ExecJS>'': Could not find a JavaScript runtime. See > https://github.com/sstephenson/execjs for a list of available > runtimes. (ExecJS::RuntimeUnavailable) > > 2011/5/27 Andrey Voronkov <voronkovaa@gmail.com>: > > Environment: > > rvm > > ruby 1.9.2-p180 > > rails 3.1.rc1 > > > > Conditions: > > gem "coffee-script" # in Gemfile > > at least one file with .js.coffee (even empty inside) in app/assets > > > > Result: > > WEBrick or Unicorn hangs. Only kill -9 <pid> helps. > > > > P.S. What additional info should I provide? > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Andrey Voronkov
2011-May-27 23:43 UTC
Re: Re: Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
now these two lines: gem ''therubyracer'' gem ''uglifier'' When I remove gem ''uglifier'' - nothning changes - server is still hangs on the first request. This is the last strings in log: Started GET "/assets/application.css" for 127.0.0.1 at 2011-05-28 09:36:36 +1000 Compiled app/assets/stylesheets/application.css (19ms) (pid 27815) Compiled app/assets/stylesheets/home.css.scss (45ms) (pid 27815) Compiled app/assets/stylesheets/news.css.scss (1ms) (pid 27815) Compiled app/assets/stylesheets/sections.css.scss (30ms) (pid 27815) Compiled app/assets/stylesheets/application.css (0ms) (pid 27815) Served asset /application.css - 200 OK (0.101s) (pid 27815) Started GET "/assets/application.js" for 127.0.0.1 at 2011-05-28 09:36:36 +1000 Compiled app/assets/javascripts/application.js (4ms) (pid 27815) Compiled ~/.rvm/gems/ruby-1.9.2-p180@cancer/gems/jquery-rails-1.0.9/vendor/assets/javascripts/jquery.js (35ms) (pid 27815) Compiled ~/.rvm/gems/ruby-1.9.2-p180@cancer/gems/jquery-rails-1.0.9/vendor/assets/javascripts/jquery-ui.js (1ms) (pid 27815) Compiled ~/.rvm/gems/ruby-1.9.2-p180@cancer/gems/jquery-rails-1.0.9/vendor/assets/javascripts/jquery_ujs.js (0ms) (pid 27815) Compiled app/assets/javascripts/home.js (0ms) (pid 27815) Compiled app/assets/javascripts/news.js (0ms) (pid 27815) After news.js there is a file named sections.js.coffee and it''s empty. Server always hangs before this file compiling with or without uglifier gem. 2011/5/28 Matthew Smart <m.d.smart@gmail.com>:> You need a javascript interpreter like therubyracer installed. Keep that > line, but remove the version. It shouldn''t be necessary. Try running your > app with and without the uglifier gem. My guess is a problem with uglifier. > If so, post the error from that. > > On Fri, May 27, 2011 at 9:36 AM, Andrey Voronkov <voronkovaa@gmail.com> > wrote: >> >> Oh, I forgot! I think the problem is somewhere around these two lines >> in my Gemfile: >> >> gem ''therubyracer'', :require => ''v8'' >> gem ''uglifier'' >> >> Because without the first line Rails gives me this on start: >> in `<module:ExecJS>'': Could not find a JavaScript runtime. See >> https://github.com/sstephenson/execjs for a list of available >> runtimes. (ExecJS::RuntimeUnavailable) >> >> 2011/5/27 Andrey Voronkov <voronkovaa@gmail.com>: >> > Environment: >> > rvm >> > ruby 1.9.2-p180 >> > rails 3.1.rc1 >> > >> > Conditions: >> > gem "coffee-script" # in Gemfile >> > at least one file with .js.coffee (even empty inside) in app/assets >> > >> > Result: >> > WEBrick or Unicorn hangs. Only kill -9 <pid> helps. >> > >> > P.S. What additional info should I provide? >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To post to this group, send email to rubyonrails-core@googlegroups.com. >> To unsubscribe from this group, send email to >> rubyonrails-core+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-core?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Matthew Smart
2011-May-28 00:17 UTC
Re: Re: Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
So there is no error actually being output from the server? It just straight up hangs? Without any error output, or trace, it''s very hard to say. At this point I wouldn''t know what to point my finger at except for the local extensions of the js runtime. Maybe try replacing therubyracer with another gem like therubyrhino, run bundle update and see if you have any different, or at least more verbose results. So: in ./Gemfile remove: gem ''therubyracer'' insert: gem ''therubyrhino'' then from the shell:> bundle updateOn Fri, May 27, 2011 at 7:43 PM, Andrey Voronkov <voronkovaa@gmail.com>wrote:> now these two lines: > gem ''therubyracer'' > gem ''uglifier'' > > When I remove gem ''uglifier'' - nothning changes - server is still > hangs on the first request. This is the last strings in log: > Started GET "/assets/application.css" for 127.0.0.1 at 2011-05-28 09:36:36 > +1000 > Compiled app/assets/stylesheets/application.css (19ms) (pid 27815) > Compiled app/assets/stylesheets/home.css.scss (45ms) (pid 27815) > Compiled app/assets/stylesheets/news.css.scss (1ms) (pid 27815) > Compiled app/assets/stylesheets/sections.css.scss (30ms) (pid 27815) > Compiled app/assets/stylesheets/application.css (0ms) (pid 27815) > > Served asset /application.css - 200 OK (0.101s) (pid 27815) > > > > Started GET "/assets/application.js" for 127.0.0.1 at 2011-05-28 09:36:36 > +1000 > Compiled app/assets/javascripts/application.js (4ms) (pid 27815) > Compiled ~/.rvm/gems/ruby-1.9.2-p180@cancer > /gems/jquery-rails-1.0.9/vendor/assets/javascripts/jquery.js > (35ms) (pid 27815) > Compiled ~/.rvm/gems/ruby-1.9.2-p180@cancer > /gems/jquery-rails-1.0.9/vendor/assets/javascripts/jquery-ui.js > (1ms) (pid 27815) > Compiled ~/.rvm/gems/ruby-1.9.2-p180@cancer > /gems/jquery-rails-1.0.9/vendor/assets/javascripts/jquery_ujs.js > (0ms) (pid 27815) > Compiled app/assets/javascripts/home.js (0ms) (pid 27815) > Compiled app/assets/javascripts/news.js (0ms) (pid 27815) > > After news.js there is a file named sections.js.coffee and it''s empty. > Server always hangs before this file compiling with or without > uglifier gem. > > 2011/5/28 Matthew Smart <m.d.smart@gmail.com>: > > You need a javascript interpreter like therubyracer installed. Keep that > > line, but remove the version. It shouldn''t be necessary. Try running your > > app with and without the uglifier gem. My guess is a problem with > uglifier. > > If so, post the error from that. > > > > On Fri, May 27, 2011 at 9:36 AM, Andrey Voronkov <voronkovaa@gmail.com> > > wrote: > >> > >> Oh, I forgot! I think the problem is somewhere around these two lines > >> in my Gemfile: > >> > >> gem ''therubyracer'', :require => ''v8'' > >> gem ''uglifier'' > >> > >> Because without the first line Rails gives me this on start: > >> in `<module:ExecJS>'': Could not find a JavaScript runtime. See > >> https://github.com/sstephenson/execjs for a list of available > >> runtimes. (ExecJS::RuntimeUnavailable) > >> > >> 2011/5/27 Andrey Voronkov <voronkovaa@gmail.com>: > >> > Environment: > >> > rvm > >> > ruby 1.9.2-p180 > >> > rails 3.1.rc1 > >> > > >> > Conditions: > >> > gem "coffee-script" # in Gemfile > >> > at least one file with .js.coffee (even empty inside) in app/assets > >> > > >> > Result: > >> > WEBrick or Unicorn hangs. Only kill -9 <pid> helps. > >> > > >> > P.S. What additional info should I provide? > >> > > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Ruby on Rails: Core" group. > >> To post to this group, send email to rubyonrails-core@googlegroups.com. > >> To unsubscribe from this group, send email to > >> rubyonrails-core+unsubscribe@googlegroups.com. > >> For more options, visit this group at > >> http://groups.google.com/group/rubyonrails-core?hl=en. > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Core" group. > > To post to this group, send email to rubyonrails-core@googlegroups.com. > > To unsubscribe from this group, send email to > > rubyonrails-core+unsubscribe@googlegroups.com. > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-core?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Andrey Voronkov
2011-May-28 01:43 UTC
Re: Re: Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
changed gem ''therubyracer'' to gem ''therubyrhino'' run bundle update Got this: in `<module:ExecJS>'': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) 2011/5/28 Matthew Smart <m.d.smart@gmail.com>:> therubyrhino-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Matthew Smart
2011-May-28 21:06 UTC
Re: Re: Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
Hey, I managed to reproduce your problem with therubyrhino not being recognized, and I went on to test the mustang engine, and that causes the ExecJS framework to crash outright. I believe this may be a problem more related to ExecJS, you will likely get some better help over on the ExecJS Issues board, here: https://github.com/sstephenson/execjs/issues Good Luck! On Fri, May 27, 2011 at 9:43 PM, Andrey Voronkov <voronkovaa@gmail.com>wrote:> changed gem ''therubyracer'' to gem ''therubyrhino'' > run bundle update > > Got this: > > in `<module:ExecJS>'': Could not find a JavaScript runtime. See > https://github.com/sstephenson/execjs for a list of available > runtimes. (ExecJS::RuntimeUnavailable) > > 2011/5/28 Matthew Smart <m.d.smart@gmail.com>: > > therubyrhino > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Andrey Voronkov
2011-Jun-11 13:03 UTC
Re: Re: Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
Thanks for all the help and advices! New therubyracer 0.9.0 gem did the trick. Still don''t know the reason of such behaviour. 2011/5/29 Matthew Smart <m.d.smart@gmail.com>:> Hey, > I managed to reproduce your problem with therubyrhino not being recognized, > and I went on to test the mustang engine, and that causes the ExecJS > framework to crash outright. I believe this may be a problem more related to > ExecJS, you will likely get some better help over on the ExecJS Issues > board, here: https://github.com/sstephenson/execjs/issues > Good Luck! > > On Fri, May 27, 2011 at 9:43 PM, Andrey Voronkov <voronkovaa@gmail.com> > wrote: >> >> changed gem ''therubyracer'' to gem ''therubyrhino'' >> run bundle update >> >> Got this: >> >> in `<module:ExecJS>'': Could not find a JavaScript runtime. See >> https://github.com/sstephenson/execjs for a list of available >> runtimes. (ExecJS::RuntimeUnavailable) >> >> 2011/5/28 Matthew Smart <m.d.smart@gmail.com>: >> > therubyrhino >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To post to this group, send email to rubyonrails-core@googlegroups.com. >> To unsubscribe from this group, send email to >> rubyonrails-core+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-core?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Reasonably Related Threads
- rails generate scaffold - ERROR
- `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes
- Installing Ruby/TroubleShoot
- Rails 3.1.0 cannot connect to sqlite database on Mac Lion
- Error in Creating a rubyonrails application