sudo /opt/gitlab/embedded/bin/bundle exec /opt/gitlab/embedded/bin/rake ....失败

sudo /opt/gitlab/embedded/bin/bundle exec /opt/gitlab/embedded/bin/rake .... Fails

我已经用 LDAP 配置了 gitlab.rb,但在登录失败后,我想用以下方法测试 LDAP:

sudo /opt/gitlab/embedded/bin/bundle exec /opt/gitlab/embedded/bin/rake gitlab:ldap:check RAILS_ENV=production

当我 运行 时,出现以下错误:

rake aborted!
Errno::ENOENT: No such file or directory - No file specified as Settingslogic source
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:173:in `new'
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:173:in `block in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:172:in `each'
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/1_settings.rb:172:in `<top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in `<top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => gitlab:check => gitlab:gitlab_shell:check => environment
(See full trace by running task with --trace)

我是 Gitlab 和 rake 的新手,我试图搜索问题,但发现自己陷入了死胡同。 我不知道问题出在哪里,并且担心在实验时我会破坏其他任何东西。 有没有人认识到这个问题,谁能帮助我找到问题所在并希望找到解决方案?

非常感谢。

安装目录:

[root@centos7template ~]# ll /var/opt/gitlab
total 8
drwx------ 2 git               root         6 Nov  1 08:45 backups
-rw------- 1 root              root        38 Nov  1 08:47 bootstrapped
drwx------ 2 git               root        24 Nov  3 12:28 gitaly
drwx------ 3 git               root        25 Nov  1 08:45 git-data
drwxr-xr-x 3 git               root        19 Nov  1 08:45 gitlab-ci
drwxr-xr-x 2 git               root        31 Nov  3 10:39 gitlab-monitor
drwxr-xr-x 9 git               root       150 Nov  3 10:39 gitlab-rails
drwx------ 2 git               root        23 Nov  3 10:39 gitlab-shell
drwxr-x--- 2 git               gitlab-www  51 Nov  3 12:29 gitlab-workhorse
drwx------ 3 root              root        68 Nov  3 13:39 logrotate
drwxr-x--- 9 root              gitlab-www 154 Nov  3 12:29 nginx
drwxr-xr-x 3 root              root        31 Nov  1 08:47 node-exporter
drwx------ 2 gitlab-psql       root        25 Nov  3 10:39 postgres-exporter
drwxr-xr-x 3 gitlab-psql       root        77 Nov  3 12:29 postgresql
drwxr-x--- 3 gitlab-prometheus root        38 Nov  3 10:39 prometheus
drwxr-x--- 2 gitlab-redis      git         57 Nov  3 12:29 redis
-rw-r--r-- 1 root              root        40 Nov  1 08:45 trusted-certs-directory-hash

安装的版本:

gitaly  v0.43.0
gitlab-config-template  10.1.0
gitlab-cookbooks    10.1.0
gitlab-ctl  10.1.0
gitlab-ctl-ee   10.1.0
gitlab-elasticsearch-indexer    v0.2.1
gitlab-monitor  v1.9.0
gitlab-pages    v0.6.0
gitlab-rails    v10.1.0-ee
gitlab-scripts  10.1.0
gitlab-selinux  10.1.0
gitlab-shell    v5.9.3
gitlab-workhorse    v3.2.0

在 gitlab.rb 中创建了新的 LDAP 配置,使用 gitlab-ctl 重新配置,尝试了各种身份验证方法,并且 simple_tls 成功了。

感谢大家为 post 提出的问题发表评论!赞赏。