本地gitlab回购上的git推送失败 我已经在/home/myuser/Gitlab中安装了Gitlab。 我创建了一个代表测试 按照说明,我添加了一个远程git@localhost:root/testing.git
这是我的/home/myhome/.ssh/config文件本地gitlab回购上的git推送失败 我已经在/home/myuser/Gitlab中安装了Gitlab。 我创建了一个代表测试 按照说明,我添加了一个远程git@localhost:root/testing.git,git,ssh,gitlab,git-push,Git,Ssh,Gitlab,Git Push,这是我的/home/myhome/.ssh/config文件 Host mylocalhost Hostname localhost User git IdentityFile /home/myuser/.ssh/id_rsa 当我运行ssh mylocalhost时,我得到了正确的消息欢迎来到GitLab,管理员。但是,我得到了以下输入 debug2: channel 0: rcvd eof debug2: channel 0: output open -> drain debug2:
Host mylocalhost
Hostname localhost
User git
IdentityFile /home/myuser/.ssh/id_rsa
当我运行ssh mylocalhost
时,我得到了正确的消息欢迎来到GitLab,管理员代码>。但是,我得到了以下输入
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\u 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
似乎是正确的
运行gitlab
服务时,我发现gitlab Unicorn Web服务器没有运行。
pid为66802的GitLab Sidekiq作业调度程序正在运行。
但是运行bundle exec rake gitlab:check RAILS\u ENV=production
,我得到检查Sidekiq。。。跑步否
确保您在每个步骤(在su
(root)和su-git
之间)都与正确的用户进行了安装和检查
委员会:
当我进行检查时,sidekiq确实在运行
关于回购协议:
我更改了远程源urlgit远程设置url源git@localhost:repositories/root/#{myrepo}.git
现在它可以工作了
这来自于对施加的新限制:
从现在起,组不仅仅是项目的目录。它还允许您添加用户。将用户添加到组后–它将自动访问组内的所有现有项目和新项目。
您还可以拥有一个组的多个所有者,这些所有者可以管理成员/项目
另见“”
有了这一点,GitLab变得更加面向组。这就是为什么我们不再支持全局名称空间项目可以是组的一部分,也可以是用户的一部分
项目(您的myrepo.git
)可以是组的一部分,也可以是用户的一部分(这里是用户帐户root
)。您的gitlab shell/bin/check
和bundle exec rake gitlab:env:info RAILS\u env=production
可以吗?你的gitlab.yml
设置正确(如中所示)@VonC我已经编辑了我的帖子,而且每件事看起来都很好。顺便说一句,当转到测试
gitlab项目页面时,我没有任何文件层次结构
,我有一些文档Git全局设置
,Create Repository
..@VonC我运行了su-git
,然后按下git
,我得到了一条消息fatal:“testing.git”似乎不是一个git存储库
@VonC,另一件奇怪的事情是,我启动了sidekiq
,我得到了这条消息:Gitlab服务启动了
,但是当我运行bundle exec rake gitlab:check RAILS\u ENV=production
时,我得到了Checking Sidekiq。。。跑步否
@VonC我花了一点时间来理解以下内容:当运行gitlab服务
时,我发现gitlab Unicorn web服务器没有运行。pid为66802的GitLab Sidekiq作业调度程序正在运行。
但是运行bundle exec rake GitLab:check RAILS\u ENV=production
,我得到检查Sidekiq。。。跑步否
您认为它可以从那里得到吗?像往常一样,非常好、详细和完美的响应;)