在最后一次CentOS 7更新之后,尝试克隆git存储库时,我们开始遇到以下问题。
注意::基础架构是使用 LDAP,Redmine,grack 和 git 构建的。
在git客户端中观察到问题...
[some_user@some_user-pc ~]$ git clone http://some_url.foo/some_repo.git
Cloning into 'some_repo'...
Username for 'http://some_url.foo': some_git_user
Password for 'http://some_git_user@some_url.foo':
fatal: unable to access 'http://some_url.foo/some_repo.git/': The requested URL returned error: 500
在httpd / git服务器上观察到问题...
[root@hostname ~]# less +F /var/log/httpd/error_log
[...]
[Wed Jun 03 17:38:49.745122 2020] [authn_core:error] [pid 14382] [client 10.2.0.10:57884] AH01796: AuthType Basic configured without corresponding module
[...]
Apache / httpd配置(Apache / httpd-> redmine-> crack-> git)...
[root@hostname ~]# cat /etc/httpd/conf.d/git.conf
<VirtualHost *:81>
ServerName localhost.localdomain
DocumentRoot /home/redmine/grack/public
PerlLoadModule Apache::Redmine
PerlLoadModule Authen::Simple::LDAP
<Directory /home/redmine/grack/public>
Options None
AllowOverride None
Require all granted
</Directory>
<Location "/">
AuthType Basic
AuthName "Redmine git repositories"
AuthUserFile /dev/null
AuthBasicAuthoritative off
Require valid-user
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN "DBI:Pg:database=redmine;host=localhost;port=5432"
RedmineDbUser "redmine"
RedmineDbPass "brlight"
RedmineGitSmartHttp yes
</Location>
</VirtualHost>
由于出现的唯一错误输出是显示在“ error_log”中的错误,因此我们在诊断出现的问题时遇到了严重的困难。
这个错误对我们来说似乎很奇怪,因为模块“ mod_auth_basic.so”已加载并存在于CentOS 7中...
[root@hostname ~]# cat /etc/httpd/conf.modules.d/00-base.conf
[...]
LoadModule auth_basic_module modules/mod_auth_basic.so
[...]
发生了什么事?
注意::一些消息来源报道,这可能是由于从Apache / httpd 2.2更新到2.4所致。