Hi, Experts
I setup a gerrit server, and the Authentication use http, the server is Apache2 httpd.
Now I can clone a project use ssh protocol, but when use http protocol, it always says
" Authentication failed",
Cloning into 'sandbox'...
remote: Unauthorized
I have try the password I used for login to gerrit, and the password generated from
settings "http Credentials", nether works.
I check the $gerrit_site/etc/error_log, it says:
"[2020-12-10T20:20:02.429+08:00] [HTTP-177] WARN com.google.gerrit.httpd.ProjectBasicAuthFilter : Authentication from 192.168.10.128 failed for mike: password does not match the one stored in Gerrit"
and the /var/logs/apache2/gerrit_error, it says:
"[Thu Dec 10 20:19:58.616377 2020] [auth_basic:error] [pid 14439:tid 140400685717248] [client
192.168.10.128:58344] AH01617: user mike: authentication failure for "/a/sandbox/info/refs": Password Mismatch"
and the gerrit.config like:
"
[gerrit]
basePath = /home/gerrit/work-repos
serverId = 52c517be-2319-47c6-b08b-e6dc8094dfda
[container]
javaOptions = "-Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance"
javaOptions = "-Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance"
user = gerrit
javaHome = /usr/lib/jvm/java-11-openjdk-amd64
[database]
type = h2
database = db/ReviewDB
[index]
type = lucene
[auth]
type = HTTP
[receive]
enableSignedPush = false
[sendemail]
smtpServerPort = 994
smtpEncryption = SSL
[sshd]
listenAddress = *:29418
[httpd]
[cache]
directory = cache
[lfs]
plugin = lfs
"
and the apache2 gerrit.conf is :
"
<VirtualHost *:80>
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
AuthType Basic
AuthName "Gerrit Code Review"
Require valid-user
AuthUserFile /home/gerrit/gerrit-home/etc/gerrit.passwd
Order deny,allow
Allow from all
</Proxy>
AllowEncodedSlashes On
ErrorLog ${APACHE_LOG_DIR}/gerrit_error.log
CustomLog ${APACHE_LOG_DIR}/gerrit_access.log combined
</VirtualHost>
"
so, please help me, if need more information, please tell me.
Br,
Yingchun