Error Stage commit failed When Upgrading from 6.5.22 to 7.6.1

When using upgrade wizard to upgrade from 6.5.22 to 7.6.1 it failed in the process 4 of 6 (Upgrade). the error returned is; Error Stage commit failed.

Below is an abstract from the UpgradeWizard.log:

Mon, 29 Feb 2016 15:21:48 -0600 [Upgrader] - Copying upgrade/scripts/post/1_ClearVarDefs.php

Mon, 29 Feb 2016 15:21:48 -0600 [Upgrader] - ERROR: Exception: Unable to create directory: /var/www/vhosts/EBDted.staging.expertbizdev.com/upgrade/scripts/post

When I clock on go to home page I receive "Database failure. Please refer to sugarcrm.log for details."

Has anyone come across this type of issue during an upgrade?

- David

Parents
  • Hi Alan:

    I use the following settings. And I have upgraded other instances without major issue.

    find . -type d -exec chmod 0755 {} \;

    find . -type f -exec chmod 0644 {} \;

    find ./cache -type d -exec chmod 0775 {} \;

    find ./cache -type f -exec chmod 0664 {} \;

    I replace "./cache" with "./modules", "./custom", and "./data" in both of the above  lines to run all the changes on those directories and files.

    Lastly I run these lines to change the final file permissions and owner.

    chmod 664 config.php config_override.php

    chown -R apache:apache <instance name>

    Still have not resolved.

    Best Regards,

    David

  • Hi David,

    Does your config.php or config_override.php have anything set for $sugar_config['default_permissions']['dir_mode']? Does the directory "upgrade/scripts/post/" exist?

    -Alan

Reply Children
  • Alan:

    my copnfig.php was set like this;

      array (

        'dir_mode' => 504,

        'file_mode' => 432,

        'user' => 'apache',

        'group' => 'apache',

      ),

    I changed it to; (all my other instances had dir_mode' => 1528)

      array (

        'dir_mode' => 1528,

        'file_mode' => 432,

        'user' => 'apache',

        'group' => 'apache',

      ),

    Tried upgrading, same issue. ERROR: Exception: Unable to create directory: /var/www/vhosts/EBDted.staging.expertbizdev.com/upgrade/scripts/post

    The the directory "upgrade/scripts/post/" does not exist in any of my 6.5 instances. It look to me that the "Upgrade" directory gets created during the V7 upgrade process. All my successful 6.5 to 7 instances have the upgrade/scripts/(post, pre & sql) directory.

    Thinking of creating the directories and giving it another go.

    - David