Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';不要推到GitLab_Git_Ubuntu_Push_Server_Gitlab - Fatal编程技术网

Can';不要推到GitLab

Can';不要推到GitLab,git,ubuntu,push,server,gitlab,Git,Ubuntu,Push,Server,Gitlab,我昨晚刚在我的Ubuntu服务器上完成GitLab的设置,但看起来我无法向它推送任何东西。我对Git非常陌生,所以我真的不知道我在这里做什么 以下是我尝试推送时SourceTree的输出: git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master POST git-receive-pack (475 bytes) remote: GitL

我昨晚刚在我的Ubuntu服务器上完成GitLab的设置,但看起来我无法向它推送任何东西。我对Git非常陌生,所以我真的不知道我在这里做什么

以下是我尝试推送时SourceTree的输出:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
POST git-receive-pack (475 bytes)

remote: GitLab: API is not accessible[K

Pushing to http://git.ghostlyco.de/revxx14/new-site.git
To http://git.ghostlyco.de/revxx14/new-site.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://git.ghostlyco.de/revxx14/new-site.git'




Completed with errors, see above.
不知道这意味着什么。我把它拉得很好,所以我真的很困惑

下面是我运行sudo-u git-H bundle exec rake gitlab:check RAILS\u ENV=production时的输出:

我能想到的唯一一件事是,我无法运行这个命令:echo'unixsocketperm 770'| sudo tee-a/etc/redis/redis.conf。不确定这是否会导致此问题


git-remote-v
输出:

origin  http://git.ghostlyco.de/revxx14/new-site.git (fetch)
origin  http://git.ghostlyco.de/revxx14/new-site.git (push)

我想起来了,我忘了在config.yml中设置gitlab_url。

你为该回购设置了自定义接收挂钩吗?对不起,我不知道那是什么。我对这一切一无所知。我所做的只是在GitLab的web客户端中单击“新建项目”。然后填写这些信息,我猜不会。你确定用户“git”对repositories目录具有适当的权限(特别是写入权限)吗?我按照这里的说明进行了操作:我在想第6步,
#确保GitLab可以写入日志/和tmp/目录
,涵盖了这一点,我做到了。我还有别的事要做吗?我完全按照链接指示运行所有内容,如果有帮助的话。您是否也尝试创建另一个项目并推动它?我发现gitlab恶魔有时喜欢对我们这些凡人恶作剧。。。