I have successfully installed gitolite on a fresh AlmaLinux 9.2 machine.
- Commit/push work without errors
- there are no errors in the gitolite logs or the system logs
- the gitolite.conf file on the gitolite machine is updated
- but the new repo is not created.
how did i install:
- as root on gitolite machine:
- useradd -r -m -s /bin/bash gitolite
- su - gitolite
- as gitolite on gitolite machine:
- cd $HOME
- mkdir bin
- mkdir .ssh
- touch .ssh/authorized_keys
- echo "ssh-ed25519 AAAAC3NzaC1lZD..." > .ssh/authorized_keys
- chmod 0700 .ssh
- chmod 0600 .ssh/authorized_keys
- gitolite/install -to $HOME/bin
- ./bin/gitolite setup -pk admin.pub
how did i add a repo (gitolite-ls1 is configured in ~/.ssh/config):
- as user on local machine:
- cd ~/Projekte
- git clone gitolite-ls1:gitolite-admin
- add new repo hfTest in conf/gitolite.conf
- git add conf
- git commit -m "add test repo"
- git push
output from this command:
Enter passphrase for key '/home/michael/.ssh/admin':
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 6 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 386 bytes | 386.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
To gitolite-ls1:gitolite-admin
f157628..183ab51 main -> main
as user on local machine:
- cd ~/Projekte
- git clone gitolite-ls1:hfTest
output from this command:
Cloning into 'hfTest'...
Enter passphrase for key '/home/michael/.ssh/admin':
FATAL: R any hfTest admin DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What did I do to troubleshoot:
- as user on local machine:
- git pull (Already up to date.)
- cd ..
- rm -rf gitolite-admin
- git clone gitolite-ls1:gitolite-admin (the new repo is included)
- as root on gitolite-machine:
- cat /etc/passwd | grep gitolite
gitolite:x:991:991::/home/gitolite:/bin/bash
- setenforce 0
- as gitolite on gitolite-machine
- ls repositories (the new is not created)
- ls -la repositories/gitolite-admin.git/hooks/*update
lrwxrwxrwx. 1 gitolite gitolite 57 Jun 19 11:44 repositories/gitolite-admin.git/hooks/post-update -> /home/gitolite/.gitolite/hooks/gitolite-admin/post-update
lrwxrwxrwx. 1 gitolite gitolite 44 Jun 19 11:44 repositories/gitolite-admin.git/hooks/update -> /home/gitolite/.gitolite/hooks/common/update
- ls -laL repositories/gitolite-admin.git/hooks/*update
-rwxr-xr-x. 1 gitolite gitolite 343 Jun 19 11:44 repositories/gitolite-admin.git/hooks/post-update
-rwxr-xr-x. 1 gitolite gitolite 308 Jun 19 11:44 repositories/gitolite-admin.git/hooks/update
- gitolite list-users
@all
admin
What else can I try?
sorry for my bad english, I'll probably never learn it