无法在3.2.1版中停止gerrit

问题描述 投票:0回答:1

我刚刚安装了gerrit 3.2.1启动后,我无法打开我的网站,出现以下错误:

The HTTP server did not provide the username in the Authorization header when it forwarded the request to Gerrit Code Review.

If the HTTP server is Apache HTTPd, check the proxy configuration includes an authorization directive with the proper location, ensuring it ends with '/':

ServerName devops.adaps.corp

ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On

<Proxy *>
      Order deny,allow
      Allow from all
</Proxy>

<Location /login/>
  AuthType Basic
  AuthName "Gerrit Code Review"
  Require valid-user
  ...
</Location>


AllowEncodedSlashes On
ProxyPass / http://.../ nodecode

所以我想停止它并检查是否需要添加htpasswd文件。

但是...似乎不可阻挡。...我尝试使用命令:

/work/devops/gerrit/bin/gerrit.sh stop
sudo /work/devops/gerrit/bin/gerrit.sh stop

我收到错误的消息:

Stopping Gerrit Code Review: start-stop-daemon: matching only on non-root pidfile /work/devops/gerrit/logs/gerrit.pid is insecure
gerrit
1个回答
0
投票
我通过手动终止在pidfile中记录的进程来解决它>
© www.soinside.com 2019 - 2024. All rights reserved.