I'm trying to install gitolite on my server slot, but the setup keeps failing with the following error:
(using the command: gitolite setup -pk hidde.pub)
FATAL: could not symlink /media/sdn1/home/hiddedejong/.gitolite/hooks/common/update to gitolite-admin.git/hooks
at /media/sdn1/home/hiddedejong/gitolite/src/lib/Gitolite/Conf/Store.pm line 367
I have some limitations on the server I use. Since it's a server slot, I can't create extra users. I can't create a dedicated gitolite hosting user, so I'll have to use my normal shell access user. I also have to install everything in my home directory.
(Git is installed system wide, but I also have an other version in my home directory. When I run gitolite-shell, it shows me it uses Git 1.9.0. The version in my home directory.)
I cloned and installed gitolite as a shell user. I also run gitolite setup as the same user. (As far as I understand, this how I should be doing this...?) Other comparable issues were mostly caused by bypassing the gitolite-shell, but since no keys were added to authorized_keys by the setup, there is no way yet to access the gitolite-shell as a user.
Where does this error come from and how can I resolve it? Unfortunately there's no way for me to seperate the userid's. I have to use one userid for both shell access and gitolite.
Thank you
(Manually executing /media/sdn1/home/hiddedejong/.gitolite/hooks/common/update gives me the 'Empty compile time value' and 'Use of uninitialized value in require' errors.)
I tried the patch before and after installing gitolite. (also ran gitolite setup, but it still fails) I think you want to patch the Common.pm file in my $HOME/bin/lib/Gitolite directory? Because the directory does not exist..
Thank you very much for you help!
This time I got the error (something in the lines of:)
'failed to create symbolic link, gitolite-admin.git/hooks does not exist'
So I manually created the directory hooks and I ran setup again. Now I got the same problem, but now for testing.git. Again, I manually created the directory hooks and ran setup again. This time there were no errors. My public key was added to authorized_keys.
I seems to work fine, I cloned gitolite-admin.git and tried to create new repos. This works, but every time a repository gets created, the same error comes up. However, this one is easily resolved by creating the hooks directory manually on the server and running 'gitolite setup -pk [keyfile]' again.
The exact error message:
remote: Initialized empty Git repository in /media/sdn1/home/hiddedejong/repositories/water.git/
remote: ln: failed to create symbolic link `water.git/hooks/update': No such file or directory
remote: FATAL: ln -sf failed: at /media/sdn1/home/hiddedejong/gitolite/src/lib/Gitolite/Common.pm line 190, <DATA> line 1.