Upgrade stall - from 7.10.6 to 7.12.8

Having an issue with upgrading from : Version 7.10.6 to 7.12.8.

Successfully did the process in a development environment and it worked. Trying to replicate the exact steps on live and in the Upgrade Wizard, with the upgrade file from server ( SuiteCRM-Upgrade-7.10.x-to-7.12.8.zip ) - Its Stops When in the upload process and goes to the main dashboard.

A couple of the errors in the log are

Wed Jan 25 07:41:52 2023 [13832][1][FATAL] log call at: modules/Administration/index.tpl:54 - MY_FRAME is not set
Wed Jan 25 07:42:03 2023 [13813][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
Wed Jan 25 07:37:19 2023 [13520][1][FATAL] ERROR: There was an error during your upload, please contact an administrator for help.
Wed Jan 25 07:37:19 2023 [13520][1][FATAL] {name:'Login',data: [1]},{name:'Logout',data: [0]},{name:'Created',data: [0]},{name:'Updated',data: [0]},{name:'Deleted',data: [0]},{name:'View',data: [0]},{name:'Restored',data: [0]}

My environment is WHM/CPanel - I believe I have allocated all necessary resources such as
max_execution_time - 300
max_input_time - 600
max_input_vars- 1000
memory_limit-256M
post_max_size - 256M
session.gc_maxlifetime- 1440
upload_max_filesize - 256M

Checked the compatibility matrix and seem to be all good there.
I’ve have run quick repair after each attempt .

Any other suggestions?

I suggest deleting cache/upgrades/temp and trying again.

Also, in Admin / daignostics / phpinfo, check if those values you set for post_max_size and upload_max_filesize are effective.

1 Like

Thank you :grinning:
Great suggestion - Yes both values seem to be applied : in local value (256M)

When you say delete ( cache/upgrades/temp)- you mean the folder? (as the directory seems to already be empty )

I meant delete the contents. At some point, SuiteCRM had a bug where interrupted installations would leave a lot of files there. If it’s empty, it’s not the problem.

1 Like

Got it. Will duplicate the instance again, then do the upgrade to verify all the steps we took to upgrade are working. Thank you for the suggestion :grin:

Found a few errors in logs:
In suitecrm.log:

Tue Jan 31 01:16:07 2023 [7988][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a dir.
Tue Jan 31 01:16:18 2023 [7991][1][FATAL] log call at: modules/Administration/index.tpl:54 - MY_FRAME is not set
Tue Jan 31 01:17:01 2023 [7991][1][FATAL] ERROR: There was an error during your upload, please contact an administrator for help.
Tue Jan 31 01:17:01 2023 [7991][1][FATAL] {name:'Login',data: [2,3,3,2,1,1,2]},{name:'Logout',data: [0,1,0,0,0,0,1]},{name:'Created',data: [0,0,14,1,0,0,0]},{name:'Updated',data: [6,0,32,10,22,0,16]},{name:'Deleted',data: [0,0,0,0,0,0,0]},{name:'View',data: [28,1,73,37,45,1,43]},{name:'Restored',data: [0,0,0,0,0,0,0]}
Tue Jan 31 01:17:02 2023 [8038][1][FATAL] {name:'Login',data: [2,3,3,2,1,1,2]},{name:'Logout',data: [0,1,0,0,0,0,1]},{name:'Created',data: [0,0,14,1,0,0,0]},{name:'Updated',data: [6,0,32,10,22,0,16]},{name:'Deleted',data: [0,0,0,0,0,0,0]},{name:'View',data: [28,1,73,37,45,1,43]},{name:'Restored',data: [0,0,0,0,0,0,0]}
Tue Jan 31 01:17:03 2023 [7988][1][FATAL] {name:'Login',data: [2,3,3,2,1,1,2]},{name:'Logout',data: [0,1,0,0,0,0,1]},{name:'Created',data: [0,0,14,1,0,0,0]},{name:'Updated',data: [6,0,32,10,22,0,16]},{name:'Deleted',data: [0,0,0,0,0,0,0]},{name:'View',data: [28,1,73,37,45,1,43]},{name:'Restored',data: [0,0,0,0,0,0,0]}
Tue Jan 31 01:17:07 2023 [7988][1][FATAL] log call at: modules/Administration/index.tpl:54 - MY_FRAME is not set
Tue Jan 31 01:17:38 2023 [8056][1][FATAL] log call at: modules/Administration/index.tpl:54 - MY_FRAME is not set
Tue Jan 31 01:17:41 2023 [8038][1][FATAL] log call at: modules/Administration/index.tpl:54 - MY_FRAME is not set
Tue Jan 31 01:17:49 2023 [8038][1][FATAL] ERROR: rmdir_recursive(): argument cache/themes/SuiteP/modules is not a file or a di```

And UpgradeWizard.log:

Tue, 31 Jan 2023 01:16:26 +0000 [UpgradeWizard] - Upgrade started. At start.php
Tue, 31 Jan 2023 01:16:26 +0000 [UpgradeWizard] - at unlinkUWTempFiles()
Tue, 31 Jan 2023 01:16:26 +0000 [UpgradeWizard] - finished!
Tue, 31 Jan 2023 01:16:26 +0000 [UpgradeWizard] - resetting $_SESSION
Tue, 31 Jan 2023 01:16:29 +0000 [UpgradeWizard] - setting session variables...
Tue, 31 Jan 2023 01:16:29 +0000 [UpgradeWizard] - [At systemCheck.php]
Tue, 31 Jan 2023 01:16:29 +0000 [UpgradeWizard] - Starting file permission check...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Finished file permission check.
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Starting database permissions check...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Checking CREATE TABLE permissions...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Checking INSERT INTO permissions...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Checking UPDATE TABLE permissions...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Checking SELECT permissions...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Checking DELETE FROM permissions...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Checking ALTER TABLE ADD COLUMN permissions...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Checking ALTER TABLE CHANGE COLUMN permissions...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Checking ALTER TABLE DROP COLUMN permissions...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Checking DROP TABLE permissions...
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - No permissions errors found!
Tue, 31 Jan 2023 01:16:44 +0000 [UpgradeWizard] - Finished database permissions check.
Tue, 31 Jan 2023 01:16:47 +0000 [UpgradeWizard] - setting session variables...
Tue, 31 Jan 2023 01:16:47 +0000 [UpgradeWizard] - At upload.php
Tue, 31 Jan 2023 01:16:47 +0000 [UpgradeWizard] - finding new files for upgrade
Tue, 31 Jan 2023 01:16:47 +0000 [UpgradeWizard] - *** UW using [  ] as source for patch files.
Tue, 31 Jan 2023 01:17:30 +0000 [UpgradeWizard] - setting session variables...
Tue, 31 Jan 2023 01:17:30 +0000 [UpgradeWizard] - At upload.php
Tue, 31 Jan 2023 01:17:31 +0000 [UpgradeWizard] - finding new files for upgrade
Tue, 31 Jan 2023 01:17:31 +0000 [UpgradeWizard] - *** UW using [  ] as source for patch files.
Tue, 31 Jan 2023 01:17:31 +0000 [UpgradeWizard] - setting session variables...
Tue, 31 Jan 2023 01:17:31 +0000 [UpgradeWizard] - At upload.php
Tue, 31 Jan 2023 01:17:31 +0000 [UpgradeWizard] - finding new files for upgrade
Tue, 31 Jan 2023 01:17:31 +0000 [UpgradeWizard] - *** UW using [  ] as source for patch files.
Tue, 31 Jan 2023 01:17:33 +0000 [UpgradeWizard] - setting session variables...
Tue, 31 Jan 2023 01:17:33 +0000 [UpgradeWizard] - [At cancel.php]
Tue, 31 Jan 2023 01:17:33 +0000 [UpgradeWizard] - cleaning up files and session.  goodbye.
Tue, 31 Jan 2023 01:17:33 +0000 [UpgradeWizard] - at unlinkUWTempFiles()
Tue, 31 Jan 2023 01:17:33 +0000 [UpgradeWizard] - finished!
Tue, 31 Jan 2023 01:17:33 +0000 [UpgradeWizard] - resetting $_SESSION```

Any thoughts?

It looks like your upgrade went through successfully. In the top-right menu, if you select “About”, do you see the new version?

If so, I think you can ignore those error messages.

Still says: Version 7.10.6 - Seems to die in the upload process. Kicks out to the Dashboard.

Good news. Followed a string that led here LimitRequest Body THEN found this Workaround using htaccess and now am able to get past the “die and go to dashboard” issue. I got to the point to where I had to commit changes for Upgrade… I stopped because users are about to get on the system. Will update after hours…

htaccess in main crm dir (at end of file):

  • Open the .htaccess file
  • Add syntax:
LimitRequestBody 2073741824

Upgrade is complete - The above code and probably additional steps like confirming ownership / groups, helped get it done.

1 Like

Thank you for sharing this solution.
It worked form me too… just one line

Awesome! Great to hear.