Project

General

Profile

Redmine 2.0 on Centos 6

Added by Christian Candia over 12 years ago

I'm installing Redmine 2.0 on Centos 6.0 I'd follow the instructions on the wiki and got it to come up, I can login, create a new project, create users. However when trying to create a new user if fails and in the logs shows;


Started GET "/projects/test/issues/new" for 192.168.0.199 at Sun May 27 13:55:30 -0400 2012
Processing by IssuesController#new as HTML  Parameters: {"project_id"=>"test"}
  Rendered issues/_form.html.erb (112.0ms)
  Rendered issues/new.html.erb within layouts/base (128.0ms)
Completed 500 Internal Server Error in 304ms
ActionView::Template::Error (undefined method `remote_function' for #<#<Class:0x7f4fcc986b60>:0x7f4fcc97f5
68>):
    15:
    16: <% if @issue.safe_attribute? 'tracker_id' %>
    17: <p><%= f.select :tracker_id, @issue.project.trackers.collect {|t| [t.name, t.id]}, :required => tr
ue %></p>
    18: <%= observe_field :issue_tracker_id, :url => project_issue_form_path(@project, :id => @issue),
    19:                                      :with => "Form.serialize('issue-form')" %>
    20: <% end %>
    21:
  lib/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb:422:in `build_observer'
  lib/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb:363:in `observe_field'
  app/views/issues/_form.html.erb:18:in `_app_views_issues__form_html_erb__204052981_69990355648680'
  app/helpers/application_helper.rb:957:in `labelled_fields_for'
  app/views/issues/_form.html.erb:1:in `_app_views_issues__form_html_erb__204052981_69990355648680'
  app/views/issues/new.html.erb:11:in `_app_views_issues_new_html_erb___1143086651_69990355817740'
  app/helpers/application_helper.rb:950:in `labelled_form_for'
  app/views/issues/new.html.erb:5:in `_app_views_issues_new_html_erb___1143086651_69990355817740'
  app/controllers/issues_controller.rb:130:in `new'
  app/controllers/issues_controller.rb:129:in `new'
Versions:
  • ruby - 1.8.7
  • gems - 1.8.24
  • bundle - 1.1.3
  • rails - 3.2.3

Any ideas on how to fix the problem?.

Thanks,

Christian


Replies (3)

RE: Redmine 2.0 on Centos 6 - Added by Hubert B over 12 years ago

Hi there!

How did you manage to create new projects? I'm already getting a similar error message upon project creation:

Started GET "/projects/test/settings" for 172.22.72.100 at Thu May 31 08:29:34 +0200 2012
Processing by ProjectsController#settings as HTML
  Parameters: {"id"=>"test"}
  Rendered projects/_form.html.erb (13.3ms)
  Rendered projects/_edit.html.erb (15.0ms)
  Rendered projects/settings/_modules.html.erb (3.8ms)
  Rendered projects/settings/_members.html.erb (124.5ms)
  Rendered common/_tabs.html.erb (149.1ms)
  Rendered projects/settings.html.erb within layouts/base (150.3ms)
Completed 500 Internal Server Error in 172ms

ActionView::Template::Error (undefined method `remote_function' for #<#<Class:0x7f298e2a5cb0>:0x7f298e6902f8>):
    68:     <fieldset><legend><%=l(:label_member_new)%></legend>
    69: 
    70:     <p><%= label_tag "principal_search", l(:label_principal_search) %><%= text_field_tag 'principal_search', nil %></p>
    71:     <%= observe_field(:principal_search,
    72:                  :frequency => 0.5,
    73:                  :update => :principals,
    74:                  :url => autocomplete_project_memberships_path(@project),
  lib/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb:422:in `build_observer'
  lib/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb:361:in `observe_field'
  app/views/projects/settings/_members.html.erb:71:in `_app_views_projects_settings__members_html_erb__2001991945_69908228752320'
  app/views/projects/settings/_members.html.erb:63:in `_app_views_projects_settings__members_html_erb__2001991945_69908228752320'
  app/views/common/_tabs.html.erb:24:in `_app_views_common__tabs_html_erb___589137010_69908229783240'
  app/views/common/_tabs.html.erb:23:in `each'
  app/views/common/_tabs.html.erb:23:in `_app_views_common__tabs_html_erb___589137010_69908229783240'
  app/helpers/application_helper.rb:231:in `render_tabs'
  app/views/projects/settings.html.erb:3:in `_app_views_projects_settings_html_erb___175218149_69908229809240'

Any help will be appreciated.

RE: Redmine 2.0 on Centos 6 - Added by Hubert B over 12 years ago

Hi again!

I got it fixed by running

# bundle install --without mysql sqlite development test

again inside the redmine-2.0.0 root directory. Maybe it helps you as well.

Good luck!

RE: Redmine 2.0 on Centos 6 - Added by yac yac over 12 years ago

Happens to me too on debian and redmine 2.0.3. When i open news or wiki modules in a project. It used to happen to me on project creation (though project was created).
Now it stopped happening on the project creation (i rebuilt the package for i386, so not sure if just a rebuild helped it or the move amd64 -> i386)

I think this issue with the redmine codebase, here i created a bugreport: http://www.redmine.org/issues/11415

    (1-3/3)