New issue
Advanced search Search tips

Issue 8703 link

Starred by 1 user

Issue metadata

Status: Released
Owner:
Closed: Apr 2018
Cc:
Components:



Sign in to add a comment

False warning in server log "ProjectCacheImpl : Cannot find project" on project creation

Project Member Reported by gertvdijk@gmail.com, Apr 5 2018

Issue description

Affected Version: 2.15 (tested with 2.15-46-g15dc942823)

What steps will reproduce the problem?
1. Create a new project.
2. Validate that the project got created just fine.
3. Check the server log.

What is the expected output?

No disturbing messages in the server log.


What do you see instead?

A disturbing log entry on the WARN level that the project could not be found on disk, immediately when the creation is performed.
WARN  com.google.gerrit.server.project.ProjectCacheImpl : Cannot find project <projectname>
java.util.concurrent.ExecutionException: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /path/to/gerrit/site/git/<projectname>
[traceback omitted, see below]

The project is created just fine regardless of the message. The message isn't generated again later.


Please provide any additional information below.

Both creating a project through HTTP as well as SSH results in a similar error, but with a different traceback to the same exception. I'm providing them both here below. Version: 2.15-46-g15dc942823 as downloaded from gerrit-ci.

Traceback when creating project over HTTP:

[2018-04-05 21:45:09,555] [HTTP-120] WARN  com.google.gerrit.server.project.ProjectCacheImpl : Cannot find project <projectname>
java.util.concurrent.ExecutionException: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /path/to/gerrit/site/git/<projectname>
        at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
        at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
        at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:142)
        at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2453)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2417)
        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.checkedGet(ProjectCacheImpl.java:142)
        at com.google.gerrit.server.project.ProjectControl$GenericFactory.controlFor(ProjectControl.java:87)
        at com.google.gerrit.server.project.ProjectsCollection._parse(ProjectsCollection.java:125)
        at com.google.gerrit.server.project.ProjectsCollection.parse(ProjectsCollection.java:73)
        at com.google.gerrit.server.project.ProjectsCollection.parse(ProjectsCollection.java:39)
        at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:314)
        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:483)
        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.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.RequestLogHandler.handle(RequestLogHandler.java:56)
        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: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /path/to/gerrit/site/git/<projectname>
        at com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:157)
        at com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:139)
        at com.google.gerrit.server.project.ProjectCacheImpl$Loader.load(ProjectCacheImpl.java:301)
        at com.google.gerrit.server.project.ProjectCacheImpl$Loader.load(ProjectCacheImpl.java:285)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3708)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2416)
        ... 56 more


Traceback when creating project over SSH:

[2018-04-05 21:49:27,513] [SSH gerrit create-project --parent All-Projects <projectname> (admin)] WARN  com.google.gerrit.server.project.ProjectCacheImpl : Cannot find project <projectname>
java.util.concurrent.ExecutionException: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /path/to/gerrit/site/git/<projectname>
        at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503)
        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462)
        at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
        at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:142)
        at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2453)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2417)
        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.checkedGet(ProjectCacheImpl.java:142)
        at com.google.gerrit.server.project.ProjectControl$GenericFactory.controlFor(ProjectControl.java:87)
        at com.google.gerrit.server.project.ProjectsCollection._parse(ProjectsCollection.java:125)
        at com.google.gerrit.server.project.ProjectsCollection.parse(ProjectsCollection.java:108)
        at com.google.gerrit.server.project.ProjectsCollection.parse(ProjectsCollection.java:92)
        at com.google.gerrit.server.api.projects.ProjectsImpl.name(ProjectsImpl.java:54)
        at com.google.gerrit.server.api.projects.ProjectsImpl.create(ProjectsImpl.java:74)
        at com.google.gerrit.sshd.commands.CreateProjectCommand.run(CreateProjectCommand.java:208)
        at com.google.gerrit.sshd.SshCommand$1.run(SshCommand.java:35)
        at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:453)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:435)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /path/to/gerrit/site/git/<projectname>
        at com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:157)
        at com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:139)
        at com.google.gerrit.server.project.ProjectCacheImpl$Loader.load(ProjectCacheImpl.java:301)
        at com.google.gerrit.server.project.ProjectCacheImpl$Loader.load(ProjectCacheImpl.java:285)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3708)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2416)
        ... 23 more
 
Project Member

Comment 1 by thomasmu...@yahoo.com, Apr 5 2018

Cc: dborowitz@google.com luca.mil...@gmail.com
I think this may have been caused by https://gerrit-review.googlesource.com/c/gerrit/+/166691
Project Member

Comment 2 by kaspern@google.com, Apr 5 2018

Components: Backend
Project Member

Comment 3 by luca.mil...@gmail.com, Apr 5 2018

Owner: luca.mil...@gmail.com
Status: Submitted (was: New)
Fixed with:
https://gerrit-review.googlesource.com/c/gerrit/+/170273
Labels: FixedIn-2.15.1
Status: Released (was: Submitted)

Sign in to add a comment