【问题标题】:Gitorious - how can I restore repository indexes?Gitorious - 如何恢复存储库索引?
【发布时间】:2014-02-18 03:05:07
【问题描述】:

我正在使用 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:~#    

文件系统中的服务器端 git clone 工作

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

【问题讨论】:

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


    【解决方案1】:

    问题出在 apache 网络服务器设置中。

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

    /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 server 正在拦截它。

    正如另一篇帖子所说,子域网络服务器设置有问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-03-30
      • 2012-10-28
      • 2020-07-16
      • 2015-06-22
      • 1970-01-01
      • 1970-01-01
      • 2010-12-09
      相关资源
      最近更新 更多