•  
      request #3477 ROOT_DAILY error
    Infos
    #3477
    Jean-Louis Schricke (mesulog)
    2013-06-05 08:04
    2013-05-23 10:28
    2281
    Details
    ROOT_DAILY error
    Since upgrade to Tuleap 6.0, I get an error at root daily operation.
    It seems that there are problems with GIT which is not installed on my machine (see attached file).

    How can I disable these operations ?
    Site admin
    6.0
    CentOS 5 + php51
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Waiting for information
    Empty
    Attachments
    References
    References list is empty

    Follow-ups

    User avatar
    Manuel,

    Reinstalling package didn't solve the ROOT_DAILY error :

    Unable to dump ssh keys (error code: 255): PHP Fatal error: Uncaught exception 'Git_Command_Exception' with message 'Command execution failure: push origin master (return value: 128) Permission denied, please try again.%%%Permission denied, please try again.%%%Permission denied (publickey,gssapi-with-mic,password).%%%fatal: The remote end hung up unexpectedly' in /usr/share/codendi/plugins/git/include/Git_Exec.class.php:156
    Stack trace:
    #0 /usr/share/codendi/plugins/git/include/Git_Exec.class.php(146): Git_Exec->execInPath('push origin mas...', Array)
    #1 /usr/share/codendi/plugins/git/include/Git_Exec.class.php(142): Git_Exec->gitCmdWithOutput('push origin mas...', Array)
    #2 /usr/share/codendi/plugins/git/include/Git_Exec.class.php(112): Git_Exec->gitCmd('push origin mas...')
    #3 /usr/share/codendi/plugins/git/include/Git_Gitolite_SSHKeyMassDumper.class.php(38): Git_Exec->push()
    #4 /usr/share/codendi/plugins/git/bin/gl-dump-sshkeys.php(37): Git_Gitolite_SSHKeyMassDumper->dumpSSHKeys()
    #5 {main}
    thrown in /usr/share/codendi/plugins/git/include/Git_Exec.class.php on line 156

    Fatal error: Uncaught exception 'Git_Command_Exception' with message 'Command execution failure: push origin master (return value: 128) Permission denied, please try again.%%%Permission denied, please try again.%%%Permission denied (publickey,gssapi-with-mic,password).%%%fatal: The remote end hung up unexpectedly' in /usr/share/codendi/plugins/git/include/Git_Exec.class.php:156
    Stack trace:
    #0 /usr/share/codendi/plugins/git/include/Git_Exec.class.php(146): Git_Exec->execInPath('push origin mas...', Array)
    #1 /usr/share/codendi/plugins/git/include/Git_Exec.class.php(142): Git_Exec->gitCmdWithOutput('push origin mas...', Array)
    #2 /usr/share/codendi/plugins/git/include/Git_Exec.class.php(112): Git_Exec->gitCmd('push origin mas...')
    #3 /usr/share/codendi/plugins/git/include/Git_Gitolite_SSHKeyMassDumper.class.php(38): Git_Exec->push()
    #4 /usr/share/codendi/plugins/git/bin/gl-dump-sshkeys.php(37): Git_Gitolite_SSHKeyMassDumper->dumpSSHKeys()
    #5 {main}
    thrown in /usr/share/codendi/plugins/git/include/Git_Exec.class.php on line 156 Create Date: 2013-06-04 19:51:19 Process Date: 2013-06-04 19:52:05
    End Date: 2013-06-04 19:52:07


    I disabled an uninstalled GIT plugin trough Tuleap plugin administration page and i get no more DAILY_ROOT error.
    User avatar
    No need of tuleap-all, it's just a meta package that ease installation of all dependencies.

    Did it solve the ROOT_DAILY error ?
    User avatar
    Manuel,

    Please find yum install result :

    [root@server2T ~]# yum install tuleap-plugin-git
    Loaded plugins: rhnplugin, security
    This system is receiving updates from RHN Classic or RHN Satellite.
    Setting up Install Process
    Resolving Dependencies
    There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
    The program yum-complete-transaction is found in the yum-utils package.
    --> Running transaction check
    ---> Package tuleap-plugin-git.noarch 0:3.22-1 set to be updated
    --> Processing Dependency: gitolite for package: tuleap-plugin-git
    --> Running transaction check
    ---> Package gitolite.noarch 0:2.3.1-1.el5 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved

    =======================================================================================
    Package Arch Version Repository Size
    =======================================================================================
    Installing:
    tuleap-plugin-git noarch 3.22-1 Tuleap 342 k
    Installing for dependencies:
    gitolite noarch 2.3.1-1.el5 epel 172 k

    Transaction Summary
    =======================================================================================
    Install 2 Package(s)
    Upgrade 0 Package(s)

    Total download size: 515 k
    Is this ok [y/N]: y
    Downloading Packages:
    (1/2): gitolite-2.3.1-1.el5.noarch.rpm | 172 kB 00:00
    (2/2): tuleap-plugin-git-3.22-1.noarch.rpm | 342 kB 00:01
    ---------------------------------------------------------------------------------------
    Total 256 kB/s | 515 kB 00:02
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : gitolite 1/2
    Installing : tuleap-plugin-git 2/2

    Installed:
    tuleap-plugin-git.noarch 0:3.22-1

    Dependency Installed:
    gitolite.noarch 0:2.3.1-1.el5

    Complete!

    --------
    REMARK : It seems that package Tuleap-all has been removed whith "yum remove tuleap-plugin-git gitolite" :

    [root@server2T ~]# yum remove tuleap-plugin-git gitolite
    Loaded plugins: rhnplugin, security
    This system is receiving updates from RHN Classic or RHN Satellite.
    Setting up Remove Process
    Resolving Dependencies
    There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
    The program yum-complete-transaction is found in the yum-utils package.
    --> Running transaction check
    ---> Package gitolite.noarch 0:2.3.1-1.el5 set to be erased
    ---> Package tuleap-plugin-git.noarch 0:3.18-1 set to be erased
    --> Processing Dependency: tuleap-plugin-git for package: tuleap-all
    --> Processing Dependency: tuleap-plugin-git for package: tuleap-all
    --> Running transaction check
    ---> Package tuleap-all.noarch 0:6.0-1 set to be erased
    --> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Removing:
    gitolite noarch 2.3.1-1.el5 installed 461 k
    tuleap-plugin-git noarch 3.18-1 installed 1.3 M
    Removing for dependencies:
    tuleap-all noarch 6.0-1 installed 99

    Transaction Summary
    ================================================================================
    Remove 3 Package(s)
    Reinstall 0 Package(s)
    Downgrade 0 Package(s)

    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Erasing : tuleap-all 1/3
    Erasing : tuleap-plugin-git 2/3
    Erasing : gitolite 3/3
    attention: /var/lib/gitolite/.ssh/authorized_keys sauvé en tant que /var/lib/gitolite/.ssh/authorized_keys.rpmsave

    Removed:
    gitolite.noarch 0:2.3.1-1.el5 tuleap-plugin-git.noarch 0:3.18-1

    Dependency Removed:
    tuleap-all.noarch 0:6.0-1
    User avatar
    It seems there is a bug with git and gitolite installation.
    I would recommand to (I assume you didn't start using git):
    #1 desactivate & uninstall git plugin from tuleap interface
    #2 yum remove tuleap-plugin-git gitolite
    #3 rm -rf /usr/com/gitolite /var/lib/gitolite
    #4 yum install tuleap-plugin-git

    -> please paste here the restult of this command

    #5 install and activate git plugin from Tuleap admin interface

    Does that solve the problem ?
    User avatar
    Manuel,

    Please find below command responses :

    [root@server2T ~]# ls -ld /home
    drwxr-xr-x 9 root root 4096 avril 12 20:24 /home

    [root@server2T ~]# ls -ld /home/codendiadm
    drwx------ 3 codendiadm codendiadm 4096 avril 15 23:01 /home/codendiadm

    [root@server2T ~]# ls -ld /home/codendiadm/.ssh
    drwx------ 2 codendiadm codendiadm 4096 janv. 2 01:00 /home/codendiadm/.ssh

    [root@server2T ~]# ls -l /home/codendiadm/.ssh/*
    -rw-r--r-- 1 codendiadm codendiadm 182 janv. 2 01:00 /home/codendiadm/.ssh/config
    -rw------- 1 codendiadm codendiadm 1675 janv. 2 01:00 /home/codendiadm/.ssh/id_rsa_gl-adm
    -rw-r--r-- 1 codendiadm codendiadm 409 janv. 2 01:00 /home/codendiadm/.ssh/id_rsa_gl-adm.pub

    [root@server2T ~]# ls -la /usr/com/gitolite
    total 48
    drwxr-x--- 4 gitolite gitolite 4096 janv. 3 12:55 .
    drwxr-xr-x 3 root root 4096 janv. 2 01:00 ..
    -rw-rw-r-- 1 gitolite gitolite 52 janv. 2 01:00 .gitconfig
    drwx------ 6 gitolite gitolite 4096 janv. 2 01:00 .gitolite
    -rw-r--r-- 1 gitolite gitolite 4000 janv. 2 01:00 .gitolite.rc
    drwxr-x--- 2 gitolite gitolite 4096 avril 24 08:14 .ssh

    [root@server2T ~]# ls -la /var/lib/gitolite
    total 16
    drwxr-x--- 3 gitolite gitolite 4096 avril 24 08:14 .
    drwxr-xr-x 34 root root 4096 avril 28 11:29 ..
    drwxr-x--- 2 gitolite gitolite 4096 mai 27 17:34 .ssh
    User avatar
    Could you please run following commands ?

    ls -ld /home
    ls -ld /home/codendiadm
    ls -ld /home/codendiadm/.ssh
    ls -l /home/codendiadm/.ssh/*
    ls -la /usr/com/gitolite
    ls -la /var/lib/gitolite
    User avatar
    Hi Manuel,

    I removed openssh-askpass as you suggested.

    Please find the result of Sandra's command :
    [root@server2T ~]# su - codendiadm -c "cd /var/lib/codendi/gitolite/admin && git push"
    ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
    Permission denied, please try again.
    ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
    Permission denied, please try again.
    ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
    Permission denied (publickey,gssapi-with-mic,password).
    fatal: The remote end hung up unexpectedly
    User avatar
    Hi Jean-Louis,

    There is nothing special to do to get git working

    first you should remove gnome-ssh-askpass as it seems to prevent good working of git operations, as root:
    $> yum remove openssh-askpass

    Then try to run again the command Sandra suggested:
    $> su - codendiadm -c "cd /var/lib/codendi/gitolite/admin && git push
    User avatar
    Sandra,

    I disabled GIT plugin in administration console and I still have the same error in ROOT_DAILY.

    Do you have any documentation on GIT installation under Tuleap ?
    What has to be configured in /etc/codendi/plugins/git/etc ?
    User avatar
    This is the result:
    -------------------
    su - codendiadm -c "cd /var/lib/codendi/gitolite/admin && git push"

    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified


    (gnome-ssh-askpass:31924): Gtk-WARNING **: cannot open display:
    Permission denied, please try again.
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified


    (gnome-ssh-askpass:31925): Gtk-WARNING **: cannot open display:
    Permission denied, please try again.
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified


    (gnome-ssh-askpass:31926): Gtk-WARNING **: cannot open display:
    Permission denied (publickey,gssapi-with-mic,password).
    fatal: The remote end hung up unexpectedly
    User avatar
    I get errors when running this script :
    ------------------
    Shutting down Tuleap: [OK]
    Recreate authorized_keys and add gl-adm public key
    authorized_keys correctly filled
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified


    (gnome-ssh-askpass:28470): Gtk-WARNING **: cannot open display:
    Permission denied, please try again.
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified


    (gnome-ssh-askpass:28471): Gtk-WARNING **: cannot open display:
    Permission denied, please try again.
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified


    (gnome-ssh-askpass:28472): Gtk-WARNING **: cannot open display:
    Permission denied (publickey,gssapi-with-mic,password).
    fatal: The remote end hung up unexpectedly
    Starting Tuleap: [OK]
    ------------------

    Of course I could remove git plugin but it means that I will not be able to try GIT if I want to make a test with a new or test project.
    User avatar
    Try to run this script: /usr/share/codendi/plugins/git/bin/recreate_authorized_keys.sh

    But I strongly advise you to remove git plugin if you do not use it.
    User avatar
    Sandra,
    Please find below the result of this command :
    [root@server2T utils]# rpm -qa | grep git
    tuleap-plugin-git-3.18-1
    git-1.7.11.3-1.el5.rf
    gitolite-2.3.1-1.el5
    xorg-x11-drv-digitaledge-1.1.0-1.1

    In fact GIT is installed but has never been configured.
    Is there any key dedicated to GIT missing in my local.inc since upgrade from Tuleap 5.12 to 6.0 ?
    User avatar
    Go to the plugin administration and check this plugin is well uninstall.
    Then can you make a "rpm -qa | grep git", please?

    • Status changed from New to Waiting for information
    • Is an Enhancement or an internal improvement? set to