What is the resolution to this? I have tried a rollback to the 4.0 version and the gitlab:check fails even more spectacularly... leaving me with no gitlab with either 4.1 or 4.0...
What is the fix for this?
By Administrator on 2013-01-27T18:57:33 (imported from GitLab project)
By Administrator on 2013-01-27T18:57:33 (imported from GitLab)
@h0rus & @pingupingu I could start and access the gitlab. I don't know if the bug affect the repositories, because the check halt on another user's repository.
By Administrator on 2013-01-28T14:24:50 (imported from GitLab project)
By Administrator on 2013-01-28T14:24:50 (imported from GitLab)
Ok, I found out that the project have no repository yet. The team member just create that project, but haven't push anything yet to the project. I will try to add patch and add pull request so the empty repository skipped from the checking.
By Administrator on 2013-01-28T14:33:19 (imported from GitLab project)
By Administrator on 2013-01-28T14:33:19 (imported from GitLab)
@donnykurnia I also saw the relation to Projects from rails.
Since it was only toy data I could "repair" gitlab by initializing the db as written in install guide, but that's not a good workaround...
Glad you narrowed the error down!
By Administrator on 2013-01-28T15:11:14 (imported from GitLab project)
By Administrator on 2013-01-28T15:11:14 (imported from GitLab)
@h0ru5 The errors is because the project have empty repository. In satellite tasks, it check project.empty_repo? but not when checking hooks and try to fix the hooks. That's why it failed.
With the patch in #2803 I now could run gitlab:check successfully. It will show if the project have empty repository and stop trying to get the hooks.
I think this bug is exist since before 4.1, but just appear now when upgrading existing projects that happened to have empty repo.
By Administrator on 2013-01-29T06:50:50 (imported from GitLab project)
By Administrator on 2013-01-29T06:50:50 (imported from GitLab)