gpt4 book ai didi

error-handling - Gerrit 错误说无法检查权限

转载 作者:行者123 更新时间:2023-12-03 08:47:16 28 4
gpt4 key购买 nike

格瑞特 2.15.1

我的 Gerrit 权限设置出现问题。
故事:我在 Gerrit UI 项目列表中删除了一个项目,并且我检查了我是否希望它被删除,即使有未完成的更改。但是我看到该项目仍然在我的服务器上的 git 目录中。并强行将其删除。

现在,只要我进入 Gerrit UI,它就会显示 代码审查 - 错误,500 内部服务器错误。
我无法查看任何全部:打开或合并的更改。我的:更改或观看更改。我得到那个错误。

在我的 GERRIT_SITE/logs/error.log 中,我收到一个关于无法检查权限的错误,见下文。
但这似乎与上述故事有关。
注意:我是管理员之一。

编辑:我的同事没有同样的问题,但我们可以看到我的个人资料有问题。我们的登录名连接到 Active Directory,并且我们使用 SSH key 作为身份验证。

[2018-07-03 13:37:08,162] [HTTP-85] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET /changes/?q=is:open+is:wip+owner:self&q=is:open+-is:wip+owner:self&q=is:open+((reviewer:self+-owner:self+-is:ignored)+OR+assignee:self)&q=is:closed+(owner:self+OR+reviewer:self+OR+assignee:self)+-age:4w+limit:10&O=881
com.google.gwtorm.server.OrmException: unable to check permissions
at com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate.match(ChangeIsVisibleToPredicate.java:67)
at com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate.match(ChangeIsVisibleToPredicate.java:29)
at com.google.gerrit.index.query.AndSource.match(AndSource.java:147)
at com.google.gerrit.index.query.AndSource.readImpl(AndSource.java:101)
at com.google.gerrit.index.query.AndSource.read(AndSource.java:83)
at com.google.gerrit.index.query.QueryProcessor.query(QueryProcessor.java:238)
at com.google.gerrit.index.query.QueryProcessor.query(QueryProcessor.java:174)
at com.google.gerrit.server.query.change.QueryChanges.query(QueryChanges.java:129)
at com.google.gerrit.server.query.change.QueryChanges.apply(QueryChanges.java:107)
at com.google.gerrit.server.query.change.QueryChanges.apply(QueryChanges.java:38)
at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:286)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:276)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:181)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
at com.google.gerrit.httpd.raw.StaticModule$PolyGerritFilter.doFilter(StaticModule.java:451)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.GetUserFilter.doFilter(GetUserFilter.java:75)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequireSslFilter.doFilter(RequireSslFilter.java:72)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:122)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:69)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestMetricsFilter.doFilter(RequestMetricsFilter.java:57)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:133)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:135)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:69)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:534)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.google.gerrit.server.permissions.PermissionBackendException: not found
at com.google.gerrit.server.permissions.FailedPermissionBackend$FailedChange.test(FailedPermissionBackend.java:170)
at com.google.gerrit.server.permissions.PermissionBackend$ForChange.test(PermissionBackend.java:375)
at com.google.gerrit.server.query.change.ChangeIsVisibleToPredicate.match(ChangeIsVisibleToPredicate.java:65)
... 56 more

编辑 :由于这个问题,我搞砸了一点,而是试图重新启动网站

最佳答案

我的解决方案是重新索引索引目录并再次运行 Gerrit 初始化命令。

关于error-handling - Gerrit 错误说无法检查权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51154145/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com