Gerrit 3.7.0 gitweb gives 404 not found

501 views
Skip to first unread message

Pranab Panda

unread,
Dec 7, 2022, 7:41:25 PM12/7/22
to Repo and Gerrit Discussion
Testing Gerrit 3.7.0 I find that gitweb doesn't work as documented.
It gives 404 not found when trying to browse any project.

I tried to debug this .....  
under tmp I see that  it is looking for

$GITWEB_CONFIG = '/mnt/data/gerrit/etc/gitweb_config.perl';

if (-e $GITWEB_CONFIG) {

  do '/mnt/data/gerrit/etc/gitweb_config.perl';

}

$projectroot = $ENV{'GITWEB_PROJECTROOT'}; 

and I have the entry  set correctly in my   $site/etc/gitweb_config.perl' 

# gitweb_config.perl

our $projectroot = "/mnt/data/gerrit/git";       <=====


Now If I edit the file under tmp and hardcode

$projectroot = "/mnt/data/gerrit/git";

then it starts working!

So not sure what is missing or of there is a bug 

My etc/gerrit.config entry is

[gitweb]

   type=gitweb

   cgi=/var/www/git/gitweb.cgi

Any suggestions/pointers/hints how to resolve this?

Please let me know

Thanks

Pranab

Matthias Sohn

unread,
Dec 7, 2022, 8:06:57 PM12/7/22
to Pranab Panda, Repo and Gerrit Discussion
On Thu, Dec 8, 2022 at 1:41 AM Pranab Panda <pra...@pacbell.net> wrote:
Testing Gerrit 3.7.0 I find that gitweb doesn't work as documented.
It gives 404 not found when trying to browse any project.

I tried to debug this .....  
under tmp I see that  it is looking for

$GITWEB_CONFIG = '/mnt/data/gerrit/etc/gitweb_config.perl';

if (-e $GITWEB_CONFIG) {

  do '/mnt/data/gerrit/etc/gitweb_config.perl';

}

$projectroot = $ENV{'GITWEB_PROJECTROOT'}; 

and I have the entry  set correctly in my   $site/etc/gitweb_config.perl' 

# gitweb_config.perl

our $projectroot = "/mnt/data/gerrit/git";       <=====


Now If I edit the file under tmp and hardcode

$projectroot = "/mnt/data/gerrit/git";

then it starts working!

So not sure what is missing or of there is a bug 

My etc/gerrit.config entry is

[gitweb]

   type=gitweb

   cgi=/var/www/git/gitweb.cgi

Any suggestions/pointers/hints how to resolve this?

Please let me know

Thanks

Pranab

--
--
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/f16ab4a7-b3a5-4e05-a402-24432efc3075n%40googlegroups.com.

Pranab Panda

unread,
Dec 13, 2022, 8:26:56 PM12/13/22
to Repo and Gerrit Discussion
On Wednesday, December 7, 2022 at 5:06:57 PM UTC-8 Matthias Sohn wrote:
On Thu, Dec 8, 2022 at 1:41 AM Pranab Panda <pra...@pacbell.net> wrote:
Testing Gerrit 3.7.0 I find that gitweb doesn't work as documented.
It gives 404 not found when trying to browse any project.

Thanks, so we wait for Gerrit 3.7.1? or other minor release
when will it be available?
Please let me know
thanks
Pranab 
Reply all
Reply to author
Forward
0 new messages