•  
      request #12436 Install of Tuleap fails: gitolite directory not found
    Infos
    #12436
    Kenneth MacCallum (kmaccallum2000)
    2023-06-09 22:00
    2018-10-24 22:40
    13108
    Details
    Install of Tuleap fails: gitolite directory not found
    I worked through the install guide and it fails when installing tuleap-plugin-git.

    See below for details. OS = CentOS 7.5

    It seems like the /var/lib/gitolite directory does not exist in this version of CentOS. Instead it has a gitolite3 directory.

    Any idea what to do to continue with the install?

    thanks.

    ...
    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Installing:
    tuleap-plugin-git noarch 4.798-10.6.99.63_1.el7 Tuleap 1.8 M

    Transaction Summary
    ================================================================================
    Install 1 Package

    Total download size: 1.8 M
    Installed size: 10 M
    Is this ok [y/d/N]: y
    Downloading packages:
    tuleap-plugin-git-4.798-10.6.99.63_1.el7.noarch.rpm | 1.8 MB 00:08
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    usermod: no changes
    chmod: cannot access ‘/var/lib/gitolite’: No such file or directory
    error: %pre(tuleap-plugin-git-4.798-10.6.99.63_1.el7.noarch) scriptlet failed, exit status 1
    Error in PREIN scriptlet in rpm package tuleap-plugin-git-4.798-10.6.99.63_1.el7.noarch
    Verifying : tuleap-plugin-git-4.798-10.6.99.63_1.el7.noarch 1/1

    Failed:
    tuleap-plugin-git.noarch 0:4.798-10.6.99.63_1.el7

    Complete!
    Installation process
    10.6
    EL7 (CentOS|RHEL)
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2023-03-04
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    Supa mic (supamic)2023-06-09 22:00

    I had to manually create the "/var/lib/gitolite" directory to resolve on a fresh Rocky 9 install, setting "SELINUX=permissive" in file "/etc/sysconfig/selinux" didn't resolve on its own.

    User avatar

    Thanks for your explanation. I think we can close this issue.


    • Status changed from New to Closed
    • Close date set to 2023-03-04
    User avatar

    Hello from the future! I see that this issue is still open, and I ran into it on a new installation today.

    The problem was that I forgot to disable SELinux as mentioned in the Installation documentation.

    SELinux is enabled by default on CentOS 7. To check your current SELinux status, run sestatus. If it shows as enabled, you have to disable it, or at least set it to permissive prior to installing Tuleap. This can be done by setting SELINUX=permissive instead of SELINUX=enabled in /etc/sysconfig/selinux.

    User avatar
    last edited by: Pierre Schmitt (pouet300) 2020-03-29 10:24
    Hello,
    I run into the same issue of Loïc and Neil, starting from a fresh AMI of CentOS 7 on Amazon AWS.
    I solved the issue doing:
    ln -s gitolite3/ gitolite
    chown -R gitolite:gitolite gitolite
    chown -R gitolite:gitolite gitolite3
    chmod o-rx gitolite
    chmod o-rx gitolite3
    [root@ip-... ~]# ls -lah /var/lib/
    total 8.0K
    ...
    lrwxrwxrwx. 1 gitolite gitolite 10 Mar 29 08:01 gitolite -> gitolite3/
    drwxr-x---. 4 gitolite gitolite 130 Mar 29 08:15 gitolite3
    Best regards,
    Pierre
    User avatar
    Loïc DUBOIS (ldubois)2019-04-09 00:53
    I get the exact same issue, using a fresh install of the latest centos 7 build (1810) and running through the full installation instructions. It fails to install the tuleap-plugin-git package. I made the directory that it mentions is missing (/var/lib/gitolite) and change the ownership to gitolite:gitolite and apply a chmod o-rx on this directory. I re-ran the install just for this plugin and it installed fine. No problem after that on the remaining steps of the tuleap installation (configuration).
    User avatar
    last edited by: Neil Herbert (neilherbertuk) 2019-04-01 10:46

    I get the exact same issue, using a fresh install of the latest centos 7 build (1810) and running through the full installation instructions. It fails to install the tuleap-plugin-git package. I made the directory that it mentions is missing (/var/lib/gitolite) and re-ran the install just for this plugin and it installed fine.

     

    However, after setting up Tuleap I now get the following errors:

    * Successful installation!
    Apache has been configured
    su: warning: cannot change directory to /var/lib/gitolite: Permission denied
    -bash: /var/lib/gitolite/.bash_profile: Permission denied
    FATAL: errors found but logfile could not be created
    FATAL: /var/lib/gitolite/.gitolite/logs/gitolite-2019-04.log: Permission denied
    FATAL: die    open /var/lib/gitolite/.gitolite.rc.19661 failed: Permission denied<<newline>>

    User avatar

    I tried to reproduce the git issue locally but I didn't manage to do it. useradd or usermod are supposed to create the missing directories when invoked.

    Do you have more information to share about the base install you did so we can troubleshoot that ?

    User avatar
    I created /var/lib/gitolite and got farther. I then ran into a problem with mariadb colliding with mysql. I uninstalled mariadb and got a little bit further. I still can't access the server with my browser.

    I ran the /usr/share/tuleap/tools/setup.el7.sh script as per the install and it failed. I have not run it again because the instructions say not to. Presumably something else didn't quite get setup correctly.

    It's a bit disheartening that I am using the recommended OS with the most recent production version and it does not go smoothly. Sigh.