•  
      request #1410 System event "EDIT_SSH_KEYS" fail
    Infos
    #1410
    Thomas Cottier (tcottier)
    2012-10-05 16:52
    2012-09-11 14:05
    697
    Details
    System event "EDIT_SSH_KEYS" fail
    On a test instance of tuleap i tried to add a ssh key in siteadmin profile.

    System event "EDIT_SSH_KEYS" keeps showing a running status and every other events since are in a running status too.

    Here are some php error logs generated for each new sys events:

    [11-Sep-2012 13:30:02] PHP Warning: chdir(): No such file or directory (errno 2) in /usr/share/codendi/plugins/git/include/Git_GitoliteDriver.class.php on line 100
    [11-Sep-2012 13:30:02] PHP Fatal error: Uncaught exception 'Exception' with message 'Unable to dump ssh keys (error code: 1): *** ERROR: Fail to dump ssh keys' in /usr/share/codendi/plugins/git/include/gitPlugin.class.php:261
    Stack trace:
    #0 /usr/share/codendi/src/common/event/EventManager.class.php(89): GitPlugin->dump_ssh_keys(NULL)
    #1 /usr/share/codendi/src/common/backend/BackendSystem.class.php(466): EventManager->processEvent('dump_ssh_keys', NULL)
    #2 /usr/share/codendi/src/common/system_event/include/SystemEvent_SYSTEM_CHECK.class.php(102): BackendSystem->dumpSSHKeys()
    #3 /usr/share/codendi/src/common/system_event/SystemEventManager.class.php(308): SystemEvent_SYSTEM_CHECK->process()
    #4 /usr/share/codendi/src/utils/process_system_events.php(72): SystemEventManager->processEvents()
    #5 {main}
    thrown in /usr/share/codendi/plugins/git/include/gitPlugin.class.php on line 261


    Empty
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed (disabled)
    Empty
    Attachments
    Empty
    References
    References list is empty

    Follow-ups

    User avatar
    During the installation of git plugin and its dependecies, the directory "/var/lib/codendi/gitolite/admin" was not created. This time not because of selinux, but because the installed gitolite package came from epel repo instead of tuleap repo.

    I removed and reinstalled gitolite from the good repository and everything seems to work.

    I added gitolite to the excluded packages list in the epel repo config file.

    I guess this bug is closed until my next git plugin installation.

    • Status changed from Reopened (disabled) to Closed (disabled)
    • CC list set to
    • Platform set to
    • Is an Enhancement or an internal improvement? set to
    User avatar
    I reopen the bug, as I just reproduced it on projetsdetudiants.

    SELinux is permissive, I installed git-plugin (with dependencies) and activated it in the admin interface. System events fails each time with the same message.

    • Status changed from Closed (disabled) to Reopened (disabled)
    User avatar
    It seems that during the installation SElinux prevented the installation of a git repo containing users keys. Disabling selinux, reinstalling git packages, and re-creating users and repo fixed the problem.