Recreating project with the same name

91 views
Skip to first unread message

Philip Stefanov

unread,
Dec 15, 2016, 3:09:01 AM12/15/16
to Repo and Gerrit Discussion
I deleted existing project directly from the file system restarted Gerrit afterwards and when i try to create a new project with the same name got internal error 500


[2016-12-13 15:42:34,801] [HTTP-50] WARN  com.google.gerrit.server.project.ProjectCacheImpl : Cannot read project device/common
java.util.concurrent.ExecutionException: org.eclipse.jgit.errors.MissingObjectException: Missing tree efcbcf21f4f810561332201127a09c18e023e16a
    at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:472)
    at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:431)
    at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:74)
    at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:143)
    at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2352)
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2324)
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2286)
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
    at com.google.common.cache.LocalCache.get(LocalCache.java:3953)
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3957)
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4875)
    at com.google.gerrit.server.project.ProjectCacheImpl.checkedGet(ProjectCacheImpl.java:141)
    at com.google.gerrit.server.project.ProjectControl$GenericFactory.controlFor(ProjectControl.java:84)
    at com.google.gerrit.server.project.ProjectsCollection._parse(ProjectsCollection.java:98)
    at com.google.gerrit.server.project.ProjectsCollection.parse(ProjectsCollection.java:66)
    at com.google.gerrit.server.project.ProjectsCollection.parse(ProjectsCollection.java:36)
    at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:233)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)
    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.GetUserFilter.doFilter(GetUserFilter.java:82)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
    at com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:73)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
    at com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:117)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
    at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:136)
    at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:105)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
    at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:75)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)
    at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
    at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
    at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:499)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing tree efcbcf21f4f810561332201127a09c18e023e16a
    at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:147)
    at org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:202)
    at org.eclipse.jgit.treewalk.TreeWalk.parserFor(TreeWalk.java:1000)
    at org.eclipse.jgit.treewalk.TreeWalk.reset(TreeWalk.java:446)
    at org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:119)
    at com.google.gerrit.server.git.VersionedMetaData.readFile(VersionedMetaData.java:438)
    at com.google.gerrit.server.git.VersionedMetaData.readUTF8(VersionedMetaData.java:429)
    at com.google.gerrit.server.git.ProjectConfig.readGroupList(ProjectConfig.java:808)
    at com.google.gerrit.server.git.ProjectConfig.onLoad(ProjectConfig.java:404)
    at com.google.gerrit.server.git.VersionedMetaData.load(VersionedMetaData.java:143)
    at com.google.gerrit.server.git.VersionedMetaData.load(VersionedMetaData.java:119)
    at com.google.gerrit.server.project.ProjectCacheImpl$Loader.load(ProjectCacheImpl.java:293)
    at com.google.gerrit.server.project.ProjectCacheImpl$Loader.load(ProjectCacheImpl.java:278)
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3542)
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2323)
    ... 51 more
[2016-12-13 15:42:34,803] [HTTP-50] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in PUT /device%2Fcommon
org.eclipse.jgit.errors.MissingObjectException: Missing tree efcbcf21f4f810561332201127a09c18e023e16a
    at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:147)
    at org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:202)
    at org.eclipse.jgit.treewalk.TreeWalk.parserFor(TreeWalk.java:1000)
    at org.eclipse.jgit.treewalk.TreeWalk.reset(TreeWalk.java:446)
    at org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:119)
    at com.google.gerrit.server.git.VersionedMetaData.readFile(VersionedMetaData.java:438)
    at com.google.gerrit.server.git.VersionedMetaData.readUTF8(VersionedMetaData.java:429)
    at com.google.gerrit.server.git.ProjectConfig.readGroupList(ProjectConfig.java:808)
    at com.google.gerrit.server.git.ProjectConfig.onLoad(ProjectConfig.java:404)
    at com.google.gerrit.server.git.VersionedMetaData.load(VersionedMetaData.java:143)
    at com.google.gerrit.server.git.VersionedMetaData.load(VersionedMetaData.java:119)
    at com.google.gerrit.server.project.ProjectCacheImpl$Loader.load(ProjectCacheImpl.java:293)
    at com.google.gerrit.server.project.ProjectCacheImpl$Loader.load(ProjectCacheImpl.java:278)
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3542)
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2323)
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2286)
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
    at com.google.common.cache.LocalCache.get(LocalCache.java:3953)
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3957)
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4875)
    at com.google.gerrit.server.project.ProjectCacheImpl.checkedGet(ProjectCacheImpl.java:141)
    at com.google.gerrit.server.project.ProjectControl$GenericFactory.controlFor(ProjectControl.java:84)
    at com.google.gerrit.server.project.ProjectsCollection._parse(ProjectsCollection.java:98)
    at com.google.gerrit.server.project.ProjectsCollection.parse(ProjectsCollection.java:66)
    at com.google.gerrit.server.project.ProjectsCollection.parse(ProjectsCollection.java:36)
    at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:233)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)
    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.GetUserFilter.doFilter(GetUserFilter.java:82)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
    at com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:73)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
    at com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:117)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
    at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:136)
    at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:105)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
    at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:75)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)
    at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
    at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
    at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.eclipse.jetty.server.Server.handle(Server.java:499)
    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Thread.java:745)

Saša Živkov

unread,
Dec 15, 2016, 12:31:10 PM12/15/16
to Philip Stefanov, Repo and Gerrit Discussion
This was a known (JGit) issue which was fixed in a more recent version of Gerrit (which includes a newer JGit).
Which Gerrit version are you running?

--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Philip Stefanov

unread,
Dec 19, 2016, 9:59:12 AM12/19/16
to Repo and Gerrit Discussion, ph.st...@gmail.com
Powered by Gerrit Code Review (2.12.4)

Not very old one saw in the release notes:

Upgrades

  • Upgrade JGit to 4.1.2.201602141800-r.

Saša Živkov

unread,
Dec 19, 2016, 10:29:19 AM12/19/16
to Philip Stefanov, Repo and Gerrit Discussion
The JGit version which contains the necessary fix is 4.5.0.201609210915-r.
There is no Gerrit 2.12.x release which contains this version and we actually patched Gerrit 2.12 internally
to include that JGit version.

2.13.4 does include JGit 4.5.0.201609210915-r. Would upgrading to 2.13 be an option for you?

Note that you will anyway have to manually cleanup the incompletely deleted projects from the file system.

Philip Stefanov

unread,
Dec 19, 2016, 10:44:56 AM12/19/16
to Repo and Gerrit Discussion, ph.st...@gmail.com
I see,
Thanks a lot for the info i'm going to upgrade

Reply all
Reply to author
Forward
0 new messages