0

私は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 clone が機能する

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

1 に答える 1

0

問題はApache Webサーバーの設定にありました。

私はいくつかの 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 サーバーがそれをインターセプトしているようです。

別の投稿が言ったように、サブドメインまたはWeb サーバーの設定が問題です。

于 2014-02-18T13:09:13.973 に答える