Project

General

Profile

Bug #13710

apipie:cache fails with Missing template ../../layouts/apipie/apipie

Added by Dominic Cleal almost 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
API
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

Since #12873, upgrading Rails to 4.14.1, the apipie:cache rake task fails with:

11:31:54 /usr/bin/bundle exec rake apipie:cache cache_part=resources --trace RAILS_ENV=production
11:32:08 ** Invoke apipie:cache (first_time)
11:32:08 ** Invoke environment (first_time)
11:32:08 ** Execute environment
11:32:15 Apipie cache enabled but not present yet. Run apipie:cache rake task to speed up API calls.
11:32:30 ** Execute apipie:cache
11:32:35 rake aborted!
11:32:35 ActionView::MissingTemplate: Missing template ../../layouts/apipie/apipie with {:locale=>[:"en-GB", :en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :rabl]}. Searched in:
11:32:35   * "/var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/app/views/apipie/apipies" 
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/path_set.rb:46:in `find'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/lookup_context.rb:124:in `find'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/renderer/abstract_renderer.rb:18:in `find_template'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:87:in `resolve_layout'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:77:in `block in find_layout'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/lookup_context.rb:254:in `with_layout_format'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/renderer/abstract_renderer.rb:18:in `with_layout_format'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:77:in `find_layout'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:53:in `render_template'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:17:in `render'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/renderer/renderer.rb:42:in `render_template'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/renderer/renderer.rb:23:in `render'
11:32:35 /var/lib/gems/1.9.1/gems/actionview-4.1.14.1/lib/action_view/helpers/rendering_helper.rb:32:in `render'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:119:in `block in render_page'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:115:in `open'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:115:in `render_page'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:162:in `block in generate_resource_pages'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:156:in `each'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:156:in `generate_resource_pages'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:90:in `block (5 levels) in <top (required)>'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:81:in `each'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:81:in `block (4 levels) in <top (required)>'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:66:in `each'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:66:in `block (3 levels) in <top (required)>'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:190:in `with_loaded_documentation'
11:32:35 /var/lib/gems/1.9.1/gems/apipie-rails-0.3.5/lib/tasks/apipie.rake:64:in `block (2 levels) in <top (required)>'
11:32:35 /var/lib/gems/1.9.1/gems/rake-10.5.0/lib/rake/task.rb:240:in `call'

This is https://github.com/Apipie/apipie-rails/issues/421 and PR https://github.com/Apipie/apipie-rails/pull/425, which is awaiting release.


Related issues

Related to Foreman - Feature #12873: Update Rails to 4.1.latestClosed2015-12-18
Related to Foreman - Bug #14540: rake-apipie:cache:index fails: ActionView::MissingTemplate: Missing template ../../layouts/apipie/apipieClosed2016-04-07

History

#1 Updated by Dominic Cleal almost 4 years ago

#2 Updated by Dominic Cleal almost 4 years ago

  • Status changed from New to Closed

Fixed in apipie-rails 0.3.6.

#3 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #14540: rake-apipie:cache:index fails: ActionView::MissingTemplate: Missing template ../../layouts/apipie/apipie added

Also available in: Atom PDF