•  
      request #14603 tuleap-plugin-git does not install
    Infos
    #14603
    Jeff CLAY (jeffclay)
    2021-08-21 15:39
    2020-02-27 16:52
    15847
    Details
    tuleap-plugin-git does not install
    chmod: cannot access ‘/var/lib/gitolite’: No such file or directory
    error: %pre(tuleap-plugin-git-4.1027-11.11.99.220_1.el7.noarch) scriptlet failed, exit status 1
    Error in PREIN scriptlet in rpm package tuleap-plugin-git-4.1027-11.11.99.220_1.el7.noarch
    Updating : firewalld-filesystem-0.6.3-2.el7_7.3.noarch 29/103
    error: tuleap-plugin-git-4.1027-11.11.99.220_1.el7.noarch: install failed

    is the error given when trying to run yum update.
    upon inspection, the dir /var/lib/gitolite does not exist but /var/lib/gitolite3 does.


    During a fresh install, the following error is given.

    useradd: cannot create directory /var/lib/gitolite
    chmod: cannot access ‘/var/lib/gitolite’: No such file or directory
    error: %pre(tuleap-plugin-git-4.1027-11.11.99.220_1.el7.noarch) scriptlet failed, exit status 1
    Error in PREIN scriptlet in rpm package tuleap-plugin-git-4.1027-11.11.99.220_1.el7.noarch
    Installing : tuleap-plugin-pullrequest-0.27.254-11.11.99.220_1.el7.noarch 120/125
    error: tuleap-plugin-git-4.1027-11.11.99.220_1.el7.noarch: install failed

    SCM/Git
    11.11
    EL7 (CentOS|RHEL)
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2021-08-21
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar

    Issue seems resolved. I close this one. Feel free to reopen it if necessary.


    • Status changed from Acknowledged to Closed
    • Close date set to 2021-08-21
    User avatar
    Jeff CLAY (jeffclay)2020-03-02 15:35
    thanks, i was able to fix this by doing:

    yum remove gitolite3
    userdel gitolite
    userdel gitolite3
    yum install tuleap-plugin-git
    User avatar
    Thomas Gerbet (tgerbet)2020-02-27 17:06
    Hello,

    This is weird because the specfile does check if there is already a "gitolite" user on the system and does create the home folder if that's the case.

    if getent passwd gitolite >/dev/null; then
    /usr/sbin/usermod -c 'Git' -d '/var/lib/gitolite' -g gitolite gitolite
    else
    /usr/sbin/useradd -r -c 'Git' -m -d '/var/lib/gitolite' -g gitolite gitolite
    fi


    This means you have already an UNIX user named "gitolite" on your server before the installation of Tuleap. You should check why that's the case.

    • Status changed from New to Acknowledged