Project

General

Profile

Actions

Bug #13804

closed

apipie:cache fails with :"en-GB" is not a valid locale

Added by Dominic Cleal almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

apipie:cache is failing on source installations and Debian package builds:

17:22:45 /usr/bin/bundle exec rake apipie:cache cache_part=resources --trace RAILS_ENV=production
17:22:48 ** Invoke apipie:cache (first_time)
17:22:48 ** Invoke environment (first_time)
17:22:48 ** Execute environment
17:22:50 Apipie cache enabled but not present yet. Run apipie:cache rake task to speed up API calls.
17:22:52 ** Execute apipie:cache
17:23:00 rake aborted!
17:23:00 ActionView::Template::Error: :"en-GB" is not a valid locale
17:23:00 /var/lib/gems/2.1.0/gems/i18n-0.7.0/lib/i18n.rb:284:in `enforce_available_locales!'
17:23:00 /var/lib/gems/2.1.0/gems/i18n-0.7.0/lib/i18n.rb:151:in `translate'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/helpers/translation_helper.rb:68:in `translate'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/app/views/apipie/apipies/_method_detail.erb:26:in `__var_lib_gems_______gems_apipie_rails_______app_views_apipie_apipies__method_detail_erb__2715372476469588294_93278500'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:145:in `block in render'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:161:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:339:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:143:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/partial_renderer.rb:306:in `render_partial'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/partial_renderer.rb:279:in `block in render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `block in instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/partial_renderer.rb:278:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/renderer.rb:47:in `render_partial'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/renderer.rb:21:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/helpers/rendering_helper.rb:32:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/app/views/apipie/apipies/resource.html.erb:70:in `block in __var_lib_gems_______gems_apipie_rails_______app_views_apipie_apipies_resource_html_erb___1364166800221332498_93069600'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/app/views/apipie/apipies/resource.html.erb:39:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/app/views/apipie/apipies/resource.html.erb:39:in `__var_lib_gems_______gems_apipie_rails_______app_views_apipie_apipies_resource_html_erb___1364166800221332498_93069600'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:145:in `block in render'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:161:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:339:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:143:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `block in instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:54:in `block in render_template'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:53:in `render_template'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:17:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/renderer.rb:42:in `render_template'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/renderer.rb:23:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/helpers/rendering_helper.rb:32:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:120:in `block in render_page'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:116:in `open'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:116:in `render_page'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:163:in `block in generate_resource_pages'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:157:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:157:in `generate_resource_pages'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:90:in `block (5 levels) in <top (required)>'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:81:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:81:in `block (4 levels) in <top (required)>'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:66:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:66:in `block (3 levels) in <top (required)>'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:191:in `with_loaded_documentation'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:64:in `block (2 levels) in <top (required)>'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `call'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
17:23:00 /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/bin/rake:33:in `<top (required)>'
17:23:00 /usr/local/bin/rake:23:in `load'
17:23:00 /usr/local/bin/rake:23:in `<main>'
17:23:00 I18n::InvalidLocale: :"en-GB" is not a valid locale
17:23:00 /var/lib/gems/2.1.0/gems/i18n-0.7.0/lib/i18n.rb:284:in `enforce_available_locales!'
17:23:00 /var/lib/gems/2.1.0/gems/i18n-0.7.0/lib/i18n.rb:151:in `translate'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/helpers/translation_helper.rb:68:in `translate'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/app/views/apipie/apipies/_method_detail.erb:26:in `__var_lib_gems_______gems_apipie_rails_______app_views_apipie_apipies__method_detail_erb__2715372476469588294_93278500'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:145:in `block in render'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:161:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:339:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:143:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/partial_renderer.rb:306:in `render_partial'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/partial_renderer.rb:279:in `block in render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `block in instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/partial_renderer.rb:278:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/renderer.rb:47:in `render_partial'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/renderer.rb:21:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/helpers/rendering_helper.rb:32:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/app/views/apipie/apipies/resource.html.erb:70:in `block in __var_lib_gems_______gems_apipie_rails_______app_views_apipie_apipies_resource_html_erb___1364166800221332498_93069600'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/app/views/apipie/apipies/resource.html.erb:39:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/app/views/apipie/apipies/resource.html.erb:39:in `__var_lib_gems_______gems_apipie_rails_______app_views_apipie_apipies_resource_html_erb___1364166800221332498_93069600'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:145:in `block in render'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:161:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:339:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/template.rb:143:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:55:in `block (2 levels) in render_template'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `block in instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/activesupport-4.1.14.1/lib/active_support/notifications.rb:159:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:54:in `block in render_template'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:62:in `render_with_layout'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:53:in `render_template'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/template_renderer.rb:17:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/renderer.rb:42:in `render_template'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/renderer/renderer.rb:23:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/actionview-4.1.14.1/lib/action_view/helpers/rendering_helper.rb:32:in `render'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:120:in `block in render_page'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:116:in `open'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:116:in `render_page'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:163:in `block in generate_resource_pages'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:157:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:157:in `generate_resource_pages'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:90:in `block (5 levels) in <top (required)>'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:81:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:81:in `block (4 levels) in <top (required)>'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:66:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:66:in `block (3 levels) in <top (required)>'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:191:in `with_loaded_documentation'
17:23:00 /var/lib/gems/2.1.0/gems/apipie-rails-0.3.6/lib/tasks/apipie.rake:64:in `block (2 levels) in <top (required)>'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `call'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
17:23:00 /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
17:23:00 /var/lib/gems/2.1.0/gems/rake-10.5.0/bin/rake:33:in `<top (required)>'
17:23:00 /usr/local/bin/rake:23:in `load'
17:23:00 /usr/local/bin/rake:23:in `<main>'
17:23:00 Tasks: TOP => apipie:cache
17:23:00 2016-02-18 17:22:52 +0000 | Started
17:23:00 2016-02-18 17:22:59 +0000 | Documents loaded...
17:23:00 2016-02-18 17:22:59 +0000 | Processing docs for 
17:23:00 debian/rules:11: recipe for target 'build/foreman' failed

#7230 did set enforce_available_locales to false, but this doesn't appear to be in effect.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #12873: Update Rails to 4.1.latestClosedDominic Cleal12/18/2015Actions
Actions

Also available in: Atom PDF