•  
      request #11862 gitolite setup broken
    Infos
    #11862
    Lyderic Dubut (ldubut)
    2022-05-23 10:34
    2018-07-19 10:49
    12479
    Details
    gitolite setup broken

    When ssh key are added, system event return error:

    /var/lib/gitolite/.ssh/authorized_keys is empty. In order to retrieve a file with the gitolite admin public key, run the script : /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh

    Next running /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh return:

    /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh: ligne25: /etc/init.d/codendi: Aucun fichier ou dossier de ce type
    rm: impossible de supprimer « /var/lib/gitolite/.ssh/authorized_keys »: Aucun fichier ou dossier de ce type
    /bin/cat: /home/codendiadm/.ssh/id_rsa_gl-adm.pub: Aucun fichier ou dossier de ce type
    Recreate authorized_keys and add gl-adm public key
    authorized_keys correctly filled
    -bash: line 0: cd: /var/lib/codendi/gitolite/admin: No such file or directory
    /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh: ligne53: /etc/init.d/codendi: Aucun fichier ou dossier de ce type

     

    SCM/Git
    Empty
    EL7 (CentOS|RHEL)
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2018-10-04
    Attachments
    Empty
    References
    Referencing request #11862

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2022-05-23 10:34

    Hello, This issue still exists today on a fresh CentOS and clean install.

    Hello,

    It would be preferable to open a dedicated request with your setup logs. It is very unlikely the issue is the same since a good chunk of the related code has been rewritten and the script mentioned in the traces of this request does not exist anymore.

    User avatar
    Dara Ardalan (daraa)2022-05-22 16:36

    Hello, This issue still exists today on a fresh CentOS and clean install.

    User avatar
    I am also facing the same issue.

    Error log:
    /var/lib/gitolite/.ssh/authorized_keys is empty. In order to retrieve a file with the gitolite admin public key, run the script : /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh

    Script excution:

    /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh
    /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh: line 25: /etc/init.d/codendi: No such file or directory
    rm: cannot remove ‘/var/lib/gitolite/.ssh/authorized_keys’: No such file or directory
    /bin/cat: /home/codendiadm/.ssh/id_rsa_gl-adm.pub: No such file or directory
    Recreate authorized_keys and add gl-adm public key
    /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh: line 42: /var/lib/gitolite/.ssh/authorized_keys: No such file or directory
    /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh: line 43: /var/lib/gitolite/.ssh/authorized_keys: No such file or directory
    /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh: line 44: /var/lib/gitolite/.ssh/authorized_keys: No such file or directory
    authorized_keys correctly filled
    chown: cannot access ‘/var/lib/gitolite/.ssh/authorized_keys’: No such file or directory
    -bash: line 0: cd: /var/lib/codendi/gitolite/admin: No such file or directory
    /usr/share/tuleap/plugins/git/bin/recreate_authorized_keys.sh: line 53: /etc/init.d/codendi: No such file or directory
    User avatar
    Clean install have the same issue in a Centos 7, repositories can't be created, the system_check fails, returning this error /var/lib/gitolite/.ssh/authorized_keys is empty. In order to retrieve a file with the gitolite admin public key, run the scrip ....
    User avatar
    I am experiencing the same issue on a fresh install of Tuleap 11 on CentOS 7.
    Reopen?
    User avatar

    Recent install no longer highlight this bug


    • Status changed from New to Closed
    • Close date set to 2018-10-04