Help:Can't create project in the redmine.
Added by simon kong over 7 years ago
I have installed redmine2.2.6 on centos7 sever 64bit successfuly
But,when I create a project ,there is an error.
1. Start the redmine:
[root@localhost redmine]# ruby script/rails server -e production
2. In the browser, I create a project Test, but, there is an error:
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. If you are the Redmine administrator, check your log files for details about the error.
The log is as below:
[root@localhost redmine]# ruby script/rails server -e production /usr/local/rvm/gems/ruby-2.2.6/gems/activesupport-3.2.19/lib/active_support/values/time_zone.rb:270: warning: circular argument reference - now => Booting WEBrick => Rails 3.2.19 application starting in production on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2017-03-12 00:15:32] INFO WEBrick 1.3.1 [2017-03-12 00:15:32] INFO ruby 2.2.6 (2016-11-15) [x86_64-linux] [2017-03-12 00:15:32] INFO WEBrick::HTTPServer#start: pid=16212 port=3000 /usr/local/rvm/gems/ruby-2.2.6/gems/activerecord-3.2.19/lib/active_record/associations/has_many_association.rb:53: warning: circular argument reference - reflection /usr/local/rvm/gems/ruby-2.2.6/gems/activerecord-3.2.19/lib/active_record/associations/has_many_association.rb:57: warning: circular argument reference - reflection /usr/local/rvm/gems/ruby-2.2.6/gems/activerecord-3.2.19/lib/active_record/associations/has_many_association.rb:61: warning: circular argument reference - reflection /usr/local/rvm/gems/ruby-2.2.6/gems/activerecord-3.2.19/lib/active_record/associations/has_many_association.rb:80: warning: circular argument reference - reflection Started GET "/" for 127.0.0.1 at 2017-03-12 00:15:56 +0800 Processing by WelcomeController#index as HTML Current user: anonymous Rendered welcome/index.html.erb within layouts/base (21.0ms) Completed 200 OK in 200.7ms (Views: 34.9ms | ActiveRecord: 74.0ms) Started GET "/login" for 127.0.0.1 at 2017-03-12 00:16:01 +0800 Processing by AccountController#login as HTML Current user: anonymous Rendered account/login.html.erb within layouts/base (3.3ms) Completed 200 OK in 10.3ms (Views: 7.6ms | ActiveRecord: 1.2ms) Started POST "/login" for 127.0.0.1 at 2017-03-12 00:16:06 +0800 Processing by AccountController#login as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"OQyoTdUoOBA2j2lENHV6JBd/ueHXuTmgcdIq6LB0wY4=", "back_url"=>"http://127.0.0.1:3000/", "username"=>"admin", "password"=>"[FILTERED]", "login"=>"Login »"} Current user: anonymous Successful authentication for 'admin' from 127.0.0.1 at 2017-03-11 16:16:06 UTC Redirected to http://127.0.0.1:3000/ Completed 302 Found in 60.8ms (ActiveRecord: 57.5ms) Started GET "/" for 127.0.0.1 at 2017-03-12 00:16:06 +0800 Processing by WelcomeController#index as HTML Current user: admin (id=1) Rendered welcome/index.html.erb within layouts/base (39.4ms) Completed 200 OK in 75.5ms (Views: 27.9ms | ActiveRecord: 43.8ms) Started GET "/projects" for 127.0.0.1 at 2017-03-12 00:16:14 +0800 Processing by ProjectsController#index as HTML Current user: admin (id=1) Rendered projects/index.html.erb within layouts/base (3.3ms) Completed 200 OK in 14.4ms (Views: 10.4ms | ActiveRecord: 1.6ms) Started GET "/admin" for 127.0.0.1 at 2017-03-12 00:16:18 +0800 Processing by AdminController#index as HTML Current user: admin (id=1) Rendered admin/_no_data.html.erb (647.7ms) Rendered admin/_menu.html.erb (2.8ms) Rendered admin/index.html.erb within layouts/admin (653.0ms) Rendered layouts/base.html.erb (7.7ms) Completed 200 OK in 670.0ms (Views: 662.3ms | ActiveRecord: 3.5ms) sh: darcs: command not found sh: hg: command not found sh: cvs: command not found sh: bzr: command not found sh: git: command not found Started GET "/settings" for 127.0.0.1 at 2017-03-12 00:16:25 +0800 Processing by SettingsController#index as HTML Current user: admin (id=1) Rendered settings/_general.html.erb (10.0ms) Rendered settings/_display.html.erb (8.7ms) Rendered settings/_authentication.html.erb (12.2ms) Rendered settings/_projects.html.erb (6.5ms) Rendered queries/_columns.html.erb (2.8ms) Rendered settings/_issues.html.erb (21.6ms) Rendered settings/_notifications.html.erb (0.7ms) Rendered settings/_mail_handler.html.erb (3.7ms) Rendered settings/_repositories.html.erb (49.8ms) Rendered common/_tabs.html.erb (118.7ms) Rendered settings/edit.html.erb within layouts/admin (119.5ms) Rendered admin/_menu.html.erb (2.6ms) Rendered layouts/base.html.erb (8.4ms) Completed 200 OK in 138.2ms (Views: 120.0ms | ActiveRecord: 14.0ms) Started GET "/projects" for 127.0.0.1 at 2017-03-12 00:16:40 +0800 Processing by ProjectsController#index as HTML Current user: admin (id=1) Rendered projects/index.html.erb within layouts/base (3.3ms) Completed 200 OK in 15.9ms (Views: 10.6ms | ActiveRecord: 2.2ms) Started GET "/projects/new" for 127.0.0.1 at 2017-03-12 00:16:43 +0800 Processing by ProjectsController#new as HTML Current user: admin (id=1) Rendered projects/_form.html.erb (8.8ms) Rendered projects/new.html.erb within layouts/base (11.0ms) Completed 200 OK in 34.0ms (Views: 17.1ms | ActiveRecord: 2.7ms) Started POST "/projects" for 127.0.0.1 at 2017-03-12 00:16:53 +0800 Processing by ProjectsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"xEux+tRw0XHnvc0dNt2jQi0g57vwKuM8Fur0X4MzPLE=", "project"=>{"name"=>"Test", "description"=>"", "identifier"=>"test", "homepage"=>"", "is_public"=>"1", "inherit_members"=>"0", "enabled_module_names"=>["issue_tracking", "time_tracking", "news", "documents", "files", "wiki", "repository", "boards", "calendar", "gantt", ""]}, "commit"=>"Create"} Current user: admin (id=1) Redirected to http://127.0.0.1:3000/projects/test/settings Expire fragment views/127.0.0.1:3000/robots.txt 0.1ms Completed 302 Found in 141.1ms (ActiveRecord: 102.7ms) Started GET "/projects/test/settings" for 127.0.0.1 at 2017-03-12 00:16:53 +0800 Processing by ProjectsController#settings as HTML Parameters: {"id"=>"test"} Current user: admin (id=1) Rendered projects/_form.html.erb (6.6ms) Rendered projects/_edit.html.erb (7.8ms) Rendered projects/settings/_modules.html.erb (3.1ms) Rendered projects/settings/_members.html.erb (5.7ms) Rendered projects/settings/_versions.html.erb (4.9ms) Rendered common/_tabs.html.erb (25.3ms) Rendered projects/settings.html.erb within layouts/base (26.0ms) Completed 500 Internal Server Error in 40.3ms ActionView::Template::Error (undefined method `name' for nil:NilClass): 33: <% end %> 34: 35: <div class="contextual"> 36: <% if @project.versions.any? %> 37: <%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %> 38: <% end %> 39: </div> app/views/projects/settings/_versions.html.erb:36:in `_app_views_projects_settings__versions_html_erb__2564120438390495364_26162960' app/views/common/_tabs.html.erb:22:in `block in _app_views_common__tabs_html_erb___2484151866657846873_21355120' app/views/common/_tabs.html.erb:21:in `each' app/views/common/_tabs.html.erb:21:in `_app_views_common__tabs_html_erb___2484151866657846873_21355120' app/helpers/application_helper.rb:328:in `render_tabs' app/views/projects/settings.html.erb:3:in `_app_views_projects_settings_html_erb___918456766727946767_27251780'