Issue with CGIT service

  • Open
  • quality assurance status badge
Details
3 participants
  • Brett Gilio
  • Ludovic Courtès
  • pelzflorian (Florian Pelz)
Owner
unassigned
Submitted by
Brett Gilio
Severity
normal
B
B
Brett Gilio wrote on 20 Jul 2020 21:30
(address . bug-guix@gnu.org)
871rl6kmqn.fsf@gnu.org
Hi all,

I am having an issue with the CGIT service. There is a record field for
setting the directory it should watch, defaulting to /srv/cgit or
something similar. Currently when doing this it just returns an empty
cgit web interface.

Toggle snippet (10 lines)
(service cgit-service-type
(cgit-configuration
(enable-commit-graph? #t)
(enable-html-serving? #t)
(repository-directory
(string-append home-directory "/Repos/"))
(nocache? #t)
(readme "CGIT README")))

Also, I would also be willing to collaborate with
somebody on getting cgit and nginx to work together to set a port other
than 80.

Thoughts?

Brett Gilio
L
L
Ludovic Courtès wrote on 27 Jul 2020 12:53
(name . Brett Gilio)(address . brettg@gnu.org)(address . 42447@debbugs.gnu.org)
87wo2pxm89.fsf@gnu.org
Brett Gilio <brettg@gnu.org> skribis:

Toggle quote (14 lines)
> I am having an issue with the CGIT service. There is a record field for
> setting the directory it should watch, defaulting to /srv/cgit or
> something similar. Currently when doing this it just returns an empty
> cgit web interface.
>
> (service cgit-service-type
> (cgit-configuration
> (enable-commit-graph? #t)
> (enable-html-serving? #t)
> (repository-directory
> (string-append home-directory "/Repos/"))
> (nocache? #t)
> (readme "CGIT README")))

Weird.

Toggle quote (4 lines)
> Also, I would also be willing to collaborate with
> somebody on getting cgit and nginx to work together to set a port other
> than 80.

The cgit test in (gnu tests version-control) shows cgit/nginx
integration, perhaps you could take inspiration from there? It also
suggests we should add an example in the manual.

Thanks,
Ludo’.
P
P
pelzflorian (Florian Pelz) wrote on 27 Jul 2020 13:18
(name . Brett Gilio)(address . brettg@gnu.org)(address . 42447@debbugs.gnu.org)
20200727111811.dspglgbldmuru3l6@pelzflorian.localdomain
On Mon, Jul 20, 2020 at 02:30:40PM -0500, Brett Gilio wrote:
Toggle quote (8 lines)
>
> Hi all,
>
> I am having an issue with the CGIT service. There is a record field for
> setting the directory it should watch, defaulting to /srv/cgit or
> something similar. Currently when doing this it just returns an empty
> cgit web interface.

I had a similar issue back in November
I believe you need to change the permissions on /srv/cgit to allow
access.

Perhaps this can be properly fixed by using supplementary groups now

Regards,
Florian
P
P
pelzflorian (Florian Pelz) wrote on 27 Jul 2020 13:24
(name . Brett Gilio)(address . brettg@gnu.org)(address . 42447@debbugs.gnu.org)
20200727112438.aitj3tb26g43ednd@pelzflorian.localdomain
On Mon, Jul 27, 2020 at 01:18:19PM +0200, pelzflorian (Florian Pelz) wrote:
Toggle quote (3 lines)
> Perhaps this can be properly fixed by using supplementary groups now
> that <https://issues.guix.info/issue/41573> has been pushed.

P.S. I had thought of https://issues.guix.info/issue/38438 where
fcgiwrap is involved.
?