TemplateError on app/views/repositories/_overview.html.erb

93 views
Skip to first unread message

haruny

unread,
Jan 4, 2010, 2:09:17 PM1/4/10
to Gitorious
Hello Everyone,

I'm struggling with my very first gitorious installation.
I've tripple followed all the docs and still can't figure out why it
doesn't work.

I can now login etc on the site everything works except: creating a
new project.

Mainly I have 2 errors in the logs:

1) ActionView::TemplateError (/var/www/html/gitorious/repositories/
900/6f2/e765fdefa082fa53920777ea77c995937f.git) on line #70 of app/
views/repositories/_overvie
w.html.erb:
67: :locals => {:repository => repository} -%>
68: </div>
69:
70: <% if verbose && repository.has_commits? && !
repository.git.heads.blank? -%>
71: <div class="branches">
72: <ul class="branch_list">
73: <li><strong>Branches:</strong></li>


OR
2)Grit::NoSuchPathError (/var/www/html/gitorious/repositories/900/6f2/
e765fdefa082fa53920777ea77c995937f.git)


What am I missing here? Please advice.

Best regards,

Harun.


Marius Mårnes Mathiesen

unread,
Jan 5, 2010, 2:53:59 AM1/5/10
to gito...@googlegroups.com
Harun,
On Mon, Jan 4, 2010 at 8:09 PM, haruny <arg...@gmail.com> wrote:
1) ActionView::TemplateError (/var/www/html/gitorious/repositories/
900/6f2/e765fdefa082fa53920777ea77c995937f.git) on line #70 of app/
views/repositories/_overvie
w.html.erb:
OR
2)Grit::NoSuchPathError (/var/www/html/gitorious/repositories/900/6f2/
e765fdefa082fa53920777ea77c995937f.git)


What am I missing here? Please advice.

Both these errors indicate a missing git repository, Gitorious expects /var/www/html/gitorious/repositories/900/6f2/e765fdefa082fa53920777ea77c995937f.git to be a git repository.
Has the poller script been run? It should create the repository on disk after it's created in the web interface.

- Marius

Benjamin Podszun

unread,
Jan 5, 2010, 3:53:34 AM1/5/10
to gito...@googlegroups.com

Being new and ignorant doesn't stop me from posting.. :)
Is this really the path you, Harun, wanted to use for repositories?
The guide I followed placed them below /var and you have it right
inside of your web root? Can you check what your settings in
config/gitorious.yaml are for the repository path of your environment
(production, I assume)?
Do you have access to that path as the user running gitorious?

Marius: Could this be a fallback/default path, if no repository path
is specified?

Regards,
Ben

Marius Mårnes Mathiesen

unread,
Jan 5, 2010, 4:23:16 AM1/5/10
to gito...@googlegroups.com
On Tue, Jan 5, 2010 at 9:53 AM, Benjamin Podszun <benjamin...@gmail.com> wrote:
Being new and ignorant doesn't stop me from posting.. :)

Your posting is very appreciated, Ben, thanks!
 
Marius: Could this be a fallback/default path, if no repository path
is specified?

Nice catch! In fact, if I remove this line from my gitorious.yml, Gitorious crashes on the exact same line with the message "can't convert nil into String" - if the error message Harun sees is the same, I'd say you just nailed it, Ben!

- Marius

haruny

unread,
Jan 5, 2010, 3:00:01 PM1/5/10
to Gitorious
Thanks a lot guys.
it worked like magic when I re-started the poller.


On Jan 5, 4:23 am, Marius Mårnes Mathiesen
<marius.mathie...@gmail.com> wrote:
> On Tue, Jan 5, 2010 at 9:53 AM, Benjamin Podszun <benjamin.pods...@gmail.com

Connor Garvey

unread,
Feb 8, 2012, 10:57:18 PM2/8/12
to gito...@googlegroups.com
I'm experiencing the same symptom, but the fix didn't work for me.

Running this fails to start the poller. I don't get any output and it seems to
bail right at the call to Daemon without printing a stack trace.

RAILS_ENV=production /opt/ruby-enterprise/bin/ruby
/var/www/gitorious/script/poller start

This command does start the poller.

RAILS_ENV=production /opt/ruby-enterprise/bin/ruby
/var/www/gitorious/lib/gitorious/messaging/stomp_poller.rb start

Running that manually got me over the hump of getting my repository created, but
it would be nice to have it working properly. Do you have any suggestions?

Reply all
Reply to author
Forward
0 new messages