启动日志gitlab-rake gitlab:check SANITIZE=true --trace问题处理

微笑、不失礼 提交于 2020-01-15 02:09:38

[root@localhost bin]# ./gitlab-ctl restart
[root@localhost bin]# gitlab-ctl stop

ok: run: alertmanager: (pid 26708) 0s
timeout: run: gitaly: (pid 24449) 2133s, got TERM
timeout: run: gitlab-monitor: (pid 22940) 6065s, got TERM
ok: run: gitlab-workhorse: (pid 27687) 1s
ok: run: logrotate: (pid 27716) 0s
ok: run: nginx: (pid 27734) 0s
ok: run: node-exporter: (pid 27745) 0s
ok: run: postgres-exporter: (pid 27769) 0s
ok: run: postgresql: (pid 27798) 0s
ok: run: prometheus: (pid 27829) 0s
ok: run: redis: (pid 27903) 0s
ok: run: redis-exporter: (pid 27936) 0s
ok: run: sidekiq: (pid 27967) 0s
timeout: run: unicorn: (pid 23446) 6093s
您在 /var/spool/mail/root 中有新邮件


ok: down: alertmanager: 0s, normally up
timeout: run: gitaly: (pid 24449) 2544s, want down, got TERM
timeout: run: gitlab-monitor: (pid 22940) 6476s, want down, got TERM
ok: down: gitlab-workhorse: 1s, normally up
ok: down: logrotate: 0s, normally up
ok: down: nginx: 0s, normally up
ok: down: node-exporter: 1s, normally up
ok: down: postgres-exporter: 0s, normally up
ok: down: postgresql: 1s, normally up
ok: down: prometheus: 1s, normally up
ok: down: redis: 0s, normally up
ok: down: redis-exporter: 1s, normally up
timeout: run: sidekiq: (pid 27967) 440s, want down, got TERM
timeout: run: unicorn: (pid 23446) 6534s

[root@localhost home]# gitlab-rake gitlab:check SANITIZE=true --trace
[root@localhost home]# find / -name gitaly.pid

** Invoke gitlab:check (first_time)
** Invoke gitlab:gitlab_shell:check (first_time)
** Invoke gitlab_environment (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab_environment
** Execute gitlab:gitlab_shell:check
Checking GitLab Shell ...

GitLab Shell version >= 7.1.4 ? ... OK (7.1.4)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:root, or git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ... 
5/1 ... ok
5/3 ... ok
32/5 ... ok
4/7 ... ok
4/8 ... ok
10/16 ... ok
10/17 ... ok
25/22 ... repository is empty
7/23 ... ok
4/24 ... ok
4/25 ... ok
29/27 ... ok
32/30 ... ok
10/39 ... ok
40/40 ... ok
29/41 ... ok
10/42 ... ok
32/45 ... ok
32/46 ... ok
51/47 ... ok
52/48 ... ok
52/49 ... ok
52/50 ... ok
46/51 ... ok
46/52 ... ok
46/53 ... ok
40/55 ... repository is empty
5/56 ... ok
55/58 ... ok
5/60 ... ok
40/61 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: FAILED: Failed to connect to internal API
gitlab-shell self-check failed
  Try fixing it:
  Make sure GitLab is running;
  Check the gitlab-shell configuration file:
  sudo -u git -H editor /opt/gitlab/embedded/service/gitlab-shell/config.yml
  Please fix the error above and rerun the checks.

Checking GitLab Shell ... Finished

** Invoke gitlab:sidekiq:check (first_time)
** Invoke gitlab_environment 
** Execute gitlab:sidekiq:check
Checking Sidekiq ...

Running? ... no
  Try fixing it:
  sudo -u git -H RAILS_ENV=production bin/background_jobs start
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  see log/sidekiq.log for possible errors
  Please fix the error above and rerun the checks.

Checking Sidekiq ... Finished

** Invoke gitlab:incoming_email:check (first_time)
** Invoke gitlab_environment 
** Execute gitlab:incoming_email:check
Reply by email is disabled in config/gitlab.yml
** Invoke gitlab:ldap:check (first_time)
** Invoke gitlab_environment 
** Execute gitlab:ldap:check
Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

** Invoke gitlab:app:check (first_time)
** Invoke gitlab_environment 
** Execute gitlab:app:check
Checking GitLab ...

Git configured correctly? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
Projects have namespace: ... 
5/1 ... yes
5/3 ... yes
32/5 ... yes
4/7 ... yes
4/8 ... yes
10/16 ... yes
10/17 ... yes
25/22 ... yes
7/23 ... yes
4/24 ... yes
4/25 ... yes
29/27 ... yes
32/30 ... yes
10/39 ... yes
40/40 ... yes
29/41 ... yes
10/42 ... yes
32/45 ... yes
32/46 ... yes
51/47 ... yes
52/48 ... yes
52/49 ... yes
52/50 ... yes
46/51 ... yes
46/52 ... yes
46/53 ... yes
40/55 ... yes
5/56 ... yes
55/58 ... yes
5/60 ... yes
40/61 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.4.4)
Git version >= 2.9.5 ? ... yes (2.17.1)
Git user has default SSH configuration? ... yes
Active users: ... 41

Checking GitLab ... Finished

** Execute gitlab:check
您在 /var/spool/mail/root 中有新邮件

参考:https://www.cnblogs.com/shikyoh/p/10688340.html
原因:清理磁盘的时候删除了/var/log/下面的文件,这个目录gitlab有使用,需要重新配置,把这些文件恢复,才可以重新启动。

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!