2
  1. に Gitlab をインストールしました/home/myuser/gitlab
    1. 担当者を作りましたtesting
    2. 指示に従って、リモコンを追加しましたgit@localhost:root/testing.git

これが私の /home/myhome/.ssh/config ファイルです

Host mylocalhost
Hostname localhost
User git
IdentityFile /home/myuser/.ssh/id_rsa

実行するssh mylocalhostと、正しいメッセージが表示されますWelcome to GitLab, Administrator!。しかし、その後、次の入力を取得します

debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

Transferred: sent 3284, received 3480 bytes, in 0.4 seconds
Bytes per second: sent 7501.3, received 7949.0
debug1: Exit status 0` 

そして私のGitLabログで

Started GET "/api/v3/internal/allowed?key_id=4&action=git-receive-pack&ref=_any&project=testing" for 127.0.0.1 at 2013-11-07 16:48:00 +0100

gitところで、コマンドを実行するたびに、メッセージが表示されます

ssh: Could not resolve hostname mylocalhost: nodename nor servname provided, or not known
fatal: Could not read from remote repository.

誰かがアイデアを持っていますか?

更新:実行中のgitlab-shell/bin/check出力

Check GitLab API access: OK
Check directories and files: 
    /Users/git/repositories: OK

bundle exec rake gitlab:env:info RAILS_ENV=production出力

System information
System:     Mac OS X 10.9
Current User:   myname
Using RVM:  yes
RVM Version:    1.21.7
Ruby Version:   2.0.0p195
Gem Version:    2.0.3
Bundler Version:1.3.5
Rake Version:   10.1.0

GitLab information
Version:    6.2.0.pre
Revision:   ea72f4f
Directory:  /Users/git/gitlab
DB Adapter: mysql2
URL:        http://localhost
HTTP Clone URL: http://localhost/some-project.git
SSH Clone URL:  git@localhost:some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version:    1.7.1
Repositories:   /Users/git/repositories/
Hooks:      /Users/git/gitlab-shell/hooks/
Git:        /usr/bin/git

そして私gitlab.ymlは正しいようです

4

1 に答える 1

1

サービスを実行gitlabすると、The GitLab Unicorn webserver is not running と表示されます。
pid 66802 の GitLab Sidekiq ジョブ ディスパッチャが実行されています。
しかし、実行するbundle exec rake gitlab:check RAILS_ENV=productionと、私は得るChecking Sidekiq ... Running? ... no

suすべてのステップ ( (root) との間su git)で、正しいユーザーでインストールとチェックを行ったことを確認してください。

OP Newben は次のように確認しています。

チェックをsudoすると、sidekiqは実際に実行されています。

レポについて:

リモートオリジンURLを変更したgit remote set-url origin git@localhost:repositories/root/#{myrepo}.gitところ、動作するようになりました!

これは、 GitLab 6.0で課された新しい制限によるものです。

これからは、グループは単なるプロジェクトのディレクトリではありません。また、ユーザーを追加することもできます。ユーザーがグループに追加されると、グループ内のすべての既存および新規プロジェクトへのアクセスが自動的に取得されます。
メンバー/プロジェクトを管理できるグループの複数の所有者を持つこともできます。

「 gitlab チームと gitlab グループの違いは何ですか? 」も参照してください。

これにより、GitLab はよりグループ志向になります。そのため、グローバル名前空間はサポートされなくなりました。プロジェクトは、グループまたはユーザーのみの一部にすることができます

プロジェクト (あなたのmyrepo.git) は、グループまたはユーザーのみ (ここではユーザー アカウントroot) の一部にすることができます。

于 2013-11-08T09:30:48.690 に答える