我已经使用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
答案 0 :(得分:0)
在gitlab.rb中创建了新的LDAP配置,使用gitlab-ctl重新配置,尝试了各种身份验证方法,并使用simple_tls工作。
感谢您发表评论所有努力!赞赏。