ivyl/redmine-gitolite — Issue #19: Grit::NoSuchPathError
Author: lokimon
Created: 2012-03-08 22:39:16+00:00
State: open

It appears redmine-gitolite is having troubles creating a tmp directory.
on line 59 of gitolite_redmine it tries to create the /opt/redmine/tmp/redmine_gitolite_1331245893 directory.

My guess is that it's not working for some reason.

I don't think it's a permission problem.

Seems to be running as redmine user.

root@page:/# ps aux | grep redmine
redmine 9851 4.7 3.7 233364 112132 ? S 16:30 0:14 Passenger ApplicationSpawner: /opt/redmine
redmine 9855 0.2 3.7 235972 112100 ? S 16:31 0:00 Rails: /opt/redmine

If I log in as redmine, I can create that directory.

redmine@page:~$ ls /opt/redmine/tmp/
redmine_gitolite_lock test
redmine@page:~$ mkdir -p /opt/redmine/tmp/redmine_gitolite_1331245893
redmine@page:~$ ls /opt/redmine/tmp/
redmine_gitolite_1331245893 redmine_gitolite_lock test

Any ideas?

Processing RepositoriesController#create (for 66.41.152.126 at 2012-03-08 16:31:33) [POST]
Parameters: {"controller"=>"repositories", "authenticity_token"=>"LoZFLCXgjfPOeeGOQ6oXxC2f66DZ5Z9yPn3YP9FXddk=", "repository_scm"=>"Git", "repository"=>{"identifier"=>"testing", "is_default"=>"1"}, "project_id"=>"testing", "action"=>"create", "commit"=>"Create"}
# /var/lib/gems/1.8/gems/grit-2.4.1/lib/grit/repo.rb:53:in `initialize'
/var/lib/gems/1.8/gems/gitolite-0.0.3.alpha/lib/gitolite/gitolite_admin.rb:12:in `new'
/var/lib/gems/1.8/gems/gitolite-0.0.3.alpha/lib/gitolite/gitolite_admin.rb:12:in `initialize'
/opt/redmine/vendor/plugins/redmine-gitolite/lib/gitolite_redmine.rb:58:in `new'
/opt/redmine/vendor/plugins/redmine-gitolite/lib/gitolite_redmine.rb:58:in `clone'
/opt/redmine/vendor/plugins/redmine-gitolite/lib/gitolite_redmine.rb:33:in `update_projects'
/opt/redmine/vendor/plugins/redmine-gitolite/lib/gitolite_redmine.rb:137:in `recursion_check'
/opt/redmine/vendor/plugins/redmine-gitolite/lib/gitolite_redmine.rb:29:in `update_projects'
/opt/redmine/vendor/plugins/redmine-gitolite/app/models/gitolite_observer.rb:12:in `update_repositories'
/opt/redmine/vendor/plugins/redmine-gitolite/app/models/gitolite_observer.rb:4:in `after_save'
/var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:171:in `send'
/var/lib/gems/1.8/gems/activerecord-2.3.14/lib/active_record/observer.rb:171:in `update'