ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
186 stars 37 forks source link

NoMethodError (undefined method `[]' for nil:NilClass) when creating a project #109

Open gdoffe opened 13 years ago

gdoffe commented 13 years ago

I would like to create a gitolite repo when creating my redmine project but I get this error each time (from log/production.log) :

Processing ProjectsController#create (for 141.11.145.17 at 2011-10-21 17:23:51) [POST] Parameters: {"commit"=>"Sauvegarder", "action"=>"create", "authenticity_token"=>"1owlWhZHshKQTlfkUukXgPQ7MW6ShS2y1i06IGdZogw=", "project"=>{"name"=>"gilles", "tracker_ids"=>["1", "2", "3", ""], "homepage"=>"", "parent_id"=>"", "is_public"=>"1", "description"=>"", "identifier"=>"gilles", "enabled_module_names"=>["repository", ""]}, "controller"=>"projects"} Redirected to http://obs_proto/projects/gilles/settings Fethcing changes for /tmp/redmine_git_hosting/gitolite-admin Creating MD5 digests for Redmine Git Hosting hook Digest for post-receive.redmine_gitolite.rb: 08e9b3cf99fa6285331ccdcef8b9a0d3 Our hook is already installed

NoMethodError (undefined method []' for nil:NilClass): vendor/plugins/redmine_git_hosting/app/models/git_hosting_observer.rb:19:inset_update_active' passenger (3.0.9) lib/phusion_passenger/rack/request_handler.rb:96:in process_request' passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:513:inaccept_and_process_next_request' passenger (3.0.9) lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop' passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:321:instart_request_handler' passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in send' passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:275:inhandle_spawn_application' passenger (3.0.9) lib/phusion_passenger/utils.rb:479:in safe_fork' passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:270:inhandle_spawn_application' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in __send__' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:in start_synchronously' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:180:instart' passenger (3.0.9) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in start' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:219:inspawn_rails_application' passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:132:in lookup_or_add' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:214:inspawn_rails_application' passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:82:in synchronize' passenger (3.0.9) lib/phusion_passenger/abstract_server_collection.rb:79:insynchronize' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:213:in spawn_rails_application' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:132:inspawn_application' passenger (3.0.9) lib/phusion_passenger/spawn_manager.rb:275:in handle_spawn_application' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:insend' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:357:in server_main_loop' passenger (3.0.9) lib/phusion_passenger/abstract_server.rb:206:instart_synchronously' passenger (3.0.9) /helper-scripts/passenger-spawn-server:99

Rendering /opt/redmine/public/500.html (500 Internal Server Error)

Plugin redmine_git_hosting_version : 0.4.2 Redmine version : Redmine 1.2.1.stable (SQLite)

gem list --local

* LOCAL GEMS *

actionmailer (2.3.11) actionpack (2.3.11) activerecord (2.3.11) activeresource (2.3.11) activesupport (2.3.11) daemon_controller (0.2.6) fastthread (1.0.7) i18n (0.4.2) lockfile (1.4.3) net-ssh (2.2.1) passenger (3.0.9) rack (1.3.5, 1.1.2, 1.1.1) rails (2.3.11) rake (0.9.2) rubygems-update (1.7.2, 1.6.0) sqlite3 (1.3.4)```

Can you help me to understand what goes wrong ? Tell me if you need more informations.

Thanks in advance, Gilles