Hello :)

I wanted to try git on virtualmin, I created my repository, this is ok, then I wanted to check git web. But when I try to access it, I get a 403 forbidden, and in the error log I can see many errors like this:

[Fri Aug 08 06:30:02.532999 2014] [cgi:error] [pid 32135] [client 221.122.97.180:56927] AH01215: [Fri Aug 8 06:30:02 2014] gitweb.cgi: defined(@array) is deprecated at gitweb.cgi line 1324.
[Fri Aug 08 06:30:02.533032 2014] [cgi:error] [pid 32135] [client 221.122.97.180:56927] AH01215: [Fri Aug 8 06:30:02 2014] gitweb.cgi: \t(Maybe you should just omit the defined()?)
[Fri Aug 08 06:30:02.533505 2014] [cgi:error] [pid 32135] [client 221.122.97.180:56927] AH01215: [Fri Aug 8 06:30:02 2014] gitweb.cgi: defined(@array) is deprecated at gitweb.cgi line 1376.

Status: 
Active

Comments

Interesting, it looks like the gitweb.cgi script supplied with Git isn't completely compliant with the latest version of Perl.

However, those are just warning messages and shouldn't stop it from working. Are you are you are logging in with the correct full username and password?

yeah I'm sure, otherwise I wouldn't be able to access the page anyway. I realized git directories were owned by www-data:my_username, don't know if normal or not.

I'll put all the errors that appear when I try to access:

[Sat Aug 09 08:19:18.467765 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: defined(@array) is deprecated at gitweb.cgi line 1193., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.467825 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: \t(Maybe you should just omit the defined()?), referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.468362 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: defined(@array) is deprecated at gitweb.cgi line 1246., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.468400 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: \t(Maybe you should just omit the defined()?), referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.469274 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: defined(@array) is deprecated at gitweb.cgi line 1324., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.469311 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: \t(Maybe you should just omit the defined()?), referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.469836 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: defined(@array) is deprecated at gitweb.cgi line 1376., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.469873 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: \t(Maybe you should just omit the defined()?), referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.484217 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: Can't exec "/usr/bin/git-rev-parse": No such file or directory at gitweb.cgi line 466., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.484578 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: Use of uninitialized value $commit_id in concatenation (.) or string at gitweb.cgi line 587., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.485176 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: Can't exec "/usr/bin/git-rev-list": No such file or directory at gitweb.cgi line 587., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.485519 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: Use of uninitialized value $epoch in gmtime at gitweb.cgi line 813., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.485608 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: Use of uninitialized value $epoch in addition (+) at gitweb.cgi line 823., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.492322 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: Use of uninitialized value $head in concatenation (.) or string at gitweb.cgi line 129., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.492369 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: Use of uninitialized value $head in concatenation (.) or string at gitweb.cgi line 130., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.493342 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: Can't exec "/usr/bin/git-rev-parse": No such file or directory at gitweb.cgi line 466., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.493751 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: Use of uninitialized value in concatenation (.) or string at gitweb.cgi line 1144., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com
[Sat Aug 09 08:19:18.494466 2014] [cgi:error] [pid 20620] [client 123.118.112.103:54406] AH01215: [Sat Aug 9 08:19:18 2014] gitweb.cgi: Can't exec "/usr/bin/git-rev-list": No such file or directory at gitweb.cgi line 1144., referer: https://arvi89.com:10000/virtualmin-git/index.cgi?show=arvi89.com

Well I've changed ownership and chmod 777, didn't change anything, still get a 403 forbidden ^^

It appears as if gitweb is looking in the wrong place for some of the git commands.

I don't seem to be getting those errors on my test system though.

Was your server upgraded from an older Ubuntu version? Or was this domain perhaps migrated from another server?

No, it is a new installation, and no migration.

But before I activated the git service in virtualmin, I installed gitweb with apt-get. I don't know if it could make a problem.

And I've noticed something funny, when I push, git always asks me to type my password 2 times (first time I thought I made a mistake, but now I'm sure I type it correctly even the first time ^^)

edit: ok, was just because I was using the web, through ssh it's fine :)