Gitorious stops functioning after deleting a repository

2 views
Skip to first unread message

IttayD

unread,
Feb 1, 2010, 4:50:27 AM2/1/10
to Gitorious
Hi,

I have a privately hosted gitorious server, following the install
guide. I've deleted a repository through the web interface.

Now, many (not all) pages show: "We're sorry, but something went
wrong"

I see a lot of ActionView::TemplateError in the log. Seems like
there's no referential integrity in the database, so some foreign keys
remained "dangling".

Is there some procedure to fix this? (How come this doesn't happen on
gitorious.org?)

Disclaimer: the setup procedure is very long and complex, I may have
missed a step.

Thank you,
Ittay

Marius Mårnes Mathiesen

unread,
Feb 1, 2010, 5:08:44 AM2/1/10
to gito...@googlegroups.com
On Mon, Feb 1, 2010 at 10:50 AM, IttayD <ittay...@gmail.com> wrote:
I see a lot of ActionView::TemplateError in the log. Seems like
there's no referential integrity in the database, so some foreign keys
remained "dangling".

Ittay,
The referencial integrity in Gitorious should be handled by Rails, not on the database level. This is done by eg. "dependent => :destroy" statements in the database classes, which fires callbacks that delete referenced objects. 

It would be useful with some more details on what the error messages are...

Cheers,
- Marius
Reply all
Reply to author
Forward
0 new messages