I'm pretty sure that before passenger reads the repos directory it
switches to git user.
your home/git/repos folder must be set to 700 before starting
gitorious.
I look in my installation and not all folders under repos are 750,
some are 700.

On Nov 1, 7:37 pm, kevwil <[email protected]> wrote:
> I've almost got a local install of Gitorious working on Ubuntu Server
> 10.04.1 LTS, but I'm have a strange issue.
>
> When I create a repository, it does get created successfully under /
> home/git/repos but I get a Rails view template error that I think
> might be permissions-based.
>
> ******************
>
> ActionView::TemplateError (/home/git/repos/73c/
> d14/7f6b6a40b7ec6d5decd1c39e123db3e4e6.git) on line #46 of app/views/
> repositories/_overview.html.erb:
> 43:          :locals => {:repository => repository} -%>
> 44:
> 45:  </div>
> 46:  <% if verbose && repository.has_commits? && !
> repository.git.heads.blank? -%>
> 47:    <div class="branches">
> 48:      <ul class="branch_list">
> 49:        <li><strong>Branches:</strong></li>
>
>     vendor/grit/lib/grit/repo.rb:36:in `initialize'
>     app/models/repository.rb:245:in `new'
>     app/models/repository.rb:245:in `git'
>     app/models/repository.rb:250:in `has_commits?'
>     app/views/repositories/_overview.html.erb:46
>
> ...........
>
> Grit::NoSuchPathError (/home/git/repos/73c/
> d14/7f6b6a40b7ec6d5decd1c39e123db3e4e6.git):
>   vendor/grit/lib/grit/repo.rb:36:in `initialize'
>   app/models/repository.rb:245:in `new'
>   app/models/repository.rb:245:in `git'
>   app/models/repository.rb:250:in `has_commits?'
>
> *******************
>
> The path does exist, so it's a confusing error.
>
> Each folder under /home/git/repos, i.e. 73c in this example, has 750
> permissions, so the www-data user that Rails/Passenger runs as has no
> read permission. Why is the git-daemon creating folders with that
> permission?
>
> Any tips on how to make this easier to run would be greatly
> appreciated.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to