Re: gitweb problem
Stephen Watson <[email protected]> Mon, 27 Sep 2010 19:07:12 +0100
| Newsgroups | gmane.comp.desktop.rox.devel |
|---|---|
| Message-ID | <[email protected]> |
Thomas Leonard <[email protected]> wrote: > On 27 September 2010 17:59, Stephen Watson <[email protected]> wrote: > > Stephen Watson <[email protected]> wrote: > > > >> Thomas Leonard <[email protected]> wrote: > >> > >> > On 25 September 2010 10:45, Stephen Watson <[email protected]> > >> wrote: > >> > > I don't like git, and git doesn't like me, but we're using it for > >> ROX-Filer > >> > > and ROX-Lib so I have to deal with it. The problem is since I > > switched > >> to a > >> > > 64 bit machine gitweb has stopped working. If you go to > >> > > http://kerofin.demon.co.uk/git/gitweb.cgi you'll find no projects > >> listed, > >> > > but I know there should be two. > >> > > >> > You could try setting the environment variable GIT_TRACE=1 (or 2). > >> > That sometimes shows what's going on. Otherwise, strace it? > > > > strace has just confused me more: > > > > access("/srv/git/rox-lib/objects", X_OK) = 0 > > access("/srv/git/rox-lib/refs", X_OK) = 0 > > lstat("/srv/git/rox-lib/HEAD", {st_mode=S_IFREG|0644, st_size=23, ...}) = 0 > > open("/srv/git/rox-lib/HEAD", O_RDONLY) = -1 EACCES (Permission denied) > > write(2, "fatal: Not a git repository: '/s"..., 48) = 48 > > exit_group(128) = ? > > > > stephen@kerofin:/tmp> ls -l /srv/git/rox-lib/HEAD > > -rw-r--r-- 1 stephen users 23 2008-01-19 18:35 /srv/git/rox-lib/HEAD > > > > That's world-readable so why the EACCES? The intervening directories are > > also world readable (otherwise how could the lstat succeed?). > > That's pretty odd. Any strange SELinux / AppArmor policies in effect? AppArmour. The repo's were in my home area (so I can update them easily) but linked to from /srv/git. The gitweb.cgi script was configured in AppArmour, but perl wasn't which was why explictly calling the script via perl worked! When AppArmour blocked something it did not in anyway inform me what it had done, which was bloody stupid. I can only assume that on my old 32 bit machine I'd turned off AppArmour or more likely never turned it on during upgrades. With a new install it activated itself. Could somebody just confirm that http://kerofin.demon.co.uk/git/gitweb.cgi is now returning useful results. -- Stephen Watson http://www.kerofin.demon.co.uk/ If you read this on a mailing list, send any reply back to the list and not to me. Not even CC. The past is a different country, 1987's just the Isle of Wight. ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ rox-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rox-devel