Search code examples
gitcomposer-phpgitolitesshd

Is there a cache or a limit that would mess up composer requires from a gitolite server?


I have a gitolite server on digital ocean. It's hosting a growing number of composer packages. I seem to get "port 22: Connection refused" when I run composer require some/package IF that package has a lot of dependancies. I've gone thru the sshd_conf - and that stuff is pretty well documented anyway - but does anyone know if gitolite has some limits I can adjust? I know gitolite takes over the ssh connection, but I can't find anything in the rc to adjust.


Solution

  • Soes anyone know if gitolite has some limits I can adjust?

    That is what the Gitolite Performance describes:

    TOP TIP: If you have more than 2000 or so repos, then you should be using v3.2 or later;

    If the issue persists, that might be a problem on the server (Digital Ocean) side, and their support should look into it.
    This thread mentions several possibilities, including:

    You [could] have a IPS like fail2ban, which has blocked you for some reason. Go to the console and restart fail2ban, which normally clears any blocking: service fail2ban restart

    The OP Tarek Adam confirms in the comments:

    Turned out to be ufw. (fail2ban was installed but idle.)
    Same difference though (firewall related)