Error when running gitolite setup

11 views
Skip to first unread message

Mark Barton

unread,
Jan 30, 2026, 6:58:07 PMJan 30
to gitolite
I'm getting a strange error message when I execute $HOME/bin/gitolite setup -pk /tmp/mark.pub. I followed the "fool-proof, step-by-step, install and setup" Here is what I did:

1. Created a git user account
2.  I am transferring my repo to a new computer so I am using the admin key from the old server.
3.  sudo -i to get root access
4.  su -git
5.  copied mark.pub to /tmp/bin
6.  cloned https://codeberg.org/sitaramc/gitolite
7.  cd to $HOME which is /home/git
8.  mkdir -p bin
9.  gitolite/install -to $HOME/bin (SUCCESS!)  At this point all of the files in git user are owned by git
10.  cd to $HOME
11.  $HOME/bin/gitolite setup -pk /tmp/mark.pub (ERROR!)

FATAL: errors found but logfile could not be created
FATAL: /home/git/.gitolite/logs/gitolite-2026-01.log: No such file or directory
FATAL: die '/tmp/mark.pub' not a readable file

I have used gitolite for years and it has always just worked. Kudos to the creator.

I don't understand what "FATAL: die '/tmp/mark.pub' not a readable file" is trying to tell me. The file is readable and rw permisions. 

Any help is appreciated.

Mark

Ken Hornstein

unread,
Jan 30, 2026, 7:44:42 PMJan 30
to Mark Barton, gitolite
>FATAL: /home/git/.gitolite/logs/gitolite-2026-01.log: No such file or directory

You might want to track this down, but ...

>FATAL: die '/tmp/mark.pub' not a readable file

A quick glance at the souce code suggests to me that it's trying to run
the command:

cat /tmp/mark.pub

and that is failing. Why is that failing? No idea! But it looks like
if you set the environment variable 'D' to '3' and then run that last
gitolite setup command that failed you'd see the exact error message
from the 'cat' command which might be more useful.

--Ken

Mark Barton

unread,
Jan 31, 2026, 10:16:24 AMJan 31
to gitolite

Ken thanks for the big clue. I believe I was supposed to put the tmp directory in root, but instead I had it the local directory. I just removed the front slash and the setup was successful.
Reply all
Reply to author
Forward
0 new messages