upgrade Wizard: "Could not create the temp directory. Check file permissions."

Hola!

Estoy tratando de actualizar la versión de SugarCRM CE de 5.6.18 a 6.5.22, pero en el momento de "subir" el archivo de la actualización (SugarCE-Upgrade-6.5.x-to-6.5.22.zip) el wizard lanza este error:

"Could not create the temp directory. Check file permissions."

ya tomé medidas extremas (de momento no me preocupan ya que es un ambiente de pruebas en una MV):

chmod -R 777 /path/to/my/sugarcrm/

así que no es por permisos... por que ya los tiene TODOS!

Que más puedo revisar?

Les agradezco,

ACC

  • Hi Soporte Tecnico Grupo Belen

    I have faced same error in my upgrade process so I just set below array in config.php and it was work for me. if you provide user and group than blank it and try again.

    array (

        'dir_mode' => 1528,

        'file_mode' => 432,

        'user' => '',

        'group' => '',

      ),

    Thanks.

  • Thank you Bhavesh Patel for your answer.

    I copied the code you mentioned, and pasted it just about the end of my config.php file, right before the last ");"

    so, it looks like this:


    .
    .
    .

          11 => 'html',
          12 => 'htm',
       ),
       'upload_dir' => 'upload/',
       'upload_maxsize' => 30000000,
       'use_common_ml_dir' => false,
       'use_real_names' => true,
       'vcal_time' => '2',
       'verify_client_ip' => true,
       array (
          'dir_mode' => 1528,
          'file_mode' => 432,
          'user' => 'apache',
          'group' => 'apache',
       ),
    );

    But I still get the same error in the "preflight step" of the upgradeWizard ...

    (I also tried it as you said: with blank usr & pwd:

       array (
          'dir_mode' => 1528,
          'file_mode' => 432,
          'user' => '',
          'group' => '',
       ),

    But the error remains...

    This is the entire process:

    UWizard-1.png.

    UWizard-2.png

    UWizard-3.png

    UWizard-4-ERROR.png

    And this is my /var/log/httpd/error_log file:

    [Wed Dec 09 14:40:15 2015] [notice] caught SIGTERM, shutting down

    [Wed Dec 09 14:40:16 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

    [Wed Dec 09 14:40:16 2015] [notice] SSL FIPS mode disabled

    [Wed Dec 09 14:40:16 2015] [notice] Digest: generating secret for digest authentication ...

    [Wed Dec 09 14:40:16 2015] [notice] Digest: done

    [Wed Dec 09 14:40:16 2015] [notice] SSL FIPS mode disabled

    [Wed Dec 09 14:40:16 2015] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations

    [Wed Dec 09 14:41:22 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Users in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=UpgradeWizard&action=index

    [Wed Dec 09 14:41:26 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Users in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=Administration&action=index

    [Wed Dec 09 14:41:27 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=Administration&action=index

    [Wed Dec 09 14:41:27 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=Administration&action=index

    [Wed Dec 09 14:41:27 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=Administration&action=index

    [Wed Dec 09 14:41:27 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=Administration&action=index

    [Wed Dec 09 14:41:27 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=Administration&action=index

    [Wed Dec 09 14:41:29 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Users in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=UpgradeWizard&action=index

    [Wed Dec 09 14:41:52 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=UpgradeWizard&action=index

    [Wed Dec 09 14:41:52 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=UpgradeWizard&action=index

    [Wed Dec 09 14:41:52 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=UpgradeWizard&action=index

    [Wed Dec 09 14:41:52 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=UpgradeWizard&action=index

    [Wed Dec 09 14:41:52 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php?module=UpgradeWizard&action=index

    [Wed Dec 09 15:15:29 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Users in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php

    [Wed Dec 09 15:15:30 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php

    [Wed Dec 09 15:15:30 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php

    [Wed Dec 09 15:15:30 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php

    [Wed Dec 09 15:15:30 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php

    [Wed Dec 09 15:15:30 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php

    [Wed Dec 09 15:15:30 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Administration in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php

    [Wed Dec 09 15:16:44 2015] [error] [client 10.0.0.210] PHP Notice:  Undefined index: Users in /var/www/sugarcrm/modules/acl_fields/fields_logic.php on line 42, referer: http://MyDomain.com/sugarcrm/index.php

    [Wed Dec 09 15:16:45 2015] [error] [client 10.0.0.210] PHP Warning:  chown(): Operation not permitted in /var/www/sugarcrm/include/utils/sugar_file_utils.php on line 313, referer: http://MyDomain.com/sugarcrm/index.php

    Any help would be much appreciated

    Saludos!

    ACC

  • Hi Saludos,

    As I can see the permissions which you have provided are 1528 for directory and 432 for files. Which means 770 (for 1528) and 660(for 432).

    As per my understanding For 775 value will be 1533 and 664 value will be 436

    Can you please try by giving following permissions?

    array (

      'dir_mode' => 1533,

      'file_mode' => 436,

      'user' => '',

      'group' => '',

    ),

    Also I don't have any information about your server user/group information, So also you can try by passing user and group name as well. For eg "apache".

    array (

      'dir_mode' => 1533,

      'file_mode' => 436,

      'user' => 'apache',

      'group' => 'apache',

    ),

  • Hello Soporte Tecnico Grupo Belen,

    I hope you are doing well.

    Please follow the steps and do let us know what the error you are facing after these steps :

    (1)  I think you are facing some permission issue on cache folder. If your sugarcrm is hosted on linux server then you can give 755 permission to all the folders into cache and 644 permission to all the files of cache. Rather I believe that your sugarcrm has some permission issues so better to run the following command to repair your whole sugarcrm permission issue.

    sudo find ./ -type d -exec chmod 755 {} \;

    sudo find ./ -type f -exec chmod 644 {} \;

    Note :  You must be a SUDO user to apply this command.

    (2) You need to put the following 2 lines into your config_override.php file.


    $sugar_config['default_permissions']['user'] = '';

    $sugar_config['default_permissions']['group'] = '';

    Please let us know if you are facing the issue.

    Thanks

  • Devang Mehta, after I changed the values you said, and tried to get in the UpgradeWizard one more time, I noticed that it worked!!!

    Now the Sugar CRM's "about"  says :

    Versión 6.5.22 (Build 1055)

    Copyright © 2004-2011 SugarCRM Inc

    So, Thank you very much! But now it seems I have a similar issue while I try to install a new module.

    But I think I better create a new post and mark this as answered.

  • Prashant Patel, you definitely pointed me in the right direction... Thank you.