ericpaulbishop/redmine_git_hosting — Issue #114: Looking in wrong folder for gitolite.conf
Author: Cromm
Created: 2011-11-02 10:57:58+00:00
State: open

This looks like an awesome plugin for chili/redmine. I'm using redmine 1.2.1 to test it on as I already have that installed. When I create a new project and expect a new repo to be created I receive the entry as posted below.

It is actually looking in /usr/local/zend/tmp/redmine_git_hosting/gitolite-admin/conf for the gitolite.conf file.
However, the redmin_git_hosting dir is actually under the /tmp folder.

Looking through the issues I came across a possible answer by editing config/configuration.yml put :
default:
scm_git_command: /tmp/redmine_git_hosting/run_git_as_git_user

However, this does not appear to have any effect.

Can anyone tell me where this path is being set and how to change it, please?

Many thanks,
Crom

Processing ProjectsController#create (for 188.223.18.36 at 2011-11-02 10:44:34) [POST]
Parameters: {"commit"=>"Save", "action"=>"create", "authenticity_token"=>"LTVmXXWB8CmOD1kctF+RcMarDs2PPWIN3SHU3Eid6lU=", "project"=>{"name"=>"test4", "tracker_ids"=>["1", "2", "3", ""], "homepage"=>"", "parent_id"=>"", "is_public"=>"0", "description"=>"", "identifier"=>"test4", "enabled_module_names"=>["issue_tracking", "time_tracking", "news", "documents", "files", "wiki", "repository", "boards", "calendar", "gantt", ""]}, "controller"=>"projects"}
Redirected to http://redmine.schoolgat.es/projects/test4/settings
Cloning gitolite-admin repository
Creating MD5 digests for Redmine Git Hosting hook
Digest for post-receive.redmine_gitolite.rb: 08e9b3cf99fa6285331ccdcef8b9a0d3
Our hook is already installed

Errno::ENOENT (No such file or directory - /usr/local/zend/tmp/redmine_git_hosting/gitolite-admin/conf/gitolite.conf):
vendor/plugins/redmine_git_hosting/app/models/git_hosting_observer.rb:19:in `set_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:in `accept_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:in `start_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:in `handle_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:in `handle_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:in `server_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:in `start'
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:in `spawn_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:in `spawn_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:in `synchronize'
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:in `spawn_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:in `__send__'
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:in `start_synchronously'
passenger (3.0.9) helper-scripts/passenger-spawn-server:99