Gitorious - 如何恢复存储库索引?

时间:2014-02-18 03:05:07

标签: ruby-on-rails ruby git ubuntu gitorious

我正在使用Gitorious(Ubuntu 12.04上的Ruby + rails)。

因为我最近无法通过WEB登录,所以我使用一些rake命令清除了一些缓存。 对不起,我不记得哪个命令。

之后,我无法从本地推送到远程存储库。 似乎每个存储库都不起作用。

错误就像:

root@gitclient:~/test# git clone git@gitserver:foo/foo_web.git
Cloning into 'foo_web'...

== Gitorious: ==========================================================

Access denied or wrong repository path

========================================================================

gitorious的Web应用程序工作正常,在gitserver中,存储库的源代码仍然存在。

我认为存储库索引发生了一些事情。

有人可以给我一个如何调试或修复它的提示吗?

更新

使用公钥工作的SSH访问

root@gitclient:~# ssh git@gitserver
PTY allocation request failed on channel 0
Welcome, userfoo. Use git to push/pull your repositories
Connection to gitserver closed.
root@gitclient:~#    

来自FILE SYSTEM的服务器端git克隆

root@gitserver:~/test# git clone file://localhost//repositories/foo/bar_src.git
Cloning into 'bar_src'...

1 个答案:

答案 0 :(得分:0)

问题出现在apache web服务器设置中。

因为我正在运行一些网络应用程序,所以我配置如下。

/config/gitorious.yml

...
gitorious_host: git.mydomain.com
...

apache虚拟主机

root@gitserver:~ cat /etc/apache2/sites-enabled/gitorious
<VirtualHost *:80>
    ServerName mydomain.com
    ServerAlias git.mydomain.com

    DocumentRoot /var/www/gitorious/public

    Redirect permanent / https://git.mydomain.com/
    #Redirect permanent / https://git.mydomain.com/ # if I comment this line, works fine
</VirtualHost>

似乎当客户端使用git命令访问git-server时,Apache Web服务器正在拦截它。

与其他帖子一样,子域网络服务器设置存在问题。