Defect #182

Stats not working

Added by Walid Moghrabi about 4 years ago. Updated about 4 years ago.

Status:Closed Start date:
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Affected version: Resolution:

Description

I have installed Redmine 0.6.3 and everything seems to work properly but the stats are not working.
I only get this error message :


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.

Back


I don't understand why because everything else is working properly


Related issues

duplicated by Defect #598: Statistics for subversion is not working Closed 2008-02-04

History

Updated by Michael Pirogov about 4 years ago

SVN stats or what?

An error description is in mongrel.log or production.log
Please post an error report here or just
try http://rubyforge.org/forum/message.php?msg_id=32570

Updated by Michael Pirogov about 4 years ago

SVN stats or what?

An error description is in mongrel.log or production.log
Please post an error report here or just
try http://rubyforge.org/forum/message.php?msg_id=32570

Updated by Jean-Philippe Lang about 4 years ago

As Michael said, you have to give a bit more information.
What the exact action that returns this error (give the url would
help) ? Also, the error log is needed to know what is going
wrong.

Updated by Walid Moghrabi about 4 years ago

Hi, here is the error log :

******************************************************
Processing RepositoriesController#stats (for 192.168.1.65 at
2008-01-12 12:50:20) [GET]
Session ID: b1a721dcabdfdddd252f68d2478a9706
Parameters: {"action"=>"stats",
"id"=>"3",
"controller"=>"repositories"}
Rendering within layouts/base
Rendering repositories/stats
Completed in 0.02995 (33 reqs/sec) | Rendering: 0.01631
(54%) | DB: 0.00270 (9%) | 200 OK
[http://redmine.lezard-visuel.com/repositories/stats/3]

Processing RepositoriesController#graph (for 192.168.1.65 at
2008-01-12 12:50:20) [GET]
Session ID: b1a721dcabdfdddd252f68d2478a9706
Parameters: {"graph"=>"commits_per_month"
;,
"action"=>"graph",
"id"=>"3",
"controller"=>"repositories"}

NameError (undefined local variable or method `transitive'
for <UNDEFINED> ... :REXML::Document):
/usr/lib/ruby/1.8/rexml/document.rb:186:in `write'

/var/www/localhost/htdocs/redmine/lib/SVG/Graph/Graph.rb:211:in
`burn'

/var/www/localhost/htdocs/redmine/app/controllers/repositories_co
ntroller.rb:221:in
`graph_commits_per_month'

/var/www/localhost/htdocs/redmine/app/controllers/repositories_co
ntroller.rb:148:in
`graph'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/base.rb:1101:in
`send'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/base.rb:1101:in
`perform_action_without_filters'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/filters.rb:696:in
`call_filters'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/filters.rb:688:in
`perform_action_without_benchmark'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/benchmarking.rb:66:in
`perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/benchmarking.rb:66:in
`perform_action_without_rescue'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/rescue.rb:83:in
`perform_action'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/base.rb:435:in
`send'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/base.rb:435:in
`process_without_filters'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/filters.rb:684:in
`process_without_session_management_support'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/session_management.rb:114:in
`process'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/base.rb:334:in
`process'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/dispa
tcher.rb:41:in
`dispatch'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:168:in
`process_request'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:143:in
`process_each_request!'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:109:in
`with_signal_handler'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:142:in
`process_each_request!'
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:600:in `each_cgi'
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each'
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:141:in
`process_each_request!'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:55:in
`process!'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:25:in
`process!'
/var/www/localhost/htdocs/redmine/public/dispatch.fcgi:24

Processing RepositoriesController#graph (for 192.168.1.65 at
2008-01-12 12:50:20) [GET]
Session ID: b1a721dcabdfdddd252f68d2478a9706
Parameters: {"graph"=>"commits_per_author%quo
t;,
"action"=>"graph",
"id"=>"3",
"controller"=>"repositories"}

NameError (undefined local variable or method `transitive'
for <UNDEFINED> ... :REXML::Document):
/usr/lib/ruby/1.8/rexml/document.rb:186:in `write'

/var/www/localhost/htdocs/redmine/lib/SVG/Graph/Graph.rb:211:in
`burn'

/var/www/localhost/htdocs/redmine/app/controllers/repositories_co
ntroller.rb:261:in
`graph_commits_per_author'

/var/www/localhost/htdocs/redmine/app/controllers/repositories_co
ntroller.rb:150:in
`graph'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/base.rb:1101:in
`send'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/base.rb:1101:in
`perform_action_without_filters'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/filters.rb:696:in
`call_filters'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/filters.rb:688:in
`perform_action_without_benchmark'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/benchmarking.rb:66:in
`perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/benchmarking.rb:66:in
`perform_action_without_rescue'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/rescue.rb:83:in
`perform_action'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/base.rb:435:in
`send'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/base.rb:435:in
`process_without_filters'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/filters.rb:684:in
`process_without_session_management_support'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/session_management.rb:114:in
`process'

/var/www/localhost/htdocs/redmine/vendor/rails/actionpack/lib/act
ion_controller/base.rb:334:in
`process'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/dispa
tcher.rb:41:in
`dispatch'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:168:in
`process_request'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:143:in
`process_each_request!'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:109:in
`with_signal_handler'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:142:in
`process_each_request!'
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:600:in `each_cgi'
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each'
/usr/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:141:in
`process_each_request!'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:55:in
`process!'

/var/www/localhost/htdocs/redmine/vendor/rails/railties/lib/fcgi_
handler.rb:25:in
`process!'
/var/www/localhost/htdocs/redmine/public/dispatch.fcgi:24


Updated by Walid Moghrabi about 4 years ago

From what I can see, it looks like a problem related to
dispatch.fcgi.

As I said in another report, I had to use the deispatch.fcgi
from 0.6.0 release to make 0.6.3 works on my server.

Here are some informations about my server configuration :

uname -a : Linux gecko 2.6.23-gentoo-r3 #1 SMP Wed Dec 5
13:40:38 CET 2007 i686 AMD Athlon(tm) X2 Dual Core Processor
BE-2300 AuthenticAMD GNU/Linux

Apache version : apache 2.2.6

Rails : 1.2.6

Subversion : 1.4.5

mod_fastcgi : 2.4.4

MySql : 5.0.44

If you need more informations, just ask :)

Updated by Jean-Philippe Lang about 4 years ago

As Michael said, this look the same as:
http://rubyforge.org/forum/message.php?msg_id=32570

Updated by Jean-Philippe Lang about 4 years ago

Not a Redmine bug, see:
http://www.germane-software.com/projects/rexml/ticket/115
and upgrade ruby.

Updated by Walid Moghrabi about 4 years ago

My ruby was up to date but the bug is still present but
thanks to your link, it is now corrected, thanks.

Also available in: Atom PDF