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

Parents Reply Children
  • 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

  • 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