evanchueng / gerrit

Automatically exported from code.google.com/p/gerrit
Apache License 2.0
0 stars 0 forks source link

Clone or fetch over HTTP leads to 503 error #614

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: Gerrit 2.1.3

What steps will reproduce the problem?
1. git clone http://git.iwu.fraunhofer.de/p/komma/manifest.git

What is the expected output? What do you see instead?

Instead of cloning/synchronizing the repository, git fails with the following 
error: 
error: RPC failed; result=22, HTTP code = 503

Gerrit's error log contains the following entry:

[2010-06-29 09:10:38,209] ERROR org.eclipse.jetty.util.log : EXCEPTION
com.google.inject.ProvisionException: Guice provision errors:

1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot 
access scoped object. Either we are not currently inside an HTTP Servlet 
request, or you may have forgotten to apply com.goog
le.inject.servlet.GuiceFilter as a servlet filter for this request.
  while locating com.google.gerrit.server.CurrentUser

1 error
        at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:767)
        at com.google.gerrit.pgm.http.jetty.ProjectQoSFilter.getExecutor(ProjectQoSFilter.java:147)
        at com.google.gerrit.pgm.http.jetty.ProjectQoSFilter.access$100(ProjectQoSFilter.java:68)
        at com.google.gerrit.pgm.http.jetty.ProjectQoSFilter$TaskThunk.onTimeout(ProjectQoSFilter.java:222)
        at org.eclipse.jetty.server.AsyncContinuation.expired(AsyncContinuation.java:401)
        at org.eclipse.jetty.server.AsyncContinuation$AsyncEventState.run(AsyncContinuation.java:893)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:437)
        at java.lang.Thread.run(Thread.java:636)
Caused by: com.google.inject.OutOfScopeException: Cannot access scoped object. 
Either we are not currently inside an HTTP Servlet request, or you may have 
forgotten to apply com.google.inject.servlet.
GuiceFilter as a servlet filter for this request.
        at com.google.inject.servlet.GuiceFilter.getContext(GuiceFilter.java:132)
        at com.google.inject.servlet.GuiceFilter.getRequest(GuiceFilter.java:118)
        at com.google.inject.servlet.ServletScopes$1$1.get(ServletScopes.java:48)
        at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
        at com.google.inject.InjectorImpl$4$1.call(InjectorImpl.java:758)
        at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
        at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:754)
        ... 7 more

Original issue reported on code.google.com by knw...@gmail.com on 29 Jun 2010 at 7:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This happens with GIT version 1.7.0.4 (cygwin).
Gerrit is behind an Apache reverse proxy.

Original comment by knw...@gmail.com on 29 Jun 2010 at 8:34

GoogleCodeExporter commented 9 years ago
Interesting stack trace.  Jetty is trying to cancel the request
but it crashed doing so because we have a bug.  :-(

I can't explain why Jetty is canceling though.

Original comment by sop@google.com on 29 Jun 2010 at 2:00

GoogleCodeExporter commented 9 years ago
Fixed in change I76344befc1c248cbd03f34d629d3ea15d9ef8bbf

Original comment by sop@google.com on 13 Jul 2010 at 5:35

GoogleCodeExporter commented 9 years ago

Original comment by sop@google.com on 28 Mar 2012 at 2:55