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

Debbugs page

Brett Gilio wrote 5 years ago
(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
Ludovic Courtès wrote 5 years ago
(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’.
pelzflorian (Florian Pelz) wrote 5 years ago
(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
pelzflorian (Florian Pelz) wrote 5 years ago
(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.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 42447@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 42447
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help