Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gerrit - Application Error - Intraline difference not available due to server error

Tags:

gerrit

For one of our gerrit projects, while navigating the file differences we get this error:

Application Error

Intraline difference not available due to server error

[Continue]

It doesn't happen for all projects, currently we've detected the error on only one project.

I looked on Google and on the gerrit documentation. Found a reference on their source code, but don't know what causes it and how it can be resolved.

The web page with the error contains a "Continue" button. Once clicked it will take you to the file you selected, but the error is annoying.

Do you know how to fix this?

like image 985
user1293962 Avatar asked Jan 19 '26 01:01

user1293962


1 Answers

That is caused while cache the intraline difference of one file, when compared between two commits. The default timeout value is 5 seconds. If the file is huge, and computation takes longer than the timeout, the worker thread is terminated, an error message is shown, and no intraline difference is displayed for the file pair.

A solution could fix this.

  1. Add config in gerrit.conf.

    [cache "diff_intraline"]

    timeout = 15000 ms # Or other time length as you want.

  2. restart Gerrit service
  3. run SSH command "gerrit flush-caches", using a user with ViewCaches global capability.

    ssh -p port userxxx@host gerrit flush-caches

Then it would work.

like image 165
Jennie.Li Avatar answered Jan 21 '26 07:01

Jennie.Li



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!