You are not logged in.

#1 2015-10-06 11:32:11

xanb
Member
Registered: 2012-07-24
Posts: 418

[solved] git instaweb: blank page

If I run git instaweb I get:

[xan@argonia apunts-acces-uib-per-a-majors-de-25-anys]$ git instaweb

(process:5009): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
[xan@argonia apunts-acces-uib-per-a-majors-de-25-anys]$ 
(process:5012): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed

and blank page in the firefox.

I don't know why? Anyone could help me?

Last edited by xanb (2015-10-30 11:38:10)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#2 2015-10-29 11:47:43

eldog
Member
Registered: 2015-10-29
Posts: 2

Re: [solved] git instaweb: blank page

I had a similar problem and resolved it by installing perl-cgi

$ sudo pacman -S perl-cgi

And now this works

$ cd my-git-project-root
$ git instaweb

Specifically I was getting a 500 error with "Premature end of script headers: /usr/share/gitweb/gitweb.cgi" and I then tried running the script

$ cd /usr/share/gitweb/ 
$ ./gitweb.cgi
Can't locate CGI.pm in @INC (you may need to install the CGI module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at ./gitweb.cgi line 13.
BEGIN failed--compilation aborted at ./gitweb.cgi line 13.

So that prompted the installation of perl-cgi.

Last edited by eldog (2015-10-29 11:47:56)

Offline

#3 2015-10-29 13:05:14

cafe
Member
Registered: 2014-03-20
Posts: 156

Re: [solved] git instaweb: blank page

It can be a couple of things.. Permissions, config of repo folders, not using bare repos... These are just some problems that crossed my mind.

Offline

#4 2015-10-30 11:37:35

xanb
Member
Registered: 2012-07-24
Posts: 418

Re: [solved] git instaweb: blank page

Thanks a lot, eldog. It works now. Perhaps in the package we should mark it with perl-cgi dependency, should we?

eldog wrote:

I had a similar problem and resolved it by installing perl-cgi

$ sudo pacman -S perl-cgi

And now this works

$ cd my-git-project-root
$ git instaweb

Specifically I was getting a 500 error with "Premature end of script headers: /usr/share/gitweb/gitweb.cgi" and I then tried running the script

$ cd /usr/share/gitweb/ 
$ ./gitweb.cgi
Can't locate CGI.pm in @INC (you may need to install the CGI module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at ./gitweb.cgi line 13.
BEGIN failed--compilation aborted at ./gitweb.cgi line 13.

So that prompted the installation of perl-cgi.


Owning one OpenRC (artoo way) and other three systemd machines

Offline

Board footer

Powered by FluxBB