Internal Server Error (Redmine0.7.3/ CentOS5.2)

329 views
Skip to first unread message

Mousy

unread,
Aug 10, 2008, 11:08:19 PM8/10/08
to Redmine Users (japanese)
【動作環境】
OS: CentOS5.2
DB: MySQL 5.0.45-7.el5
ruby 1.8.7
rails 2.1.0
RubyGems 1.1.1
Redmine 0.7.3

==
同じ内容のスレッドが既に挙げられていますが、動作環境がことなることもあり、恐縮乍新たなスレッドをたてさせてください。 (どうもスミマセン)
当方Linux、rubyとも実は素人なのですが、本とインターネットで調べながらもう一歩のところまでくることができました。御手数ながら、アドバイ
ス頂きたくお願い致します。(ログをみても、何が原因なのか検討がつきませんんん。。)


【事象】
「新しいチケット」登録後以下のページを閲覧しようとするとInternal errorとなる
1. 活動ページ
2. プロジェクト/ 概要/ カレンダー  (ガントチャートはOKです)
======================================
Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your redMine
administrator for assistance.
======================================


【ログ】
Processing ProjectsController#activity (for 192.168.46.48 at
2008-08-11 11:22:40) [GET]
Session ID: b501e07c0d6aa0fa11f5ff5dbd1ede35
Parameters: {"action"=>"activity", "id"=>"test02",
"controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/activity


ActionView::TemplateError (undefined method `length' for
#<Enumerable::Enumerator:0xb75e9694>) on line #11 of projects/
activity.rhtml:
8: <% @events_by_day[day].sort {|x,y| y.event_datetime <=>
x.event_datetime }.each do |e| -%>
9: <dt class="<%= e.event_type %>"><span class="time"><%=
format_time(e.event_datetime, false) %></span>
10: <%= content_tag('span', h(e.project), :class => 'project') if
@project.nil? || @project != e.project %>
11: <%= link_to format_activity_title(e.event_title), e.event_url
%></dt>
12: <dd><% unless e.event_description.blank? -%>
13: <span class="description"><%=
format_activity_description(e.event_description) %></span><br />
14: <% end %>

vendor/rails/actionpack/lib/action_view/helpers/text_helper.rb:
50:in `truncate'
app/helpers/application_helper.rb:95:in `truncate_single_line'
app/helpers/projects_helper.rb:25:in `format_activity_title'
app/views/projects/activity.rhtml:11:in
`_run_erb_47app47views47projects47activity46rhtml'
app/views/projects/activity.rhtml:8:in `each'
app/views/projects/activity.rhtml:8:in
`_run_erb_47app47views47projects47activity46rhtml'
app/views/projects/activity.rhtml:5:in `each'
app/views/projects/activity.rhtml:5:in
`_run_erb_47app47views47projects47activity46rhtml'
vendor/rails/actionpack/lib/action_view/base.rb:637:in `send'
vendor/rails/actionpack/lib/action_view/base.rb:637:in
`compile_and_render_template'
vendor/rails/actionpack/lib/action_view/base.rb:365:in
`render_template'
vendor/rails/actionpack/lib/action_view/base.rb:316:in
`render_file'
vendor/rails/actionpack/lib/action_controller/base.rb:1100:in
`render_for_file'
vendor/rails/actionpack/lib/action_controller/base.rb:836:in
`render_with_no_layout'
vendor/rails/actionpack/lib/action_controller/layout.rb:262:in
`render_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
51:in `render'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
51:in `render'
vendor/rails/actionpack/lib/action_controller/base.rb:1153:in
`default_render'
vendor/rails/actionpack/lib/action_controller/base.rb:1159:in
`perform_action_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:697:in
`call_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:689:in
`perform_action_without_benchmark'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
68:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
68:in `perform_action_without_rescue'
vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in
`perform_action_without_caching'
vendor/rails/actionpack/lib/action_controller/caching.rb:678:in
`perform_action'
vendor/rails/activerecord/lib/active_record/connection_adapters/
abstract/query_cache.rb:33:in `cache'
vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
`cache'
vendor/rails/actionpack/lib/action_controller/caching.rb:677:in
`perform_action'
vendor/rails/actionpack/lib/action_controller/base.rb:524:in
`send'
vendor/rails/actionpack/lib/action_controller/base.rb:524:in
`process_without_filters'
vendor/rails/actionpack/lib/action_controller/filters.rb:685:in
`process_without_session_management_support'
vendor/rails/actionpack/lib/action_controller/
session_management.rb:123:in `process'
vendor/rails/actionpack/lib/action_controller/base.rb:388:in
`process'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:171:in
`handle_request'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in
`dispatch'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in
`dispatch_cgi'
vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in
`dispatch'
vendor/rails/railties/lib/webrick_server.rb:112:in
`handle_dispatch'
vendor/rails/railties/lib/webrick_server.rb:78:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
vendor/rails/railties/lib/webrick_server.rb:62:in `dispatch'
vendor/rails/railties/lib/commands/servers/webrick.rb:66
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:
496:in `require'
vendor/rails/activesupport/lib/active_support/dependencies.rb:
342:in `new_constants_in'
vendor/rails/activesupport/lib/active_support/dependencies.rb:
496:in `require'
vendor/rails/railties/lib/commands/server.rb:39
script/server:3:in `require'
script/server:3

Rendering /usr/src/redmine/redmine-0.7.3/public/500.html (500 Internal
Server Error)

kirara397

unread,
Aug 10, 2008, 11:41:36 PM8/10/08
to Redmine Users (japanese)
Mousyさん、こんにちは。

> ActionView::TemplateError (undefined method `length' for
> #<Enumerable::Enumerator:0xb75e9694>) on line #11 of projects/
> activity.rhtml:

先日の私の件(0.7.3 で 500 Internal Server Error → ja.ymlの問題)と違って、
Enumerable::Enumerator で問題が起こっているような感じですが...
すみません、当方もLinux、rubyとも素人ですので回答しかねます。
どなたか詳しい方ご助力願います!

Mousy

unread,
Aug 10, 2008, 11:50:21 PM8/10/08
to Redmine Users (japanese)
kirara397さん、早速のコメント感謝します。

日本語インターフェースの場合、管理/ 列挙項目というのがありますが、この列挙項目というのが
英語インターフェースでは「Enumerations」となっており、このあたりでパラメーターを設定すると
いうことか・・・などと考えているところです。んーーー。。

Mousy

fmkt

unread,
Aug 11, 2008, 12:01:33 AM8/11/08
to Redmine Users (japanese)
こんにちは。

バージョン0.7.3はおそらくruby1.8.6でないと動かないと思われます。

最新(subversionのtrunkとか)のソースだと1.8.7で動きますが...

では。
> > > Server Error)- 引用テキストを表示しない -
>
> - 引用テキストを表示 -

Mousy

unread,
Aug 11, 2008, 12:36:47 AM8/11/08
to Redmine Users (japanese)
fmktさん、

このような情報を発見しました!
http://d.hatena.ne.jp/takihiro/20080728

ただ、私には具体的にどうすればいいのかよくわかりません(泣)。

vendor/rails/activesupport/lib/active_support/core_ext/string/
unicode.rb
このファイルを、サンプルのように編集してみたのですが問題の修正には至りませんでした。

でもきっと、Redmine0.7.3は ruby1.8.7環境化でも動くような気がします。。。

Mousy

Mousy

unread,
Aug 11, 2008, 12:50:53 AM8/11/08
to Redmine Users (japanese)
サーバーを再起動したら Internal errorがでなくなりました!!
> ...
>
> read more >>

ラム

unread,
Aug 18, 2008, 11:31:54 AM8/18/08
to Redmine Users (japanese)
Mousyさん、こんばんは。
また、はじめまして、ラムと申します。

わたしも実は同じ問題にはまっていたのですが、このトピックを見つけられず
「ページ編集後のエラーについて」という内容で新しく投稿してしまいました。
(しかもわたしの投稿は情報が少なすぎたと反省中です。。)

解決なさったあとでお役に立てませんでしたが、わたしも同じ手順で回避できましたので、
Mousyさんの方法でOKだと思います!

それでは失礼いたします。


On 8月11日, 午後12:41, kirara397 <kirara...@gmail.com> wrote:
> Mousyさん、こんにちは。
>
> > ActionView::TemplateError (undefined method `length' for
> > #<Enumerable::Enumerator:0xb75e9694>) on line #11 of projects/
> > activity.rhtml:
>
> 先日の私の件(0.7.3 で 500InternalServer Error → ja.ymlの問題)と違って、
Reply all
Reply to author
Forward
0 new messages