Production Server Upgrade error Need Priority Help

65 views
Skip to first unread message

anish....@gmail.com

unread,
May 5, 2021, 8:12:27 AM5/5/21
to Repo and Gerrit Discussion
Hello,

We are in process of upgrading the gerrit Server to 3.2.8
Current version is 3.0.11 and Java 1.8.0_261

 java -version
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)

We first upgraded the Java version to Oracke JDK

 java -version
java version "11.0.10" 2021-01-19 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.10+8-LTS-162)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.10+8-LTS-162, mixed mode)


Now when we run the first upgrade it gives the below error:

*********************
java -jar gerrit-3.1.13.war init -d /data/gerrit/
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.assistedinject.FactoryProvider2 (file:/home/gerrit/.gerritcodereview/tmp/gerrit_13295630446925233395_app/guice-assistedinject-4.2.3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of com.google.inject.assistedinject.FactoryProvider2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Using secure store: com.google.gerrit.server.securestore.DefaultSecureStore
*********************

Is this something to be worried about??

Thank you,
Anish

David Ostrovsky

unread,
May 5, 2021, 9:32:14 AM5/5/21
to Repo and Gerrit Discussion
This is a known issue in Guice library: [1], and was fixed with Guice upgrade: [2], [3].

 

Thank you,
Anish

anish....@gmail.com

unread,
May 5, 2021, 11:15:46 AM5/5/21
to Repo and Gerrit Discussion
Hello David,

Do we need to update the  Guice library...............How exactly is this connected to gerrit???
Is it specific to Java-11, If yes then it is it not a bug which should be better handled by Gerrit Code as we know from Gerrit 3.2, JAVA 11 is offically supported.

And there are no instruction to upgrade  Guice library...........Do you have anything that i could use.
Thank you for your Inputs.

Anish

anish....@gmail.com

unread,
May 5, 2021, 11:19:14 AM5/5/21
to Repo and Gerrit Discussion
Hello David, 

I'm not build anything here, I'm just installing gerrit which is downloaded from the gerrit Binary page.
So do we need to even install Guice Library on the Gerrit Server which is used for installing gerrit.

Thank you,
Anish

luca.mi...@gmail.com

unread,
May 5, 2021, 11:20:39 AM5/5/21
to anish....@gmail.com, Repo and Gerrit Discussion


Sent from my iPhone

On 5 May 2021, at 16:19, anish....@gmail.com <anish....@gmail.com> wrote:

Hello David, 

I'm not build anything here, I'm just installing gerrit which is downloaded from the gerrit Binary page.
So do we need to even install Guice Library on the Gerrit Server which is used for installing gerrit.

Davido’s notes were from a Gerrit developer’s perspective.

In your case, just ignore the warning.

HTH

Luca

--
--
To unsubscribe, email repo-discuss...@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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/d72a3078-3388-44c1-97ec-f43f472b6e62n%40googlegroups.com.

Nasser Grainawi

unread,
May 5, 2021, 11:22:39 AM5/5/21
to Luca Milanesio, anish....@gmail.com, Repo and Gerrit Discussion
On May 5, 2021, at 9:20 AM, luca.mi...@gmail.com wrote:



Sent from my iPhone

On 5 May 2021, at 16:19, anish....@gmail.com <anish....@gmail.com> wrote:

Hello David, 

I'm not build anything here, I'm just installing gerrit which is downloaded from the gerrit Binary page.
So do we need to even install Guice Library on the Gerrit Server which is used for installing gerrit.

Davido’s notes were from a Gerrit developer’s perspective.

In your case, just ignore the warning.

Or use the workaround noted in https://bugs.chromium.org/p/gerrit/issues/detail?id=12639 (which I think was the bug David meant to link to):

The solution, for now, is to add the following two entries in gerrit.config:

[container]
javaOptions = --add-opens java.base/java.net=ALL-UNNAMED
javaOptions = --add-opens java.base/java.lang.invoke=ALL-UNNAMED

Reply all
Reply to author
Forward
0 new messages