Redmine fails with "Internal error" after Ubuntu upgrade.
Added by Michał Lenart over 13 years ago
Hi
I keep getting "Internal error" each time I try to enter my redmine site.
Redmine package was upgraded from 1.1.2-1 to 1.1.3-1.
I attached excerpts from /var/log/apt/history.log to show what else was upgraded.
Here is what I got in redmine log:
@ActionView::TemplateError (undefined method `interpolate_without_deprecated_syntax' for #<I18n::Backend::Simple:0x7fb31fea12b0>) on line #2 of app/views/activities/index.html.erb:
1: <h2><%= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)) ></h2>
2: <p class="subtitle"><= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) ></p>
3:
4: <div id="activity">
5: < @events_by_day.keys.sort.reverse.each do |day| %>
config/initializers/10-patches.rb:128:in `interpolate'
/usr/lib/ruby/1.8/i18n/backend/base.rb:49:in `translate'
/usr/lib/ruby/1.8/i18n.rb:152:in `t'
/usr/lib/ruby/1.8/i18n/backend/base.rb:62:in `localize'
/usr/lib/ruby/1.8/i18n.rb:231:in `l'
lib/redmine/i18n.rb:40:in `format_date'
app/views/activities/index.html.erb:2
/usr/lib/ruby/1.8/action_view/renderable.rb:34:in `send'
/usr/lib/ruby/1.8/action_view/renderable.rb:34:in `render'
/usr/lib/ruby/1.8/action_view/base.rb:306:in `with_template'
/usr/lib/ruby/1.8/action_view/renderable.rb:30:in `render'
/usr/lib/ruby/1.8/action_view/template.rb:205:in `render_template'
/usr/lib/ruby/1.8/action_view/base.rb:265:in `render'
/usr/lib/ruby/1.8/action_view/base.rb:348:in `_render_with_layout'
/usr/lib/ruby/1.8/action_view/base.rb:262:in `render'
/usr/lib/ruby/1.8/action_controller/base.rb:1252:in `render_for_file'
/usr/lib/ruby/1.8/action_controller/base.rb:936:in `render_without_benchmark'
/usr/lib/ruby/1.8/action_controller/benchmarking.rb:51:in `render'
/usr/lib/ruby/1.8/action_controller/benchmarking.rb:51:in `render'
/usr/lib/ruby/1.8/action_controller/base.rb:1328:in `default_render'
/usr/lib/ruby/1.8/action_controller/base.rb:1334:in `perform_action_without_filters'
/usr/lib/ruby/1.8/action_controller/filters.rb:617:in `call_filters'
/usr/lib/ruby/1.8/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/action_controller/rescue.rb:160:in `perform_action_without_flash'
/usr/lib/ruby/1.8/action_controller/flash.rb:151:in `perform_action'
/usr/lib/ruby/1.8/action_controller/base.rb:532:in `send'
/usr/lib/ruby/1.8/action_controller/base.rb:532:in `process_without_filters'
/usr/lib/ruby/1.8/action_controller/filters.rb:606:in `process'
/usr/lib/ruby/1.8/action_controller/base.rb:391:in `process'
/usr/lib/ruby/1.8/action_controller/base.rb:386:in `call'
/usr/lib/ruby/1.8/action_controller/routing/route_set.rb:438:in `call'
/usr/lib/ruby/1.8/action_controller/dispatcher.rb:87:in `dispatch'
/usr/lib/ruby/1.8/action_controller/dispatcher.rb:121:in `_call'
/usr/lib/ruby/1.8/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/usr/lib/ruby/1.8/active_record/query_cache.rb:29:in `call'
/usr/lib/ruby/1.8/active_record/query_cache.rb:29:in `call'
/usr/lib/ruby/1.8/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/usr/lib/ruby/1.8/active_record/query_cache.rb:9:in `cache'
/usr/lib/ruby/1.8/active_record/query_cache.rb:28:in `call'
/usr/lib/ruby/1.8/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/usr/lib/ruby/1.8/action_controller/string_coercion.rb:25:in `call'
/usr/lib/ruby/1.8/rack/head.rb:9:in `call'
/usr/lib/ruby/1.8/rack/methodoverride.rb:24:in `call'
/usr/lib/ruby/1.8/action_controller/params_parser.rb:15:in `call'
/usr/lib/ruby/1.8/action_controller/session/cookie_store.rb:99:in `call'
/usr/lib/ruby/1.8/action_controller/failsafe.rb:26:in `call'
/usr/lib/ruby/1.8/rack/lock.rb:11:in `call'
/usr/lib/ruby/1.8/rack/lock.rb:11:in `synchronize'
/usr/lib/ruby/1.8/rack/lock.rb:11:in `call'
/usr/lib/ruby/1.8/action_controller/dispatcher.rb:106:in `call'
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:95:in `process_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:374:in `start_request_handler'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:330:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:209:in `start'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:61
Rendering /usr/share/redmine/public/500.html (500 Internal Server Error)@
history.log (1.99 KB) history.log | excerpts from /var/log/apt/history.log |
Replies (8)
RE: Redmine fails with "Internal error" after Ubuntu upgrade.
-
Added by Michał Lenart over 13 years ago
Some more info that might be useful:
sudo RAILS_ENV=production script/about [sudo] password for adamp: config.load_paths is deprecated and removed in Rails 3, please use autoload_paths instead config.load_paths= is deprecated and removed in Rails 3, please use autoload_paths= instead About your application's environment Ruby version 1.8.7 (x86_64-linux) RubyGems version 1.3.5 Rack version 1.1 Rails version 2.3.11 Active Record version 2.3.11 Active Resource version 2.3.11 Action Mailer version 2.3.11 Active Support version 2.3.11 Edge Rails revision unknown Application root /usr/share/redmine Environment production Database adapter sqlite3 Database schema version 20101114115359
And some more system information:
$ uname -a Linux bach 2.6.32-32-server #62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011 x86_64 GNU/Linux $ cat /etc/issue Ubuntu 10.04.2 LTS \n \l
And excerpt from production.log (this time with correct formatting).
Thank you in advance for any help.
ActionView::TemplateError (undefined method `interpolate_without_deprecated_syntax' for #<I18n::Backend::Simple:0x7fb31fea12b0>) on line #2 of app/views/activities/index.html.erb: 1: <h2><%= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)) %></h2> 2: <p class="subtitle"><%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %></p> 3: 4: <div id="activity"> 5: <% @events_by_day.keys.sort.reverse.each do |day| %> config/initializers/10-patches.rb:128:in `interpolate' /usr/lib/ruby/1.8/i18n/backend/base.rb:49:in `translate' /usr/lib/ruby/1.8/i18n.rb:152:in `t' /usr/lib/ruby/1.8/i18n/backend/base.rb:62:in `localize' /usr/lib/ruby/1.8/i18n.rb:231:in `l' lib/redmine/i18n.rb:40:in `format_date' app/views/activities/index.html.erb:2 /usr/lib/ruby/1.8/action_view/renderable.rb:34:in `send' /usr/lib/ruby/1.8/action_view/renderable.rb:34:in `render' /usr/lib/ruby/1.8/action_view/base.rb:306:in `with_template' /usr/lib/ruby/1.8/action_view/renderable.rb:30:in `render' /usr/lib/ruby/1.8/action_view/template.rb:205:in `render_template' /usr/lib/ruby/1.8/action_view/base.rb:265:in `render' /usr/lib/ruby/1.8/action_view/base.rb:348:in `_render_with_layout' /usr/lib/ruby/1.8/action_view/base.rb:262:in `render' /usr/lib/ruby/1.8/action_controller/base.rb:1252:in `render_for_file' /usr/lib/ruby/1.8/action_controller/base.rb:936:in `render_without_benchmark' /usr/lib/ruby/1.8/action_controller/benchmarking.rb:51:in `render' /usr/lib/ruby/1.8/action_controller/benchmarking.rb:51:in `render' /usr/lib/ruby/1.8/action_controller/base.rb:1328:in `default_render' /usr/lib/ruby/1.8/action_controller/base.rb:1334:in `perform_action_without_filters' /usr/lib/ruby/1.8/action_controller/filters.rb:617:in `call_filters' /usr/lib/ruby/1.8/action_controller/filters.rb:610:in `perform_action_without_benchmark' /usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/lib/ruby/1.8/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /usr/lib/ruby/1.8/action_controller/rescue.rb:160:in `perform_action_without_flash' /usr/lib/ruby/1.8/action_controller/flash.rb:151:in `perform_action' /usr/lib/ruby/1.8/action_controller/base.rb:532:in `send' /usr/lib/ruby/1.8/action_controller/base.rb:532:in `process_without_filters' /usr/lib/ruby/1.8/action_controller/filters.rb:606:in `process' /usr/lib/ruby/1.8/action_controller/base.rb:391:in `process' /usr/lib/ruby/1.8/action_controller/base.rb:386:in `call' /usr/lib/ruby/1.8/action_controller/routing/route_set.rb:438:in `call' /usr/lib/ruby/1.8/action_controller/dispatcher.rb:87:in `dispatch' /usr/lib/ruby/1.8/action_controller/dispatcher.rb:121:in `_call' /usr/lib/ruby/1.8/action_controller/dispatcher.rb:130:in `build_middleware_stack' /usr/lib/ruby/1.8/active_record/query_cache.rb:29:in `call' /usr/lib/ruby/1.8/active_record/query_cache.rb:29:in `call' /usr/lib/ruby/1.8/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' /usr/lib/ruby/1.8/active_record/query_cache.rb:9:in `cache' /usr/lib/ruby/1.8/active_record/query_cache.rb:28:in `call' /usr/lib/ruby/1.8/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' /usr/lib/ruby/1.8/action_controller/string_coercion.rb:25:in `call' /usr/lib/ruby/1.8/rack/head.rb:9:in `call' /usr/lib/ruby/1.8/rack/methodoverride.rb:24:in `call' /usr/lib/ruby/1.8/action_controller/params_parser.rb:15:in `call' /usr/lib/ruby/1.8/action_controller/session/cookie_store.rb:99:in `call' /usr/lib/ruby/1.8/action_controller/failsafe.rb:26:in `call' /usr/lib/ruby/1.8/rack/lock.rb:11:in `call' /usr/lib/ruby/1.8/rack/lock.rb:11:in `synchronize' /usr/lib/ruby/1.8/rack/lock.rb:11:in `call' /usr/lib/ruby/1.8/action_controller/dispatcher.rb:106:in `call' /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:95:in `process_request' /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:374:in `start_request_handler' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:330:in `handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:209:in `start' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' /usr/lib/phusion_passenger/passenger-spawn-server:61 Rendering /usr/share/redmine/public/500.html (500 Internal Server Error)
RE: Redmine fails with "Internal error" after Ubuntu upgrade.
-
Added by Dirk Plantikow over 13 years ago
Look at Compatibility notes ([[http://www.redmine.org/projects/redmine/wiki/RedmineInstall]])
Ruby 1.9 is not supported yet. You have to use Ruby 1.8.x as stated above.
RubyGems 1.3.7 or higher is required with following limitations :
Rails 2.3.5 will fail with RubyGems 1.5.0 or later, stick to previous versions of RubyGems !
Rails 2.3.11 will fail with RubyGems 1.7.0 or later, stick to previous versions of RubyGems !
Rake 0.8.7 or higher is required
Rack 1.1.0 is required. If you don't have this exact version, database migration would fail.
Mongrel 1.1.5 needs a patch attached to #7688 to work fine with Rails 2.3.11. In case of upgrade, another issue may appear for some time after migration (#7857).
I18n 0.4.2 is required for Redmine >= 1.0.5
Perhaps this is the Problem??!!
After Updating to Rails 2.3.11, I got this internal Error too.
I don't know.
RE: Redmine fails with "Internal error" after Ubuntu upgrade.
-
Added by Michał Lenart over 13 years ago
No, this is not the Problem:
$ which gem /usr/bin/gem $ gem -v 1.3.5
RE: Redmine fails with "Internal error" after Ubuntu upgrade.
-
Added by Michał Lenart over 13 years ago
Or maybe I18n version is the problem as Dirk Plantikow noted it should be 0.4.2, but:
$ dpkg -s libi18n-ruby1.8
Package: libi18n-ruby1.8
Status: install ok installed
Priority: extra
Section: ruby
Installed-Size: 244
Maintainer: Athena Capital Research <acr-debian@athenacr.com>
Architecture: all
Source: libi18n-ruby
Version: 0.4.1-1~lucid+1
Depends: libruby1.8
...
Redmine was installed from here https://launchpad.net/~ondrej/+archive/redmine as suggested here http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu.
Maybe the repository has incompatible libi18n-ruby version?
But it worked fine before...
RE: Redmine fails with "Internal error" after Ubuntu upgrade.
-
Added by Etienne Massip over 13 years ago
Yep, looks like a i18n issue.
RE: Redmine fails with "Internal error" after Ubuntu upgrade.
-
Added by Michał Lenart over 13 years ago
Another upgrade of redmine package (to redmine 1.2) solved this problem.
Thanks for trying to help.
RE: Redmine fails with "Internal error" after Ubuntu upgrade.
-
Added by Dirk Plantikow over 13 years ago
What does that mean: "Another Upgrade"? If I upgrade twice, then the problem is solved? Has anybody changed the package one more time? I upgraded to 1.2 and had this problem.
RE: Redmine fails with "Internal error" after Ubuntu upgrade.
-
Added by Michał Lenart over 13 years ago
For me it seemed as if the package maintainer released an update that fixed the bug.
I don't know exact cause of the problem.