Articles of gitlab

git应该如何parsing由gitlab生成的URL?

有gitlab成功安装并运行,我试图导入一个现有的项目。 为此,我创build了一个空的项目,然后在项目页面上获得了一个指令列表,如何将现有的回购数据推送到gitlab项目中: cd existing_git_repo git remote add origin [email protected]:root/testproject.git git push -u origin master 但是当这样做时,我得到以下消息: fatal: 'root/testproject.git' does not appear to be a git repository fatal: Could not read from remote repository. 当查看我的存储库文件夹时,存储库已经由gitlab在那里创build,当使用http-URL而不是git-URL时,一切都按预期工作。 git push应该怎么知道如何从“[email protected]:root / testproject.git”parsing为“[email protected]:/home/gitlab/repositories/root/testproject.git” ? gitlab应该创buildgit服务器吗? 如果是这样,我应该从哪里开始挖掘,找出为什么没有find存储库,gitlab告诉我指向我的远程? – 编辑:当grep“root / testproject.git”我得到以下结果: [gitlab@gitlab gitlab]# grep -r "root/testproject.git" * gitlab/log/sidekiq.log:Initialized empty Git repository in […]

安装了gitlab-ci,但只有nginx欢迎页面显示

我使用这个指南安装了gitlab-ci,一切都很顺利。 我到了教程的最后,当我到服务器的IP地址,我只有一个欢迎来到nginx! 屏幕。 我使用的是Ubuntu 12.04服务器,而且我也看到了一个类似的问题 ,在堆栈溢出问题上得到了回答,但答案并不适用于我(或者我完全不了解它),因为我没有使用本地主机。 我不能在这台服务器上使用浏览器(据我所知),因为我正在使用它。 这是我的/ etc / nginx / sites-enabled / gitlab_ci # GITLAB CI # Maintainer: @randx # App Version: 2.0 upstream gitlab_ci { server unix:/home/gitlab_ci/gitlab-ci/tmp/sockets/gitlab-ci.socket; } server { listen 192.168.1.151:80; # eg, listen 192.168.1.1:80; server_name git-ci 192.168.1.25; # eg, server_name source.example.com; root /home/gitlab_ci/gitlab-ci/public; access_log /var/log/nginx/gitlab_ci_access.log; error_log /var/log/nginx/gitlab_ci_error.log; location / { […]

gitlab:如何不破旧的gitoliteurl

我正在从gitolite迁移到gitlab。 我的原始存储库有像: [email protected]:project-gui和[email protected]:project-libs 。 Gitlab强迫我使用如下的URL: [email protected]:project/gui和[email protected]:project/libs 。 我不想强制更改现有克隆中的文档和远程URL。 有没有办法让我可以允许顶级回购,代理或URLredirect这些回购?

如何确定LDAP绑定到Windows Server 2012 DC的值?

编辑:这个问题已经得到了很多的意见,我从来没有真正回来,并提供了一个精确的,一步一步的解决scheme。 所以我18个月后回来,做到了。 这个解决scheme适用于简单的绑定,原来的问题是试图获得一个Gitlab Omnibus安装绑定到LDAP服务器,但它应该工作在任何简单的LDAP绑定的情况下。 请参阅我接受的答案,了解我制定解决scheme的确切步骤。 以下是我的Gitlab版本详细信息(对于Gitlab有这个问题的人): GitLab 7.0.0 GitLab Shell 1.9.6 GitLab API v3 Ruby 2.1.1p76 Rails 4.1.1 原帖:我一直在尝试将近6个小时,让我的Gitlab部署通过Windows Server 2012 Essentials Active Directory LDAP进行身份validation。 我为我的Gitlab服务器运行Ubuntu 14.04。 它已经通过SSSD连接到域控制器。 Gitlab本身使用gitlab.rdconfiguration文件中的LDAP设置,如下所示: # These settings are documented in more detail at # https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/gitlab.yml.example#L118 gitlab_rails['ldap_enabled'] = true gitlab_rails['ldap_host'] = 'hostname of LDAP server' gitlab_rails['ldap_port'] = 389 gitlab_rails['ldap_uid'] = 'sAMAccountName' […]

Gitlab已经安装了Apache,安装Ubuntu 12.04

我使用Ubuntu 12.04。 我有Apache,MySQL,Gitweb和Jenkins已经在那里运行,但想试试Gitlab。 我下载了软件包并按照https://about.gitlab.com/downloads/ 当我访问我select的URL和端口(我有服务器的通配DNS)时,出现404错误。 我不知道如何使这项工作,因为谷歌只谈论从原始服务器的设置。 我从来没有处理Ruby或nginx之前,所以没有线索哪里甚至find他们的日志和configuration在一个正常的设置,而不是介意一个自定义的。 任何人有任何想法我甚至可以debugging呢? 我什至不能解决configuration文件,因为它都隐藏在deb(它不会卸载)。 下面我的/etc/gitlab/gitlab.rb的内容: # Change the external_url to the address your users will type in their browser external_url 'http://localhost:8888/' redis['port'] = 1234 postgresql['port'] = 2345 unicorn['port'] = 3456 [更新] 我设置了一个Apache主机来反向代理gitlab,当我打到,我看到一个“503 – 服务暂时不可用”的错误

GitLab Unicorn服务一直崩溃,502错误

我使用了Gitlab CE的安装程序,到目前为止一切都很顺利。 然后,当完成安装我总是得到502错误在我的网站上,因为那时我做了一点研究,然后我看到我的gitlab服务独angular兽每10秒重新启动/崩溃,所以我认为这就是为什么我得到502,但我不知道为什么它总是崩溃。 我怎样才能防止这个? 我正在使用Debian 7.6和最新的gitlab版本 run: nginx: (pid 4919) 953s; run: log: (pid 2236) 1642s run: postgresql: (pid 2239) 1642s; run: log: (pid 2238) 1642s run: redis: (pid 2233) 1642s; run: log: (pid 2232) 1642s run: sidekiq: (pid 3323) 1332s; run: log: (pid 2230) 1642s run: unicorn: (pid 8153) 2s; run: log: (pid 2234) […]

永久更改gitlab服务器端口

试图使用最新版本的gitlab,我对它的configuration过程(或者说它的“embedded式软件包”)有点绝望。 我已经在我的Ubuntu服务器14.04上安装了gitlab-omnibus软件包(版本7.4.3),这个软件也运行了一个Apache的其他东西; 因此我想更改gitlab运行的端口。 假设它可以通过编辑/etc/gitlab/gitlab.rb来完成,在最后添加端口号,如下所示: external_url='http://myurl:myport' 然后运行 sudo gitlab-ctl reconfigure 那么,这是行不通的。 nginx仍然想连接到端口80,作为一个 gitlab-ctl tail nginx 喷出: date&time [emerg] 31321#0: bind() to 0.0.0.0:80 failed (98: Address already in use) 在networkingsearch中,我发现了许多这样的问题,还有许多应该被编辑的文件(例如见https://serverfault.com/a/587800/151655 )。 到目前为止,我发现的唯一一件实际上有效的工作是更改文件/var/opt/gitlab/nginx/conf/gitlab-http.conf的端口; 但显然这种改变只会持续到gitlab-ctl reconfigure的下一次运行。 那么有没有办法让这个变化棒,或者我需要避免运行gitlab-ctl reconfigure或每次再做手动适应? 顺便说一下,我发现,即使networking端口的实际绑定失败, gitlab-ctl start根本就不报告任何exception(就像一切正常)。 我在这里错过什么东西,或者这只是非常糟糕的可用性?

通过SSH访问的Git克隆只能从特定服务器拒绝

我的办公室networking中有一台Ubuntu 12.04服务器,用于托pipe我们的git回购站。 服务器正在运行Gitlab 7.1.1,并且在非标准端口上有SSH。 除了一个例外,它适用于办公室内外的每个人。 例外是托pipe公司托pipe的服务器,所以我只有有限的访问权限。 当我尝试克隆非标准端口上的回购时,超时。 我认为这是因为托pipe公司阻止了出站端口。 为了解决这个问题,我在我的办公室路由器上设置端口转发,将端口22上的传入stream量转发到我在git服务器上的非标准端口。 我通过从Digial Ocean VPS克隆而不指定端口进行testing,并且工作正常。 但有问题的服务器现在给出了以下错误: Access denied. fatal: The remote end hung up unexpectedly git服务器正在注册正在build立的SSH连接,并接受公钥,如/var/log/auth.log所示: Jan 20 15:09:07 gitlab sshd[3043]: Accepted publickey for git from 10.0.1.254 port 60771 ssh2 Jan 20 15:09:07 gitlab sshd[3043]: pam_unix(sshd:session): session opened for user git by (uid=0) Jan 20 15:09:09 gitlab sshd[3162]: […]

在自定义GitLab钩子中构buildmeteor应用程序

如何在GitLab自定义钩子中构buildmeteor应用程序(做'meteor build。')? 自定义挂钩是由用户git运行的,他似乎没有任何可能运行meteor build。 因此,我想将脚本中的用户更改为已知能够构build应用程序的人员。 这是我的bash文件,直到现在: #!/bin/sh # # The deployed directory DEPLOYDIR=/var/www/site/ echo " – Starting checkout" GIT_WORK_TREE="$DEPLOYDIR" git checkout -f echo " – Finished checkout" echo " – Starting meteor build" #not working yet sudo su – nodejs cd "$DEPLOYDIR" meteor build .

Gitlab综合更新错误(8.0.1至8.0.2)

我在CentOS 7服务器上安装了全新的Gitlab服务器。 而当我尝试更新sudo yum install gitlab-ce到版本8.0.2的包我有一个错误: … truncated … gitlab-ce-8.0.2-ce.1.el7.x86_64.rpm | 336 MB 00:00:39 Running transaction check Running transaction test Transaction test succeeded Running transaction gitlab preinstall: Backing up GitLab SQL database (excluding Git repositories, uploads) rake aborted! Errno::EACCES: Permission denied @ dir_s_mkdir – /var/opt/gitlab/backups /opt/gitlab/embedded/service/gitlab-rails/lib/backup/database.rb:15:in `dump' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:66:in `block (4 levels) in <top (required)>' /opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:11:in […]