Gitlab和Harbor报错

  • Choerodon平台版本: 0.10.0

  • 遇到问题的执行步骤:
    按照一键部署方式部署,可以正常访问http://c7n.example.choerodon.io/#/

  • 文档地址:

  • 环境信息(如:节点信息):

  • 报错日志:

==> /var/log/gitlab/nginx/gitlab_access.log <==
10.233.64.1 - - [21/Feb/2019:11:43:02 +0800] “GET /help HTTP/1.1” 502 2916 “” “kube-probe/1.9”

==> /var/log/gitlab/nginx/gitlab_error.log <==
2019/02/21 11:43:02 [error] 557#0: *35 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 10.233.64.1, server: gitlab.example.choerodon.io, request: “GET /help HTTP/1.1”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/help”, host: “10.233.64.8:80”

==> /var/log/gitlab/nginx/gitlab_access.log <==
10.233.64.1 - - [21/Feb/2019:11:43:12 +0800] “GET /help HTTP/1.1” 502 2916 “” “kube-probe/1.9”

==> /var/log/gitlab/nginx/gitlab_error.log <==
2019/02/21 11:43:12 [error] 558#0: *37 connect() to unix:/var/opt/gitlab/gitlab-workhorse/socket failed (111: Connection refused) while connecting to upstream, client: 10.233.64.1, server: gitlab.example.choerodon.io, request: “GET /help HTTP/1.1”, upstream: “http://unix:/var/opt/gitlab/gitlab-workhorse/socket:/help”, host: “10.233.64.8:80”

  1. feign.FeignException: status 500 reading GitlabServiceClient#queryGroupByName(String,Integer); content: {“failed”:true,“code”:“Service Temporarily Unavailable”,“message”:“Service Temporarily Unavailable”}
  • 原因分析:

  • 疑问:

  1. 访问registry.example.choerodon.io会报503错误,已经试过重启过harbor,不行,重新install也不行
  2. 创建应用模板,输入信息后点创建按钮,报错

还有其他日志吗,这个日志只是在等待服务正常启动

kubectl get po -n c7n-system
NAME READY STATUS RESTARTS AGE
agile-service-769f844466-dkmmx 1/1 Running 0 6d
api-gateway-5794765f44-5d6nm 1/1 Running 0 6d
asgard-service-65879b99d6-sd8ll 1/1 Running 0 6d
c7n-mysql-64746b49cf-m729n 1/1 Running 0 6d
c7n-redis-5cf967b4b7-rw99m 1/1 Running 0 6d
chartmuseum-chartmuseum-864cb9cc5d-fvqdz 1/1 Running 0 6d
choerodon-front-57c87d7d9b-97x8x 1/1 Running 0 6d
config-server-6f788b6cd6-c25fm 1/1 Running 0 6d
devops-service-5fbc549864-zp98h 1/1 Running 0 6d
dnsmasq-5f5777c999-77ht9 1/1 Running 5 132d
file-service-558b8686c4-gfpnc 1/1 Running 0 6d
gateway-helper-76d679cb56-wsghf 1/1 Running 0 6d
gitlab-85596c9b4f-jpv7j 0/1 Running 0 6d
gitlab-mysql-7f9df57f66-xdgft 1/1 Running 0 6d
gitlab-redis-6c6cd6c7f-tv8ww 1/1 Running 0 6d
gitlab-service-69696cc586-rzrhj 1/1 Running 0 6d
harbor-harbor-adminserver-848698c4cb-tlzkg 1/1 Running 3 6d
harbor-harbor-database-0 1/1 Running 0 6d
harbor-harbor-jobservice-8789bb4b-rcfv9 0/1 CrashLoopBackOff 1454 6d
harbor-harbor-registry-786bc87b47-2xp85 1/1 Running 0 6d
harbor-harbor-ui-59df9446f8-rvbxg 0/1 CrashLoopBackOff 1904 6d
harbor-redis-master-0 0/1 CrashLoopBackOff 1878 6d
iam-service-595b85f6b9-2m4kg 1/1 Running 0 6d
kafka-0 1/1 Running 0 6d
manager-service-696694d76c-p978t 1/1 Running 0 6d
minio-c4c85b847-zddw6 1/1 Running 0 6d
nfs-client-provisioner-fd656b8b8-rsrks 1/1 Running 7 133d
notify-service-54db7976b4-vt5fl 1/1 Running 0 6d
oauth-server-844cc8bd79-qwhv2 1/1 Running 0 6d
register-server-df64c645c-5hkfw 1/1 Running 0 6d
test-manager-service-788778bfc6-qhwqh 1/1 Running 0 6d
wiki-service-d76c4c666-77sgz 1/1 Running 0 6d
xwiki-67856f8786-f44qp 1/1 Running 0 6d
zookeeper-0 1/1 Running 0 6d

开了6天,还没ready,这个就是问题了吧?

没有其他日志了,之前你们同事叫我看日志,能看到最后的日志就这些了

kubectl logs gitlab-85596c9b4f-jpv7j -n c7n-system >> gitlab.log

把日志文件贴出来吧

经排查是自行搭建的nfs服务器参数设置有问题导致的哈,已为你进行修正。