Results 1 to 6 of 6

Thread: Backup failure

  1. #1
    didikopp is offline Member
    Join Date
    Jun 2011
    Posts
    7

    Default Backup failure

    Dear forum members

    Since the update to 6.2.0 the backup-functionality in my Sugar system doesn't work anymore. It accepts the indicated backup folder (which has write permissions for everybody) and filename, the file (a .zip file) is created, but then the backup process fails with the following error:

    Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/var/www/sugarcrm/modules/Contacts/views) [<a href='function.RecursiveDirectoryIterator---construct'>function.RecursiveDirectoryIterator---construct</a>]: failed to open dir: Too many open files' in /var/www/sugarcrm/include/utils/php_zip_utils.php:102 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('/var/www/sugarc...') #1 /var/www/sugarcrm/include/utils/php_zip_utils.php(102): RecursiveDirectoryIterator->getChildren() #2 /var/www/sugarcrm/modules/Administration/views/view.backups.php(125): zip_dir('.', '/home/administr...') #3 /var/www/sugarcrm/include/MVC/View/SugarView.php(127): ViewBackups->display() #4 /var/www/sugarcrm/include/MVC/Controller/SugarController.php(293): SugarView->process() #5 /var/www/sugarcrm/include/MVC/Controller/SugarController.php(274): SugarController->processView() #6 /var/www/sugarcrm/include/MVC/SugarApplication.php(85): SugarController->execute() #7 / in /var/www/sugarcrm/include/utils/php_zip_utils.php on line 102

    My System:
    SugarCommunityEdition Version 6.2.0 (Build 6354)
    MySQL Version: 5.0.51a
    PHP Version 5.2.4-2ubuntu5.17
    Linux 2.6.24-29

    Steps to reproduce:
    Under Administration/System click on "Sicherungskopien"
    In field "Verzeichnis" enter ~/sugar-backups
    In field "filename" enter "backup.zip"
    -> Einstellungen bestätigt. Klicken Sie auf Backup um zu sichern.
    Click on "Backup"
    -> Error listed above

    Your help would be appreciated very much.

    Dietmar Kopp

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Backup failure

    In 6.2.0 the zip library has been changed.
    IN 6.1.x the old pclzip.lib had been used, in 6.2 the ZipArchive class is used.
    Unfortunately this ZipArchive class is not able to add a whole SugarCRM installation in one file
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    didikopp is offline Member
    Join Date
    Jun 2011
    Posts
    7

    Default Re: Backup failure

    Dear kuske

    Thank you very much for your reply. Do you think that simply replacing the mentioned lib by an older version will solve the problem, or do we have to wait for a Sugar update?

    Many Greetings

    Dietmar Kopp

  4. #4
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Backup failure

    I'm yet testing
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  5. #5
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Backup failure

    Just change the second code line in /include/utils/zip_utils.php from

    PHP Code:
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
    if(
    class_exists("ZipArchive")) {
        require_once 
    'include/utils/php_zip_utils.php';
        return;
    } else { 
    to

    PHP Code:
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
    if(
    && class_exists("ZipArchive")) {
        require_once 
    'include/utils/php_zip_utils.php';
        return;
    } else { 
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  6. #6
    didikopp is offline Member
    Join Date
    Jun 2011
    Posts
    7

    Smile Re: Backup failure

    Dear Harald

    Thank you very much for your quick and powerfull help.

    This does the trick.

    Many Greetings

    Dietmar Kopp

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How Do I "restore" a backup made in Admin/Backup?
    By FrischInBigD in forum General Discussion
    Replies: 1
    Last Post: 2011-05-19, 09:22 AM
  2. 5.5.1 upgrade failure
    By dkelly in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2010-04-16, 08:22 AM
  3. communication failure
    By admetus2 in forum Help
    Replies: 1
    Last Post: 2008-08-01, 12:02 PM
  4. Cron.php Failure
    By usannsell in forum Help
    Replies: 2
    Last Post: 2006-07-12, 06:51 AM
  5. 3.01 -> 3.5b upgrade failure
    By ldebernardini in forum Help
    Replies: 2
    Last Post: 2005-09-29, 11:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •