Tag: gitlab

Gitlab和omniauth-pam身份validation

基本上我按照这些说明添加自定义omniauth提供程序: https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md#using-custom-omniauth-providers 我想使用omniauth-pam: https://github.com/nickcharlton/omniauth-pam 添加gem并在gitlab.yml中配置后: providers: – { name: ‘pam’ } 它不会再出现此错误: Received wrong number of arguments. [nil, nil] (ArgumentError) /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/omniauth-1.1.4/lib/omniauth/strategy.rb:143:in `initialize’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.15/lib/action_dispatch/middleware/stack.rb:43:in `new’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.15/lib/action_dispatch/middleware/stack.rb:43:in `build’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.15/lib/action_dispatch/middleware/stack.rb:113:in `block in build’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.15/lib/action_dispatch/middleware/stack.rb:113:in `each’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.15/lib/action_dispatch/middleware/stack.rb:113:in `inject’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.15/lib/action_dispatch/middleware/stack.rb:113:in `build’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.15/lib/rails/engine.rb:475:in `app’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.15/lib/rails/application/finisher.rb:31:in `block in ‘ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.15/lib/rails/initializable.rb:30:in `instance_exec’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.15/lib/rails/initializable.rb:30:in `run’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.15/lib/rails/initializable.rb:55:in `block in run_initializers’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.15/lib/rails/initializable.rb:54:in `each’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.15/lib/rails/initializable.rb:54:in `run_initializers’ /sync1/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-3.2.15/lib/rails/application.rb:136:in […]

Gitlab布局完全崩溃了

我关闭了Gitlab服务器,然后运行bundle exec rake assets:precompile RAILS_ENV=production和sudo service gitlab start Gitlab的观点就是这样。 现在我可以通过手动运行服务器来查看有点正常的视图,但是缺少网页视图上的所有图像 RAILS_ENV=production rails s -p 1234 ActionController::RoutingError (No route matches [GET] “/uploads/user/avatar/2/Screenshot_2014_3_28_%E4%B8%8B%E5%8D%885_40.jpg”):

Gitlab拒绝创建远程存储库

我已经使用本指南安装了gitlab 6.5。 我运行了sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production ,一切都是绿色的。 问题是我无法使用HTTP克隆或推送内容到服务器。 我看到服务器没有在文件夹中创建git存储库,只有wiki.git。 我可以推送到wiki.git吗?

查看项目时更新后的gitlab错误500

dpkg-query -W gitlab gitlab 7.3.2-omnibus-1 我们在Ubuntu 14.04.1 LTS上运行gitlab 6.9.2。 按照此处的说明操作后, https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/update.md 要更新到7.3.2,一切看起来都不错,但是在尝试查看项目时我们得到错误500。 每当我尝试访问其中一个页面时,我在运行sudo gitlab-ctl tail postgresql时看到此错误 ERROR: relation “users_star_projects” does not exist at character 323 STATEMENT: SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = ‘”users_star_projects”‘::regclass AND […]

为什么gitlab 6切换回独角兽?

Gitlab 6.0于昨天发布。 我很想知道为什么他们从Puma转向Unicorn 。 5之前的版本使用Unicorn 。 我觉得切换到Puma是为了更好。 这个开关有技术原因吗?

GitLab电子邮件设置:通过另一个邮件服务器发送

默认情况下,gitlab在gitlab.yml中有下一个配置: email: from: notify@gitlabhq.com host: gitlabhq.com 但是,我需要指定其他变量(主机,端口,用户,密码等)来使用其他邮件服务器。 我是怎么做到的?

Gitlab omnibus包安装ruby&git吗?

我正在尝试使用omn​​ibus包为Debian 7安装Gitlab.Gitlab正在运行,但速度非常慢。 尾部日志告诉我,独角兽进程超时是因为获取资产请求超时。 我在某处读到了我必须执行bundle exec rake assets:precompile RAILS_ENV=production但找不到bundle命令。 此外,找不到git命令。 omn​​ibus包安装ruby和git还是我应该手动完成? 我在usr/bin或其他地方找不到ruby或git 。

使用apache2(或nginx + apache2)配置gitlab

我已经在带有LAMP的Ubuntu14.04服务器中安装了GitLab。 我知道GitLab已经设计用于基于nginx的服务器,但是这个服务器的网络应用程序已经安装在apache2上,我需要它们。 我尝试按照本教程安装GitLab。 我使用了gitlab_7.7.1-omnibus.5.4.1.ci-1_amd64.deb包。 我最终遇到的问题与一些评论的人有关(错误502)。 我尝试通过评论关注此链接 ,看看我是否能找到任何相关信息,但它似乎与我的案例无关。 我一直在寻找通过apache2配置nginx的替代方法,但我找不到任何东西。 这是我在/var/log/gitlab/nginx/gitlab_error.log找到的日志条目: 2015/01/30 19:32:27 [error] 995#0: *3 connect() to unix:/var/opt/gitlab /gitlab-rails/sockets/gitlab.socket failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: mygitlab.com, request: “GET / HTTP/1.1”, upstream: “http://unix:/var/opt/gitlab/gitlab- rails/sockets/gitlab.socket:/”, host: “localhost:8080” 似乎上游套接字配置存在问题。 gitlab-ctl status输出: run: logrotate: (pid 4465) 1488s; run: log: (pid 826) 5087s run: nginx: (pid […]

是否可以从Heroku的私有gitlab主机安装gem

我有一个私有的gitlab主机,它托管私有代码和项目,我在heroku中托管我的应用程序,在那个heroku应用程序中,我们使用Gemfile来管理heroku app的依赖,其中一个依赖来自私有gitlab主机。 所以我的Gemfile是这样的: gem ‘my_greate_gem’, ‘0.0.1’, :git => “http://myprivate_gitlab_host/private_gems/my_great_gem.git” 似乎没有任何关于使用私有gitlab主机在Heroku中托管gem的教程,但我真的不想使用gemfury。 这有什么可能的解决方案吗?

推送Gitlab仓库时ssh连接失败

我已经安装了GitLab 。 假设我在/home/myuser/gitlab安装了它。 我创建了一个新项目 有人告诉我创建一个repo“test”我放入/home/myuser/gitlab/test 我在/home/myuser/.ssh添加了一些SSH密钥 然后我在/home/myuser/gitlab/test初始化了一个Git repo。 按照说明,我添加了一个远程git@localhost:root/testing.git但是当我尝试推送时,我收到以下错误消息: $ git push -u origin master ssh: connect to host localhost port 22: Connection refused fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 我在OS X中安装了GitLab,我在/home/myhome/.ssh有其他SSH密钥,我在/home/myhome/.ssh设置了用户电子邮件和名称,(并在全局范围内设置测试)并从/home/myuser/gitlab启动服务器。 有没有人知道这个错误来自哪里? 如果我运行ssh git@localhost ,我会得到 /home/myhome/.ssh/config line 4: garbage at […]