After a couple of false starts I've managed to get a copy of Gitorious
up and running on my ubuntu production server. The app itself seems to
be running ok - I can add and remove SSH keys, and create Repositories
via the web interface and see the changes reflected on the file
system.
It seems that I have a problem somewhere with some of the supporting
components as I still can't get remote git clone or push commands to
work. I'd appreciate any suggestions for where to look as I've run out
of ideas after a couple of days working on it.
- I've got each of the /etc/init.d/git-ultrasphinx /etc/init.d/git-
daemon /etc/init.d/stomp and /etc/init.d/git-poller up and running
without any errors.
- The script at /var/www/gitorious/script/gitorious has been symlinked
to /usr/bin/gitorious
- The application is being run by the git user. As far as I can make
out I don't have any permissions issues as I can create repositories
and add ssh keys via the web interface.
I have a custom ssh port set up on the server and port 22 is blocked.
I've defined the custom port in .ssh/config on my local machine and
can successfully ssh into the server using this file.
Host gitorious
Hostname
mygitoriousurl.com - (as defined by gitorious_host: in
config/gitorious.yml)
Port XXXX - my custom port
User git
However when I try to clone from a repository which I've created via
the web interface I get an error which suggests that the gitorious
script is not passing on the repository address.
git clone gitorious:my-project-name/my-repository.git
fatal: 'my-project-name/my-repository.git': unable to chdir or not a
git archive
fatal: The remote end hung up unexpectedly
I don't fully understand how the gitorious script handles
authentication so I'm not sure where to start looking to solve this.
The log files don't show any errors. I know that the ssh side of
things is working because 'ssh gitorious' logs me onto the server as
the git user. And I know that the repository exists. I just don't seem
to be able to access it via the url issued by the gitorious web
interface.
Any suggestions much appreciated.