•  
      request #13600 installation failed with plugin-git
    Infos
    #13600
    Stefan K (superb00b)
    2023-03-04 15:23
    2019-07-04 12:06
    14772
    Details
    installation failed with plugin-git
    When I follow the instructions from here [1] the installation failed because of package tuleap-plugin-git.noarch 0:4.897-11.3_1.el7. It also doesn't matter if I use stable or dev -branch from the repo.
    I guess the important output from the installation is:
    162/169
    useradd: cannot create directory /var/lib/gitolite
    chmod: cannot access ‘/var/lib/gitolite’: No such file or directory
    error: %pre(tuleap-plugin-git-4.897-11.3_1.el7.noarch) scriptlet failed, exit status 1
    Error in PREIN scriptlet in rpm package tuleap-plugin-git-4.897-11.3_1.el7.noarch
    Installing : tuleap-plugin-pullrequest-0.27.190-11.3_1.el7.noarch 164/169
    error: tuleap-plugin-git-4.897-11.3_1.el7.noarch: install failed

    I also attached the mostly complete output from the installation


    [1] https://docs.tuleap.org/installation-guide/full-installation.html#tuleap-installation
    Installation process
    development
    EL7 (CentOS|RHEL)
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2023-03-04
    Attachments
    References
    References list is empty

    Follow-ups

    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
    Lek (lek)2019-12-26 13:07
    Hi there, I found that if I disable SELinux, installation will be worked.
    User avatar
    Lek (lek)2019-12-24 18:50
    Hi, I met this error also when I install on CentOS, here is the content of /etc/centos-release:

    ```
    CentOS Linux release 7.6.1810 (Core)
    ```
    User avatar
    last edited by: Michael Kesper (mkesper) 2019-10-17 15:05
    Gitolite is in reality gitolite3.
    As a workaround, I created a symlink from /var/lib/gitolite3 to /var/lib/gitolite.
    This should be fixed in the package, however.

    This workaround seems not really successful, though, leads later to errors:

    # LC_ALL=C /usr/share/tuleap/tools/setup.el7.sh --configure --server-name=my_server --mysql-server=localhost
    Apache is already 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-10.log: Permission denied
    FATAL: die open /var/lib/gitolite/.gitolite.rc.10103 failed: Permission denied<<newline>>