当我们推入存储库时,我们希望运行一个管道。然而,当我们推的时候,管道已经停止自动启动。
此外,当我们尝试手动启动管道时,并不是所有的标记和分支都显示在标签和分支的下拉列表中供选择。在Gitlab中浏览存储库时,我们可以看到分支和推送提交。
最后,在/dashboard/projects页面中,项目的‘最后更新’日期已经过时,上面写着“昨天”而不是"10分钟前“(这就是在项目中查看存储库时显示的内容)。
我们最近迁移了服务器,所以这里会出现一些迁移问题。有没有人有任何想法来解决这个问题(例如,哪些子系统不能正常工作/配置以产生这种行为)?
Gitlab版本: 9.4.2
使用:https://hub.docker.com/r/gitlab/gitlab-ce/与Docker一起运行
更新
在推到存储库时,我跟踪了日志,接下来是一段时间的日志(从push的SSH连接开始)。prometheus周围的404可能很有趣,但我不确定这是意外的(我们没有使用它):
==> /var/log/gitlab/sshd/current <==
2017-08-01_17:05:16.86559 Accepted publickey for git from (removed) port 57680 ssh2: RSA SHA256:(removed)
==> /var/log/gitlab/gitlab-rails/production.log <==
Started POST "/api/v4/internal/allowed" for 127.0.0.1 at 2017-08-01 17:05:17 +0000
==> /var/log/gitlab/gitlab-shell/gitlab-shell.log <==
I, [2017-08-01T17:05:17.088866 #2286] INFO -- : POST http://127.0.0.1:8080/api/v4/internal/allowed 0.01170
I, [2017-08-01T17:05:17.089030 #2286] INFO -- : gitlab-shell: executing git command <git-receive-pack /var/opt/gitlab/git-data/repositories/products/preside-ext-ems.git> for user with key key-2.
==> /var/log/gitlab/sshd/current <==
2017-08-01_17:05:17.20480 Received disconnect from x.x.x.x port 57680:11: disconnected by user
2017-08-01_17:05:17.20483 Disconnected from x.x.x.x port 57680
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/-/metrics" for 127.0.0.1 at 2017-08-01 17:05:18 +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 POST "/api/v4/jobs/request" for 172.17.0.1 at 2017-08-01 17:05:18 +0000
==> /var/log/gitlab/gitlab-workhorse/current <==
2017-08-01_17:05:18.16504 gitlab.mycompany.com @ - - [2017-08-01 17:05:18.158505651 +0000 UTC] "POST /api/v4/jobs/request HTTP/1.1" 204 0 "" "gitlab-ci-multi-runner 9.4.1 (9-4-stable; go1.8.3; linux/amd64)" 0.006484
==> /var/log/gitlab/nginx/gitlab_access.log <==
172.17.0.1 - - [01/Aug/2017:17:05:18 +0000] "POST /api/v4/jobs/request HTTP/1.1" 204 0 "-" "gitlab-ci-multi-runner 9.4.1 (9-4-stable; go1.8.3; linux/amd64)"
==> /var/log/gitlab/gitlab-rails/production.log <==
Started POST "/api/v4/jobs/request" for 172.17.0.1 at 2017-08-01 17:05:23 +0000
==> /var/log/gitlab/gitlab-workhorse/current <==
2017-08-01_17:05:23.16534 gitlab.mycompany.com @ - - [2017-08-01 17:05:23.159064793 +0000 UTC] "POST /api/v4/jobs/request HTTP/1.1" 204 0 "" "gitlab-ci-multi-runner 9.4.1 (9-4-stable; go1.8.3; linux/amd64)" 0.006235
==> /var/log/gitlab/nginx/gitlab_access.log <==
172.17.0.1 - - [01/Aug/2017:17:05:23 +0000] "POST /api/v4/jobs/request HTTP/1.1" 204 0 "-" "gitlab-ci-multi-runner 9.4.1 (9-4-stable; go1.8.3; linux/amd64)"发布于 2017-08-01 22:34:01
不完全是的答案--但我已经删除了服务器,从头开始重建。手动重新创建每个项目并导入每个项目的存储库。
皇家皮塔,,但一切都如预期的工作。
我只能猜测,要么是在主机服务器上设置了导致问题的东西(我在主机上完成了一个干净的安装,然后重新启动),要么是简单地将所有配置和数据脏从旧服务器复制到新服务器,从而导致问题(似乎不太可能)。
恐怕帮不上什么忙
https://stackoverflow.com/questions/45441117
复制相似问题