New issue
Advanced search Search tips

Issue 8817 link

Starred by 3 users

Issue metadata

Status: Submitted
Owner:
Closed: Apr 2018
Components:



Sign in to add a comment

internal server error on https://review.gerrithub.io/admin/projects

Project Member Reported by luca.mil...@gmail.com, Apr 21 2018

Issue description

*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version:

What steps will reproduce the problem?
1. open https://review.gerrithub.io/admin/projects (Gerrit 2.15.1-139-ge5694d9cf1)

What is the expected output?
The project list page

What do you see instead?
500 - Internal Server Error

Please provide any additional information below.
The cause of the error is one repository amongst the 40k hosted was not found.

Exception:

com.google.gerrit.server.permissions.PermissionBackendException: project 'foo/bar' is unavailable
        at com.google.gerrit.server.permissions.FailedPermissionBackend$FailedProject.check(FailedPermissionBackend.java:87)
        at com.google.gerrit.server.permissions.PermissionBackend$WithUser.filter(PermissionBackend.java:239)
        at com.google.gerrit.server.project.ListProjects.filter(ListProjects.java:495)
        at com.google.gerrit.server.project.ListProjects.display(ListProjects.java:350)
        at com.google.gerrit.server.project.ListProjects.apply(ListProjects.java:316)
        at com.google.gerrit.server.project.ListProjects.apply(ListProjects.java:310)
        at com.google.gerrit.server.project.ListProjects.apply(ListProjects.java:84)
        at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:397)

Caused by: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: Cannot open repository foo/bar
        at com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:177)
        at com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:139)
        at com.google.gerrit.server.project.ProjectCacheImpl$Loader.load(ProjectCacheImpl.java:310)
        at com.google.gerrit.server.project.ProjectCacheImpl$Loader.load(ProjectCacheImpl.java:294)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3708)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2416)
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2299)
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2212)
        at com.google.common.cache.LocalCache.get(LocalCache.java:4147)
        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4151)
        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5140)
        at com.google.gerrit.server.project.ProjectCacheImpl.strictCheckedGet(ProjectCacheImpl.java:160)
        at com.google.gerrit.server.project.ProjectCacheImpl.checkedGet(ProjectCacheImpl.java:156)
        at com.google.gerrit.server.project.DefaultPermissionBackend$WithUserImpl.project(DefaultPermissionBackend.java:73)
        ... 60 more
Caused by: org.eclipse.jgit.errors.Repositorx/yyNotFoundException: repository not found: /foo/bar
        at org.eclipse.jgit.lib.RepositoryCache$FileKey.open(RepositoryCache.java:434)
        at org.eclipse.jgit.lib.RepositoryCache.openRepository(RepositoryCache.java:267)
        at org.eclipse.jgit.lib.RepositoryCache.open(RepositoryCache.java:114)
        at org.eclipse.jgit.lib.RepositoryCache.open(RepositoryCache.java:89)
        at com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:174)
        ... 73 more

 
Labels: FixedIn-2.15.2
Status: Submitted (was: New)

Sign in to add a comment