From: pgnet.dev at gmail.com (PGNet Dev)
Subject: "no repositories found": cgit + gitolite + nginx -- git/ssh access OK, web access OK, no errors, but no repos found/displayed?
Date: Wed, 14 Aug 2019 12:12:17 -0700 [thread overview]
Message-ID: <1d02a818-d3e8-68dd-ebaf-5e8b6a8d42e3@gmail.com> (raw)
In-Reply-To: <CAEZES=9_MqRX6YKE+uyE1CgmTB=mEEPd4u6LLQBo1FZMRgwGEw@mail.gmail.com>
> could you please also provide your cgit config? Also, which user is
> executing cgit
my current config is
cat /etc/cgitrc
virtual-root=/
css=/cgit.css
logo=/cgit.png
cache-size=1000
enable-index-links=1
enable-log-filecount=1
enable-log-linecount=1
root-title=git repositories
robots=noindex, nofollow
mimetype.git=image/git
mimetype.html=text/html
mimetype.jpg=image/jpeg
mimetype.jpeg=image/jpeg
mimetype.pdf=application/pdf
mimetype.png=image/png
mimetype.svg=image/svg+xml
snapshots=tar.gz tar.bz2 tar.xz zip
source-filter=/usr/lib/cgit/filters/syntax-highlighting-EDITED.sh
scan-path=/data/git/gitolite/repositories/
cat /usr/lib/cgit/filters/syntax-highlighting-EDITED.sh | grep -v ^#
BASENAME="$1"
EXTENSION="${BASENAME##*.}"
[ "${BASENAME}" = "${EXTENSION}" ] && EXTENSION=txt
[ -z "${EXTENSION}" ] && EXTENSION=txt
[ "${BASENAME%%.*}" = "Makefile" ] && EXTENSION=mk
exec highlight --force -f -I -O xhtml -S "$EXTENSION" 2>/dev/null
> can he access repositories owned by gitolite?
that was the _intention_, at least, with
> Users/groups are setup as
> > id wwwrun
> uid=30(wwwrun) gid=8(www) groups=8(www),475(gitolite)
> id wwwrun-cgit
> uid=474(wwwrun-cgit) gid=8(www) groups=8(www),475(gitolite)
> id gitolite
> uid=475(gitolite) gid=475(gitolite) groups=475(gitolite)
the systemd units for uwsgi service & socket are templated,
/etc/systemd/system/uwsgi-app at .service
[Unit]
Description=%i uWSGI app
After=syslog.target
[Service]
ExecStart=/usr/sbin/uwsgi \
--ini /etc/uwsgi/apps-available/%i.ini \
--socket /run/uwsgi/%i.sock
User=wwwrun-%i
Group=www
Restart=on-failure
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
/etc/systemd/system/uwsgi-app at .socket
[Unit]
Description=Socket for uWSGI app %i
[Socket]
ListenStream=/run/uwsgi/%i.sock
SocketUser=wwwrun-%i
SocketGroup=www
SocketMode=0660
[Install]
WantedBy=sockets.target
so that, in the case of app == 'cgit', they get enabled/started as
systemctl enable uwsgi-app at cgit.socket
and, uwsgi/cgit execs as
wwwrun-cgit:www
which, i thought, should make it behave with gitolite repos.
if not a bug, it's certainly possible i've missed some config, perm, etc.
next prev parent reply other threads:[~2019-08-14 19:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-14 1:48 pgnet.dev
[not found] ` <CAEZES=9_MqRX6YKE+uyE1CgmTB=mEEPd4u6LLQBo1FZMRgwGEw@mail.gmail.com>
2019-08-14 19:12 ` pgnet.dev [this message]
2019-08-15 2:52 ` pgnet.dev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1d02a818-d3e8-68dd-ebaf-5e8b6a8d42e3@gmail.com \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).