Project/Repos not visible in Gerrit 3.4

310 views
Skip to first unread message

sourav micromax

unread,
Aug 4, 2021, 2:41:42 AM8/4/21
to Repo and Gerrit Discussion
Hi,

I have configured Gerrit3.4 and have configured AOSP code on it. Gerrit UI page is working properly. But I am not able to see the Projects/Repository.    What could be the reason because the same thing is working on Version 2.15.

sourav micromax

unread,
Aug 4, 2021, 2:52:42 AM8/4/21
to Repo and Gerrit Discussion
Hi, Just Adding few lines to existing query:-

I create repos from backend  in gerrit and after restarting gerrit service it use to reflect in Gerrit UI. 
but same is not the case with 3.4 version. 

Sven Selberg

unread,
Aug 9, 2021, 5:45:21 AM8/9/21
to Repo and Gerrit Discussion
On Wednesday, August 4, 2021 at 8:52:42 AM UTC+2 souravsriv...@gmail.com wrote:
Hi, Just Adding few lines to existing query:-

I create repos from backend  in gerrit and after restarting gerrit service it use to reflect in Gerrit UI. 
but same is not the case with 3.4 version. 

Did you create the git projects on disk and then restart Gerrit?
Not up to speed with how project discovery from disk works in 3.4 but there's a project index in 3.4, what happens if you index the projects? 


/Sven

Sven Selberg

unread,
Aug 9, 2021, 8:07:35 AM8/9/21
to Repo and Gerrit Discussion
Please reply to the list!

On Monday, August 9, 2021 at 11:45:21 AM UTC+2 Sven Selberg wrote:
On Wednesday, August 4, 2021 at 8:52:42 AM UTC+2 souravsriv...@gmail.com wrote:
Hi, Just Adding few lines to existing query:-

I create repos from backend  in gerrit and after restarting gerrit service it use to reflect in Gerrit UI. 
but same is not the case with 3.4 version. 

Did you create the git projects on disk and then restart Gerrit?
Not up to speed with how project discovery from disk works in 3.4 but there's a project index in 3.4, what happens if you index the projects? 

From private mail:
"I have created directory under git folder and restarted gerrit service . but its not reflecting on UI though it runs perfectly on version 2.15."

 
From private mail:
"""java -jar gerrit-3.4.0.war reindex -d GerritSiteDir/review_site/git/Android-R0
fatal: not a Gerrit site: 'GerritSiteDir/review_site/git/Android-R0'
fatal: Perhaps you need to run init first? """

-d should be set to the Gerrit site root wich in you case shold be "GerritSiteDir/review_site"

java -jar gerrit-3.4.0.war reindex -d GerritSiteDir/review_site --index projects

sourav micromax

unread,
Aug 10, 2021, 6:40:57 AM8/10/21
to Repo and Gerrit Discussion
Thanks Sven , it was fixed.
Reply all
Reply to author
Forward
0 new messages