Upgrade wizard fails on second phase after validating all file permissions and tables

Hello All, i am on suite CRM 7.6.8 and I am trying to upgrade with with file SuiteCRM-Upgrade-7.6.x-to-7.8.20.zip.
After passing the validations for file permissions and tables, which passes ok, I click on “next” and the page becomes blank/empty.
I have already triple-checked that all directories are on 755 (except the ones like upload, cache, etc that goes with 775 permission ) and all required files with 644, so it is not a permissions issue.
When I check the upgradeWizard.log log I don’t see no errors with the below lines:

  • No Permissions errors found!
  • Finished database permissions check.
  • setting session variables…
  • At upload.php
  • finding new files for upgrade

I gave up reading all and every post related to the upgrade.

Any suggestion please???
many thanks!

“No permissions errors found” has a different meaning (please don’t ask!)

The reality is that, BEFORE you install, you have to set OS files/folders permissins correctly as well as OS owner/group correctly.

If you dont’ do it correctly the installation may fail or, even worse, the whole system will be faulty, and yo may not even notice until it’s too late!!!

Have you really checked correctly?

You mention only folders/files…

How about owner/group?

Do you have a crontab entry? Which are the owner/group that run your cron jobs? Are they the same as the ones you have set for all your SuiteCRM folder/files? (they must be the same!)

To reset permissions (not owner/group) you may try this:
https://github.com/amariussi/chperms

Many thanks for your quick response; I think permissions and owner/group are ok, altough I don’t lose anything bu running the script for resetting permissions.
I will let you know how it ogoes.
thanks again!

Hello Amariussi, I did run the script altought it did not have any effects and I still have the same issue (upgrade wizzard doesnt pass the 2nd step after checking permissions.)
the user/gropup for the Suitecrm are the someones as apache uses and all files permissions are ok.
I feel pretty frustrated as I stuck without the change of upgrading the CRM…

Any and all help is much appreciated, many thanks for your continued support!.

I continued to test that every permission, file/folder ownership is but still, cannot move past the 2nd screen of the upgrade wizard, so i am sutck without being able to keep SuiteCRm updated…, anyone might help with this??
any suggestion is much appreciated.

Just in case it helps troubleshoot, this is what I get at upgradeWizard.log each time I try to upgrade:

ue, 24 Jul 2018 13:32:32 -0700 [UpgradeWizard] - Upgrade started. At start.php
Tue, 24 Jul 2018 13:32:32 -0700 [UpgradeWizard] - at unlinkUWTempFiles()
Tue, 24 Jul 2018 13:32:32 -0700 [UpgradeWizard] - finished!
Tue, 24 Jul 2018 13:32:32 -0700 [UpgradeWizard] - resetting $_SESSION
Tue, 24 Jul 2018 13:32:40 -0700 [UpgradeWizard] - setting session variables…
Tue, 24 Jul 2018 13:32:40 -0700 [UpgradeWizard] - [At systemCheck.php]
Tue, 24 Jul 2018 13:32:40 -0700 [UpgradeWizard] - Starting file permission check…
Tue, 24 Jul 2018 13:40:52 -0700 [UpgradeWizard] - Finished file permission check.
Tue, 24 Jul 2018 13:40:52 -0700 [UpgradeWizard] - Starting database permissions check…
Tue, 24 Jul 2018 13:40:52 -0700 [UpgradeWizard] - Checking CREATE TABLE permissions…
Tue, 24 Jul 2018 13:40:52 -0700 [UpgradeWizard] - Checking INSERT INTO permissions…
Tue, 24 Jul 2018 13:40:52 -0700 [UpgradeWizard] - Checking UPDATE TABLE permissions…
Tue, 24 Jul 2018 13:40:52 -0700 [UpgradeWizard] - Checking SELECT permissions…
Tue, 24 Jul 2018 13:40:52 -0700 [UpgradeWizard] - Checking DELETE FROM permissions…
Tue, 24 Jul 2018 13:40:53 -0700 [UpgradeWizard] - Checking ALTER TABLE ADD COLUMN permissions…
Tue, 24 Jul 2018 13:40:53 -0700 [UpgradeWizard] - Checking ALTER TABLE CHANGE COLUMN permissions…
Tue, 24 Jul 2018 13:40:53 -0700 [UpgradeWizard] - Checking ALTER TABLE DROP COLUMN permissions…
Tue, 24 Jul 2018 13:40:53 -0700 [UpgradeWizard] - Checking DROP TABLE permissions…
Tue, 24 Jul 2018 13:40:53 -0700 [UpgradeWizard] - No permissions errors found!
Tue, 24 Jul 2018 13:40:53 -0700 [UpgradeWizard] - Finished database permissions check.
Tue, 24 Jul 2018 13:41:22 -0700 [UpgradeWizard] - setting session variables…
Tue, 24 Jul 2018 13:41:22 -0700 [UpgradeWizard] - At upload.php
Tue, 24 Jul 2018 13:41:22 -0700 [UpgradeWizard] - finding new files for upgrade

I was finally able to find the issue in be able to upgrade my instance.
I am posting the solution for the benefit of the community.
It turns out that not only permissions in ownership needed to be ok.
Also, each time that the operation failed you had to go and delete the dir /cache/upgrades in order to start over for an installation.
The culprit of not being able to go pass the second phase turned out to be the contents of the dir /upload/upgrades, which I renamed (in caser I needed to go back), anna soon as they made that I was able to get the menus to upload the upgrade file and proceed up to the ending , Voilá!

1 Like