Giter Club home page Giter Club logo

gitlab-ce-zh's Issues

/var/lib/docker/containers/ 的镜像中 有一个 json.log结尾的日志文件 日积月累超级大

root@iZ2ze9rt5c8x00a69z163rZ:/var/lib/docker/containers/5e7e2dc355757275fb54f345a42672757fe23dcf54e456621c0573feb9213244# ls
5e7e2dc355757275fb54f345a42672757fe23dcf54e456621c0573feb9213244-json.log  checkpoints  config.v2.json  hostconfig.json  hostname  hosts  resolv.conf  resolv.conf.hash  shm
root@iZ2ze9rt5c8x00a69z163rZ:/var/lib/docker/containers/5e7e2dc355757275fb54f345a42672757fe23dcf54e456621c0573feb9213244# 

这种日志不自动清理?
有没有可能放在 volume 中,而不是 系统目录下。

10.0.3 版本页面显示不全

控制台报错

Uncaught TypeError: w(...) is not a function
    at Object../behaviors/index.js (gl_emoji.js:4)
    at r (bootstrap 4ef9fae7bd6e77b9818c:54)
    at Object.<anonymous> (main.b059a010247315b51313.bundle.js:24627)
    at Object../main.js (main.b059a010247315b51313.bundle.js:25134)
    at r (bootstrap 4ef9fae7bd6e77b9818c:54)
    at window.webpackJsonp (bootstrap 4ef9fae7bd6e77b9818c:25)
    at main.b059a010247315b51313.bundle.js:1

是 js 文件打包有问题吗?

hi,怎么升级gitlab版本

RT,之前我是用 Docker Compose 安装的10.4.6版本。现在想升级到10.6.1版本,怎么升级呢?我担心数据会丢失,所以不敢用官方提供的升级办法。请问有好办法吗?

js汉化未生效

版本8.14
app/assets/javascripts/milestone_select.js
源码汉化是有替换成功,但是
/opt/gitlab/embedded/service/gitlab-rails/public/assets
目录下打包后的js文件还是未汉化的代码

centos7 宿主机等待了很久 都是502

centos7 宿主机等待了很久 都是502 ,使用官方英文版镜像无问题可正常启动。

摘取的错误日志:
gitlab_1 | ==> /var/log/gitlab/unicorn/unicorn_stdout.log <==
gitlab_1 | bundler: failed to load command: unicorn (/opt/gitlab/embedded/bin/unicorn)
gitlab_1 |
gitlab_1 | ==> /var/log/gitlab/unicorn/unicorn_stderr.log <==
gitlab_1 | SyntaxError: /opt/gitlab/embedded/service/gitlab-rails/app/models/deploy_keys_project.rb:12: invalid multibyte char (UTF-8)
gitlab_1 | /opt/gitlab/embedded/service/gitlab-rails/app/models/deploy_keys_project.rb:12: invalid multibyte char (UTF-8)
gitlab_1 | /opt/gitlab/embedded/service/gitlab-rails/app/models/deploy_keys_project.rb:12: invalid multibyte char (UTF-8)

求教, 如何加入备案号和 流量统计代码?如何实现 上次登录IP正常?

  • 如何加入备案号

  • 如何加入流量统计代码

  • 我的gitlab在docker里面,我用nginx 在主机上又反向代理了出去,因为服务器上有多个 应用!但是所有的 用户 访问的IP,注册者的IP 都是 192.168.0.1 , 这个怎么处理?

下面是我的nginx的 配置


server
{
    #listen 80;
    listen 443;
    server_name gitclub.cn;
    ssl on;
    ssl_certificate   /mnt/disk1/gitclub/config/ssl/gitclub.cn.pem;
    ssl_certificate_key  /mnt/disk1/gitclub/config/ssl/gitclub.cn.key;
    ssl_session_timeout 5m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
    ssl_prefer_server_ciphers on;
    location / {
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_set_header Host $http_host;
	proxy_set_header X-Forward-For $remote_addr;
        proxy_pass https://127.0.0.1:8443;
       client_max_body_size 1024m;
    }
    access_log  /var/log/nginx/gitlab.log;
   # error_page 497  https://$host$uri?$args;
}
server {  
    listen  80;  
    server_name gitclub.cn;  
    
    location / {  
                #index.html放在虚拟主机监听的根目录下  
        root /mnt/disk1/gitclub/httproot/;  
    }  
        #将404的页面重定向到https的首页  
    error_page  404 https://gitclub.cn/;
}  

manifest for twang2218/gitlab-ce-zh:10.0.3 not found

使用docker-compose.yml
docker-compose up就出现下面的错误:
Creating network "gitlab_default" with the default driver
Creating volume "gitlab_data" with default driver
Creating volume "gitlab_config" with default driver
Creating volume "gitlab_logs" with default driver
Pulling gitlab (twang2218/gitlab-ce-zh:10.0.3)...
ERROR: manifest for twang2218/gitlab-ce-zh:10.0.3 not found

windows10下挂载本地目录的时候,无法启动

GITLAB_VERSION=v9.0.6
执行docker run命令
docker run --detach
--hostname localhost
--publish 8443:443 --publish 10020:80 --publish 2222:22
--name gitlab
--restart always
--volume D:/work/git/gitlab/config:/etc/gitlab
--volume D:/work/git/gitlab/logs:/var/log/gitlab
--volume D:/work/git/gitlab/data:/var/opt/gitlab
twang2218/gitlab-ce-zh:latest
后无法启动,查看日志
Failed asserting that ownership of "/var/opt/gitlab/git-data" was git
---- Begin output of set -x && [ "$(stat --printf='%U' $(readlink -f /var/opt/gitlab/git-data))" = 'git' ] ----
STDOUT:
STDERR: + readlink -f /var/opt/gitlab/git-data

  • stat --printf=%U /var/opt/gitlab/git-data
  • [ root = git ]

应该是权限问题

但是如果不挂载本地目录的话,可以正常启动,不确定是什么原因,请指教,谢谢!

启动成功,但是日志一直报错

==> /var/log/gitlab/postgresql/current <==
2017-06-27_08:40:26.18601 ERROR: column projects.mirror does not exist at character 57
2017-06-27_08:40:26.18605 STATEMENT: SELECT ci_builds.runner_id, ci_runners.is_shared, projects.mirror, projects.pending_delete, projects.mirror_trigger_builds, COUNT(*) AS count FROM ci_builds JOIN ci_runners ON ci_runners.id = ci_builds.runner_id JOIN projects ON projects.id = ci_builds.project_id WHERE ci_builds.type = 'Ci::Build' AND ci_builds.status = 'running' GROUP BY ci_builds.runner_id, projects.mirror, projects.pending_delete, projects.mirror_trigger_builds, ci_runners.is_shared

当在修改了容器里面的gitlab配置之后,如何重启服务

你好有几个疑问问一下您。
当在修改了容器里面的gitlab配置之后,如何重启服务?
docker restart <容器id> 修改的东西没有了,可以理解为本地卷宗里面的东西覆盖了容器里面的修改;
如何在重启的时候不丢东西呢?
但是在修改了卷宗里面的配置之后,重启之后,卷宗里面的修改也没有了,但是卷宗里面的数据没有丢为什么呢?

gitlab Forbidden了怎么解决呢?

image
自从搭建起来之后,就没有碰过,docker服务正常,gitlab重启后无效,查看日志,显示gitlab-workhorse和nginx报错403,页面上显示Forbidden,因为是突然出现这样的问题的。

gitlab-keys check-permissions

Error executing action `run` on resource 'execute[/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions]'

启动脚本:

docker run -d \
    --hostname gitlab.shuidihuzhu.com \
    -p 80:80 \
    -p 443:443 \
    -p 7000:22\
    --name $1 \
    --restart unless-stopped \
    -v gitlab-config:/etc/gitlab \
    -v gitlab-logs:/var/log/gitlab \
    -v gitlab-data:/var/opt/gitlab \
    --network gitlab-net \
    chanyying/shuidi-gitlab:v1

用这个脚本重新构建的没事,但是我需要把旧机器的数据volumes拷贝到新的机器的/var/lib/docker/volumes下边。结果就出现了上述错误了。

解决办法:

docker exec gitlab update-permissions
docker restart gitlab

汉化版取消了代码提交必须有人review的机制(approval)?

对比了一下英文版(gitlab.com)以及中文版的镜像,
其中gitlab.com上面有一个approval的机制, 必须要有人审核代码, 才能通过MR,
不知这个机制是只在gitlab.com上提供还是英文社区版也有的功能?
如果是后者, 我想知道为什么中文社区办没有这个功能 0 0

How to upgrade to 9.5.5?

首先感谢这个项目,我之前部署的 9.3.5 版本,现在想升级到 9.5.5 ,请问该怎么操作?

10.5.1,当时运行环境是mac,现在切换到centos7.4,起不来了

启动 docker-compose.yml

version: '2'
services:
    gitlab:
      image: 'twang2218/gitlab-ce-zh:10.5.1'
      restart: unless-stopped
      # hostname: 'gitlab.example.com'
      environment:
        TZ: 'Asia/Shanghai'
        GITLAB_OMNIBUS_CONFIG: |
          # external_url 'http://gitlab.example.com'
          gitlab_rails['time_zone'] = 'Asia/Shanghai'
          # 需要配置到 gitlab.rb 中的配置可以在这里配置,每个配置一行,注意缩进。
          # 比如下面的电子邮件的配置:
          # gitlab_rails['smtp_enable'] = true
          # gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
          # gitlab_rails['smtp_port'] = 465
          # gitlab_rails['smtp_user_name'] = "[email protected]"
          # gitlab_rails['smtp_password'] = "password"
          # gitlab_rails['smtp_authentication'] = "login"
          # gitlab_rails['smtp_enable_starttls_auto'] = true
          # gitlab_rails['smtp_tls'] = true
          # gitlab_rails['gitlab_email_from'] = '[email protected]'
      ports:
        - '3000:80'
        # - '443:443'
        # - '22:22'
      volumes:
        - ./config:/etc/gitlab
        - ./data:/var/opt/gitlab
        - ./logs:/var/log/gitlab
volumes:
    config:
    data:
    logs:

现在安装都 centos7.4,把卷数据也考上去了,一直在启动,察看 docker logs containerid

error: could not open /var/opt/gitlab/.ssh/authorized_keys: Permission denied @ rb_sysopen - /var/opt/gitlab/.ssh/authorized_keys

不能添加项目成员

项目设置不添加成员,选择开发人员,不搜人员,进行添加:

chrome console 有如下错误:

gl_emoji.js:4 Uncaught TypeError: w(...) is not a function
at Object../behaviors/index.js (gl_emoji.js:4)
at r (bootstrap 4ef9fae7bd6e77b9818c:54)
at Object. (main.b059a010247315b51313.bundle.js:24627)
at Object../main.js (main.b059a010247315b51313.bundle.js:25134)
at r (bootstrap 4ef9fae7bd6e77b9818c:54)
at window.webpackJsonp (bootstrap 4ef9fae7bd6e77b9818c:25)
at main.b059a010247315b51313.bundle.js:1

当点击项目页面的blame按钮时,server 500

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/-/metrics" for 127.0.0.1 at 2017-08-17 07:48:59 +0000
Processing by MetricsController#index as HTML
Filter chain halted as :validate_prometheus_metrics rendered or redirected
Completed 404 Not Found in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
Started GET "/root/hello-ci-cd/blame/master/Dockerfile" for 211.103.184.74 at 2017-08-17 07:48:59 +0000
Processing by Projects::BlameController#show as HTML
Parameters: {"namespace_id"=>"root", "project_id"=>"hello-ci-cd", "id"=>"master/Dockerfile"}
Completed 500 Internal Server Error in 39ms (ActiveRecord: 1.5ms)

ActionView::Template::Error (divided by 0):
17: - @blame_groups.each do |blame_group|
18: %tr
19: - commit = blame_group[:commit]
20: %td.blame-commit{ class: age_map_class(commit.committed_date, project_duration) }
21: .commit
22: = author_avatar(commit, size: 36)
23: .commit-row-title
app/helpers/blame_helper.rb:18:in /' app/helpers/blame_helper.rb:18:in age_map_class'
app/views/projects/blame/show.html.haml:20:in block in _app_views_projects_blame_show_html_haml___3590071031727739669_70278570072800' app/views/projects/blame/show.html.haml:17:in each'
app/views/projects/blame/show.html.haml:17:in _app_views_projects_blame_show_html_haml___3590071031727739669_70278570072800' lib/gitlab/i18n.rb:45:in with_locale'
lib/gitlab/i18n.rb:51:in with_user_locale' app/controllers/application_controller.rb:294:in set_locale'
lib/gitlab/performance_bar/peek_performance_bar_with_rack_body.rb:16:in call' lib/gitlab/middleware/multipart.rb:93:in call'
lib/gitlab/request_profiler/middleware.rb:14:in call' lib/gitlab/middleware/go.rb:16:in call'
lib/gitlab/etag_caching/middleware.rb:11:in call' lib/gitlab/request_context.rb:18:in call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'

在gitlab中添加ssh之后push代码的时候会要求密码

gitlab-ce-zh版本:9.1.3
系统:ubuntu16.04
git版本:2.12.0.windows.1
docker版本:1.12.6, build 78d1802
部署命令:docker run --hostname 192.168.9.112 -d -p 80:80 -p 443:443 twang2218/gitlab-ce-zh:9.1.3
是否 能重现:是
测试人数:2
生成ssh时的截图:
image
http连接是否能成功:是
原因:
[在gitlab中添加ssh之后push代码的时候会要求密码]
[前提是我并没有设置ssh密码,但是ssh连接时也会重复要求密码]
连接时候的截图:
image
添加ssh的截图:
image

执行docker run -d -p 3000:80 twang2218/gitlab-ce-zh:9.0.5出错

Recipe: gitlab::database_migrations

  • bash[migrate gitlab-rails database] action run

    ================================================================================
    Error executing action run on resource 'bash[migrate gitlab-rails database]'

    Mixlib::ShellOut::ShellCommandFailed

    Expected process to exit with [0], but received '137'
    ---- Begin output of "bash" "/tmp/chef-script20170421-33-kpsytk" ----
    STDOUT:
    STDERR:
    ---- End output of "bash" "/tmp/chef-script20170421-33-kpsytk" ----
    Ran "bash" "/tmp/chef-script20170421-33-kpsytk" returned 137

    Resource Declaration:

    In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/database_migrations.rb

    51: bash "migrate gitlab-rails database" do
    52: code <<-EOH
    53: set -e
    54: log_file="#{node['gitlab']['gitlab-rails']['log_directory']}/gitlab-rails-db-migrate-$(date +%Y-%m-%d-%H-%M-%S).log"
    55: umask 077
    56: /opt/gitlab/bin/gitlab-rake gitlab:db:configure 2>& 1 | tee ${log_file}
    57: STATUS=${PIPESTATUS[0]}
    58: echo $STATUS > #{db_migrate_status_file}
    59: exit $STATUS
    60: EOH
    61: environment env_variables unless env_variables.empty?
    62: notifies :run, 'execute[enable pg_trgm extension]', :before unless omnibus_helper.not_listening?("postgresql") || !node['gitlab']['postgresql']['enable']
    63: notifies :run, "execute[clear the gitlab-rails cache]", :immediately unless omnibus_helper.not_listening?("redis") || !node['gitlab']['gitlab-rails']['rake_cache_clear']
    64: dependent_services.each do |svc|
    65: notifies :restart, svc, :immediately
    66: end
    67: not_if "(test -f #{db_migrate_status_file}) && (cat #{db_migrate_status_file} | grep -Fx 0)"
    68: only_if { node['gitlab']['gitlab-rails']['auto_migrate'] }
    69: end

    Compiled Resource:

    Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/database_migrations.rb:51:in `from_file'

    bash("migrate gitlab-rails database") do
    action [:run]
    updated true
    retries 0
    retry_delay 2
    default_guard_interpreter :default
    command "migrate gitlab-rails database"
    backup 5
    returns 0
    code " set -e\n log_file="/var/log/gitlab/gitlab-rails/gitlab-rails-db-migrate-$(date +%Y-%m-%d-%H-%M-%S).log"\n umask 077\n /opt/gitlab/bin/gitlab-rake gitlab:db:configure 2>& 1 | tee ${log_file}\n STATUS=${PIPESTATUS[0]}\n echo $STATUS > /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-873248b1f0d3a7a5535771a3a1635803-a6b9899\n exit $STATUS\n"
    interpreter "bash"
    declared_type :bash
    cookbook_name "gitlab"
    recipe_name "database_migrations"
    not_if "(test -f /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-873248b1f0d3a7a5535771a3a1635803-a6b9899) && (cat /var/opt/gitlab/gitlab-rails/upgrade-status/db-migrate-873248b1f0d3a7a5535771a3a1635803-a6b9899 | grep -Fx 0)"
    only_if { #code block }
    end

    Platform:

    x86_64-linux

Recipe: gitlab::gitlab-rails

  • execute[clear the gitlab-rails cache] action run

    ================================================================================
    Error executing action run on resource 'execute[clear the gitlab-rails cache]'

    Mixlib::ShellOut::ShellCommandFailed

    Expected process to exit with [0], but received ''
    ---- Begin output of /opt/gitlab/bin/gitlab-rake cache:clear ----
    STDOUT:
    STDERR:
    ---- End output of /opt/gitlab/bin/gitlab-rake cache:clear ----
    Ran /opt/gitlab/bin/gitlab-rake cache:clear returned

    Resource Declaration:

    In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb

    357: execute "clear the gitlab-rails cache" do
    358: command "/opt/gitlab/bin/gitlab-rake cache:clear"
    359: action :nothing
    360: end
    361:

    Compiled Resource:

    Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb:357:in `from_file'

    execute("clear the gitlab-rails cache") do
    action [:nothing]
    retries 0
    retry_delay 2
    default_guard_interpreter :execute
    command "/opt/gitlab/bin/gitlab-rake cache:clear"
    backup 5
    returns 0
    declared_type :execute
    cookbook_name "gitlab"
    recipe_name "gitlab-rails"
    end

    Platform:

    x86_64-linux

Recipe: gitlab::redis

  • ruby_block[reload redis svlogd configuration] action create
    • execute the ruby block reload redis svlogd configuration
      Recipe: gitlab::postgresql
  • ruby_block[reload postgresql svlogd configuration] action create
    • execute the ruby block reload postgresql svlogd configuration

Running handlers:
Running handlers complete
Chef Client failed. 124 resources updated in 01 minutes 10 seconds

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.