Articles of gitlab

将Gitlab数据库从v6.3迁移到v7.5?

将旧的gitlab安装迁移到新的项目,问题,用户,代码片断和其他所有东西的最好方法是什么? 我们的旧机器是一个带GitLab 6.3.0的bitnami虚拟机 – 备份指南中的命令不起作用: sudo gitlab-rake gitlab:backup:create >命令gitlab-rake sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production返回Could not locate Gemfile 那么,甚至有可能将这些数据从v6转移到v7? – 如何? 新机器在Ubuntu 14.04上运行,安装了Gitlab 7.5.3(Omnibus,.deb安装)(全新安装,工作原理没有改变)

Vcsrepo与gitlab失败

我想使用vcsrepo拉一些gitlab仓库,但由于某种原因,它无法执行。 vcsrepo { "/tmp/repo/update": ensure => present, provider => git, source => "git@gitlab:${git_url}", user => 'update', } ssh密钥属于用户更新,源无法使用或不使用'git @' 错误: err:/ Stage [main] // Node [xxx] / Git :: Add_git [webhooks] / Vcsrepo [/ tmp / webhooks / update] /确保:从缺席变成失败:无法设置'present on ensure:undefined方法`执行'Puppet :: Util :: Execution:模块在/tmp/vagrant-puppet-2/modules-0/git/manifests/init.pp:54 我做错了什么?

如何将GitLab备份到云端(S3)

我正在尝试遵循gitlab 文档将备份上传到云,但是我发现它很稀疏,而且这不是直截了当的。 创build焦油非常简单。 我的问题开始 对于综合套餐: gitlab_rails['backup_upload_connection'] = { 'provider' => 'AWS', 'region' => 'eu-west-1', 'aws_access_key_id' => 'AKIAKIAKI', 'aws_secret_access_key' => 'secret123' } gitlab_rails['backup_upload_remote_directory'] = 'my.s3.bucket' 我该怎么办呢? 我把它放在/var/opt/gitlab/gitlab-rails/etc/gitlab.yml里面,那是我做的? multipart_chunk_size: encryption: gitlab_rails['backup_upload_connection'] = { 'provider' => 'AWS', 'region' => 'eu-west-1', 'aws_access_key_id' => 'AKIAKIAKI', 'aws_secret_access_key' => 'secret123' } gitlab_rails['backup_upload_remote_directory'] = 'gitlabbackupxan1234' ## GitLab Shell settings gitlab_shell: path: /opt/gitlab/embedded/service/gitlab-shell/ 然后我们来 […]

无法使用r10k从私人git仓库进行部署

我正在学习如何使用r10k来部署我的puppet代码,并且在试图从我的控制库中进行部署时遇到了麻烦。 我得到的错误消息是: Failed to authenticate SSH session: Unable to extract public key from private key file: Method unimplemented in libgcrypt backend 我已经validation,直接连接到服务器时,我的SSH密钥工作。 r10k的文档有点令人困惑,但从我可以告诉唯一的方法来指定一个SSH密钥是通过使用坚固的gem,并从我所了解的libssh2(这坚固依赖通过libgit2)在Ubuntu链接到libgcrypt而不是openssl。 'shellgit'提供程序似乎没有任何指定ssh密钥的方法。 什么是最简单的方法解决这个问题? 编辑:我没有真正解决了试图configuration“坚固”的提供者的问题,但我搞清楚为什么'shellgit'不工作 – 我使用sudo运行r10k和git服务器不在root的known_hosts文件,导致密钥validation失败。 一旦我将主机添加到文件,一切运行顺利使用shellgit。

Gitlab:通过ruby“bundle”进程消耗极高的内存

我在运行在Ubuntu LTS 16.04上的Gitlab安装有问题。 我必须指出,我没有太多的Linux或Gitlab的经验。 我的一些个人项目(只有4个)的Gitlab安装运行正常,虽然推动是非常缓慢,有时失败。 访问网页界面也非常慢。 我检查了服务器,注意到使用了高达96%的内存。 罪魁祸首似乎是一个捆绑过程。 top – 00:15:30 up 59 days, 16:17, 1 user, load average: 0.00, 0.01, 0.09 Tasks: 160 total, 1 running, 159 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.5 us, 0.2 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 72.4/2048272 [||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| […]

执行gitlab sidekiq(rake任务)与暴发户

我试图通过暴发户启动gitlab sidekiq守护进程。 但不幸的是,sidekiq工人似乎是从sidekiq开始deamonizes自己respawned: Jul 12 17:26:42 git kernel: [370722.042968] init: gitlab-sidekiq main process (28251) terminated with status 1 Jul 12 17:26:42 git kernel: [370722.042997] init: gitlab-sidekiq main process ended, respawning 有没有一种方法来“掠夺”一个耙子任务? (我知道这个和这个 )或者专门运行gitlab sidekiq作为暴发户脚本。 这是我目前的工作: description "Sidekiq Background Worker for Gitlab" # no "start on", we don't want to automatically start start on runlevel [2345] […]

自动LDAPlogin到Gitlab

我运行了Apache 2.2和Gitlab 6。 在Debian Wheezy上安装OpenLDAP并设置Gitlab之后,我可以使用LDAP凭据login到Gitlab。 但是我想知道是否有办法从Apache 2.2 Basic Auth提供LDAPlogin证书给Gitlab。 当在Apache和Gitlab中启用时,我不得不login两次。 (我也需要这种行为螳螂) 编辑我做了一个错误的假设。 使用LDAP向Apache进行身份validation时,这是一个HTTP基本身份validation。 因此,Gitlab必须接受来自Apache的基本身份validation凭据( HTTP_REMOTE_USER ),以基于Gitlabs自己的用户数据库login用户。 据我所见,有一些努力 ,但这个补丁只适用于Gitlab 6(我正在使用版本6.2)。 正如你可以在这里看到的最后一个评论,看来,Gitlab将为企业版本开发这样一个function。

安装GitLab后,“gitlab-shell自检失败”

所以我安装了GitLab和nginx,现在我在访问它的时候出现了502 Bad Gateway错误。 我通过检查sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production ,发现我有一个错误,读取: Check GitLab API access: FAILED. code: 502 gitlab-shell self-check failed Try fixing it: Make sure GitLab is running; Check the gitlab-shell configuration file: sudo -u git -H editor /home/git/gitlab-shell/config.yml Please fix the error above and rerun the checks.

我可以使用gitlab监视现有的回购站,保留旧的裸giturl吗?

我在我的服务器上安装了Gitlab,我不知道我愿意做什么是可能的。 我想设置Gitlab来监视我的回购站,附带所有的好东西,但我不想使用gitlaburl,因为我不想强迫所有开发者使用回购。 Gitlab自己的“导入”function似乎创build自己的url,所以这不会是我正在寻找的。 我的问题是:有没有办法使用旧的裸giturlgitlab?

无法从Docker容器克隆专用存储

问题 我试图在gitlab构build过程中从gitlab(自托pipe)克隆私人回购。 我使用ssh私钥没有密码,但有一个错误 key_load_private_type: incorrect passphrase supplied to decrypt private key 文件和debugging .gitlab-ci.yml image: tetraweb/php:5.5 variables: TIMEZONE: Asia/Novosibirsk before_script: # Create deploy private key – mkdir ~/.ssh – echo $DEPLOY_KEY_PRIVATE >> ~/.ssh/id_rsa && chmod 0600 ~/.ssh/id_rsa – echo "Host gitlab.example.com"$'\n\t'"IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config – ssh-keyscan -t rsa gitlab.example.com >> ~/.ssh/known_hosts test: script: – ssh -vT […]