TemplateError

I have an error in my unicorn log… Traces:

Error during failsafe response: ActionView::Template::Error
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:11:in
block in render' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:inwrap_formats’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in
render' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:inrender_template’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in
render' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/helpers/rendering_helper.rb:24:inrender’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb:9:in
__home_hosting_molclub__gem_ruby_______gems_actionpack_______lib_action_dispatch_middleware_templates_rescues_diagnostics_erb__469302486263488482_34255540' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/template.rb:171:inblock in render’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in
instrument' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/template.rb:169:inrender’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:40:in
block (2 levels) in render_template' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:inblock in instrument’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in
block in instrument' /home/hosting_molclub/.gem/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:ininstrument’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in
instrument' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:ininstrument’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:39:in
block in render_template' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:47:inrender_with_layout’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in
render_template' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:inblock in render’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in
wrap_formats' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:inrender’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in
render_template' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:inrender’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/helpers/rendering_helper.rb:24:in
render' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:89:inrescue_action_locally’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:69:in
render_exception' /home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/show_exceptions.rb:59:incall’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/railties-3.1.3/lib/rails/rack/logger.rb:13:in
call' /home/hosting_molclub/.gem/ruby/1.9.1/gems/rack-1.3.6/lib/rack/methodoverride.rb:24:incall’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/rack-1.3.6/lib/rack/runtime.rb:17:in
call' /home/hosting_molclub/.gem/ruby/1.9.1/gems/rack-1.3.6/lib/rack/lock.rb:15:incall’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/static.rb:53:in
call' /home/hosting_molclub/.gem/ruby/1.9.1/gems/railties-3.1.3/lib/rails/engine.rb:456:incall’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/railties-3.1.3/lib/rails/railtie/configurable.rb:30:in
method_missing' /home/hosting_molclub/.gem/ruby/1.9.1/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:530:inprocess_client’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:604:in
worker_loop' /home/hosting_molclub/.gem/ruby/1.9.1/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:487:inspawn_missing_workers’
/home/hosting_molclub/.gem/ruby/1.9.1/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:137:in
start' /home/hosting_molclub/.gem/ruby/1.9.1/gems/unicorn-4.2.0/bin/unicorn_rails:209:in’ /home/hosting_molclub/.gem/ruby/1.9.1/bin/unicorn_rails:19:in load' /home/hosting_molclub/.gem/ruby/1.9.1/bin/unicorn_rails:19:in

And there is ‘stack level too deep’ in the rails logs.

What have I do?

On 6 February 2012 12:28, Alexander K. [email protected]
wrote:

I have an error in my unicorn log… Traces:

Error during failsafe response: ActionView::Template::Error

/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:11:in

`block in render’
…’

And there is ‘stack level too deep’ in the rails logs.

What have I do?

You have a recursive loop in your code somewhere. Can you tell
anything from the log before the failure? That should tell you what
it was trying to render. Perhaps you have a partial calling itself or
something like that. If you cannot see it then possibly remove chunks
from the view until the problem goes away.

Colin

Colin L. wrote in post #1044304:

On 6 February 2012 12:28, Alexander K. [email protected]
wrote:

I have an error in my unicorn log… Traces:

Error during failsafe response: ActionView::Template::Error

/home/hosting_molclub/.gem/ruby/1.9.1/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:11:in

`block in render’
…’

And there is ‘stack level too deep’ in the rails logs.

What have I do?

You have a recursive loop in your code somewhere. Can you tell
anything from the log before the failure? That should tell you what
it was trying to render. Perhaps you have a partial calling itself or
something like that. If you cannot see it then possibly remove chunks
from the view until the problem goes away.

Colin

I’m trying to migrate from 3.0 to 3.1. I didn’t change some code yet.
Only Gemfile, and bundle install. It’s strange there are no my files in
the trace…

On 6 February 2012 13:17, Alexander K. [email protected]
wrote:

…’

Colin

I’m trying to migrate from 3.0 to 3.1. I didn’t change some code yet.
Only Gemfile, and bundle install. It’s strange there are no my files in
the trace…

It would have been useful to know that first time round. I don’t know
the answer in that case. If it happens for a particular view then
again you could simplify the view to find out the trouble. I presume
you have already googled for the error with rails 3.1 in the search,
and so on.

Colin

On 6 February 2012 14:19, Alexander K. [email protected]
wrote:

It would have been useful to know that first time round. I don’t know
the answer in that case. If it happens for a particular view then
again you could simplify the view to find out the trouble. I presume
you have already googled for the error with rails 3.1 in the search,
and so on.

Colin

I think that’s dependencies error because it seems to be occured on
rails-generated project…

Sorry I don’t understand that sentence, could you rephrase it please?

Colin

Colin L. wrote in post #1044312:

On 6 February 2012 13:17, Alexander K. [email protected]
wrote:

…’

Colin

I’m trying to migrate from 3.0 to 3.1. I didn’t change some code yet.
Only Gemfile, and bundle install. It’s strange there are no my files in
the trace…

It would have been useful to know that first time round. I don’t know
the answer in that case. If it happens for a particular view then
again you could simplify the view to find out the trouble. I presume
you have already googled for the error with rails 3.1 in the search,
and so on.

Colin

I think that’s dependencies error because it seems to be occured on
rails-generated project…

On 6 February 2012 15:08, Alexander K. [email protected]
wrote:

Colin
dificult to delete old gems… They are used by another project.
I hope you are using RVM to help to manage gems and rails versions.
If not then I strongly suggest that you do.

Colin

Colin L. wrote in post #1044336:

On 6 February 2012 15:08, Alexander K. [email protected]
wrote:

Colin
dificult to delete old gems… They are used by another project.
I hope you are using RVM to help to manage gems and rails versions.
If not then I strongly suggest that you do.

Colin

Yes, my hosting use it with bundle. Is possible sitation when
versions conflict (only version of rails ‘3.1.3’ is specified in
Gemfile)?

On 6 February 2012 16:15, Alexander K. [email protected]
wrote:

Yes, my hosting use it with bundle install. Is possible sitation when
versions conflicts (only version of rails ‘3.1.3’ is specified in
Gemfile)?

Let me just check - this is happening with a new rails 3.1.3 app
created by rails 3.1.3 and with no extra code or gems specified in
Gemfile?
Have you editted the gemfile at all?

Colin

Colin L. wrote in post #1044315:

On 6 February 2012 14:19, Alexander K. [email protected]
wrote:

It would have been useful to know that first time round. I don’t know
the answer in that case. If it happens for a particular view then
again you could simplify the view to find out the trouble. I presume
you have already googled for the error with rails 3.1 in the search,
and so on.

Colin

I think that’s dependencies error because it seems to be occured on
rails-generated project…

Sorry I don’t understand that sentence, could you rephrase it please?

Colin

This error occurs when I run project generated by ‘rails generate’
(3.1). Maybe the problem caused by versions of gems? Because it’s
dificult to delete old gems… They are used by another project.

Colin L. wrote in post #1044341:

On 6 February 2012 16:15, Alexander K. [email protected]
wrote:

Yes, my hosting use it with bundle install. Is possible sitation when
versions conflicts (only version of rails ‘3.1.3’ is specified in
Gemfile)?

Let me just check - this is happening with a new rails 3.1.3 app
created by rails 3.1.3 and with no extra code or gems specified in
Gemfile?
Have you editted the gemfile at all?

Colin

No.

On 6 February 2012 16:33, Alexander K. [email protected]
wrote:

Have you editted the gemfile at all?

Colin

No. Just have deleted static ‘public/index.html’.

Some more questions
When does the error happen?
How are you starting the server?
What version of Ruby are you using?
Which OS?
Can you post your Gemfile and gemfile.lock.

Colin

Colin L. wrote in post #1044347:

On 6 February 2012 16:33, Alexander K. [email protected]
wrote:

Have you editted the gemfile at all?

Colin

No. Just have deleted static ‘public/index.html’.

Some more questions
When does the error happen?
How are you starting the server?
What version of Ruby are you using?
Which OS?
Can you post your Gemfile and gemfile.lock.

Colin

When page is loading, unicorn_rails on Debian, ruby 1.9.2 via rvm.

P.S. If just change ‘3.1.3’ to ‘3.0.11’, everything works.

Colin L. wrote in post #1044358:

On 6 February 2012 17:05, Alexander K. [email protected]
wrote:

When does the error happen?

Attachments:
http://www.ruby-forum.com/attachment/6961/Gemfile

Are you sure that is the Gemfiile produced for a new app created by
Rails 3.1.3, it seems to have some extra stuff in it compared to mine,
for example russian, jquery-rails, ruby\ip enum_column3 therubyracer
v8 etc, etc.

You said that you had not editted the gemfile at all after making a new
app.

Colin

It’s gemfile for my project, I said that situation is
similar for new app…

On 6 February 2012 17:48, Alexander K. [email protected]
wrote:

for example russian, jquery-rails, ruby\ip enum_column3 therubyracer
v8 etc, etc.

You said that you had not editted the gemfile at all after making a new
app.

Colin

It’s gemfile for my project, I said that for new app siation is
similar…

Sorry but I am fast running out of patience, you said you see the
problem on a new app. What exact problem do you see on a new app? If
you see a problem with a new app then post exact error seen and the
Gemfile and the lock file for that (just paste them in the message
don’t mess about with attachments.

Colin

On 6 February 2012 17:05, Alexander K. [email protected]
wrote:

When does the error happen?

Attachments:
http://www.ruby-forum.com/attachment/6961/Gemfile

Are you sure that is the Gemfiile produced for a new app created by
Rails 3.1.3, it seems to have some extra stuff in it compared to mine,
for example russian, jquery-rails, ruby\ip enum_column3 therubyracer
v8 etc, etc.

You said that you had not editted the gemfile at all after making a new
app.

Colin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs