Last modified: 2014-06-10 02:01:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50061, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48061 - Gerrit: HTTP 500 "Guice provision errors: Cannot open ReviewDb"
Gerrit: HTTP 500 "Guice provision errors: Cannot open ReviewDb"
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Git/Gerrit (Other open bugs)
wmf-deployment
All All
: Low major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-03 23:35 UTC by Krinkle
Modified: 2014-06-10 02:01 UTC (History)
12 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot of error page (97.37 KB, image/png)
2013-05-03 23:35 UTC, Krinkle
Details
Proxy error, usually accompanies the previously captured Guice error (74.28 KB, image/png)
2013-05-22 18:53 UTC, Krinkle
Details

Description Krinkle 2013-05-03 23:35:58 UTC
Created attachment 12255 [details]
Screenshot of error page

Location: https://gerrit.wikimedia.org/r/#/c/62207/

-------
HTTP ERROR: 500

Problem accessing /r/. Reason:

    Guice provision errors:

1) Cannot open ReviewDb
  at com.google.gerrit.server.util.ThreadLocalRequestContext$1.provideReviewDb(ThreadLocalRequestContext.java:71)
  while locating com.google.gerrit.reviewdb.server.ReviewDb

1 error
Powered by Jetty://
-------
Comment 1 Krinkle 2013-05-04 00:39:50 UTC
Looks like this has escalated. Most users don't even get an error, it just times out. Gerrit has become completely unresponsive.
Comment 2 Techman224 2013-05-04 00:54:39 UTC
Seems to affect SSH too.
Comment 3 Techman224 2013-05-04 01:29:55 UTC
Gerrit was restared, https://wikitech.wikimedia.org/w/index.php?title=Server_Admin_Log&diff=68980&oldid=68979. Seems to be working now.
Comment 4 Chad H. 2013-05-04 05:00:22 UTC
Reopening since restarting isn't a solution. Will take a look at the logs.
Comment 5 christian 2013-05-04 10:54:05 UTC
In case this becomes relevant at some point of investigating the root cause:
~2 hours before this happened MatmaRex told me that gerrit was really slow
to respond. Not having access to logs, I checked ganglia, and the graphs
showed the usual increase around that time of the day.

The now reported error message surfaces if gerrit could connect to the
database at startup but now cannot open new connections to the
database.

Do the logs show a root cause?
Comment 6 Andre Klapper 2013-05-13 10:40:37 UTC
Chad: Do the logs show a root cause?
Comment 7 Chad H. 2013-05-13 11:51:10 UTC
Here's the full stacktraces from the failure: http://p.defau.lt/?B4I7N8sdqihW2Dj7tQOUNw
Comment 8 Andre Klapper 2013-05-15 12:44:03 UTC
(In reply to comment #3)
> Gerrit was restared, Seems to be working now.

Lowering priority.
Comment 9 Liangent 2013-05-15 14:42:14 UTC
Seen again with exactly the same error message, on https://gerrit.wikimedia.org/r/#/c/63824/ .
Comment 10 Krinkle 2013-05-22 18:53:09 UTC
Created attachment 12371 [details]
Proxy error, usually accompanies the previously captured Guice error

The problem is back.
Comment 11 Krinkle 2013-05-22 18:53:45 UTC
Restart of Gerrit restored functionality for now.
Comment 12 Krinkle 2013-07-09 21:08:46 UTC
The following error appeared today (a few minutes ago):


Guice provision errors:

1) Cannot open ReviewDb
  at com.google.gerrit.server.util.ThreadLocalRequestContext$1.provideReviewDb(ThreadLocalRequestContext.java:71)
  while locating com.google.gerrit.reviewdb.server.ReviewDb

1 error
Comment 13 Andre Klapper 2014-03-13 12:59:35 UTC
[Lowering priority; no recent incidents.]
Comment 14 Krinkle 2014-06-10 01:31:34 UTC
And its back coming to eat more innocent souls:

Guice provision errors:

1) Cannot open ReviewDb
  at com.google.gerrit.server.util.ThreadLocalRequestContext$1.provideReviewDb(ThreadLocalRequestContext.java:70)
  while locating com.google.gerrit.reviewdb.server.ReviewDb

1 error
Comment 15 Chad H. 2014-06-10 01:48:57 UTC
There's no one bug here so I'm not sure what this is supposed to accomplish.

"Don't break the database connection with bad config, networking hiccups or otherwise crash the ability of Gerrit to talk to its DB?"

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links