Error Upgrading from 7.3.2 to 7.4.1

I need some help. I just upgraded from 3.2 to 4.1 and it seemed to work fine as usual. On the final step of the upgrade wizard, Confirm Layouts, I confirmed the 3 or 4 new layouts by clicking Next and it appeared to work. The next screen showed the same Confirm Layouts page with no layouts in the list. Hitting Next gives me a blank page.

When I started the Upgrade Wizard again, I receive the same final Confirm Layouts Page (the one with no layouts in the list). I can’t get it to start the wizard from the beginning (step 1). Upon looking at the php error log file, I see the following:

[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/Schedulers/Schedulervardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/SugarObjects/VardefManager.php on line 217
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/SchedulersJobs/SchedulersJobvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/SugarObjects/VardefManager.php on line 217
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/InboundEmail/InboundEmailvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/SugarObjects/VardefManager.php on line 217
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/AOD_Index/AOD_Indexvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/SugarObjects/VardefManager.php on line 217
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/SchedulersJobs/language/en_us.lang.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/UpgradeWizard/uw_utils.php on line 647
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/SchedulersJobs/language/en_us.lang.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/SchedulersJobs/SchedulersJobvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/UpgradeWizard/uw_utils.php on line 647
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/SchedulersJobs/SchedulersJobvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/SchedulersJobs/language/en_us.lang.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/Schedulers/lastrun): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/UpgradeWizard/uw_utils.php on line 647
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/Schedulers/Schedulervardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/UpgradeWizard/uw_utils.php on line 647
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/Schedulers/lastrun): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/Schedulers/Schedulervardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/InboundEmail/language/en_us.lang.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/UpgradeWizard/uw_utils.php on line 647
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/InboundEmail/language/en_us.lang.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/InboundEmail/InboundEmailvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/UpgradeWizard/uw_utils.php on line 647
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/InboundEmail/InboundEmailvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/InboundEmail/language/en_us.lang.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/AOD_Index/language/en_us.lang.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/UpgradeWizard/uw_utils.php on line 647
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/AOD_Index/language/en_us.lang.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/AOD_Index/AOD_Indexvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/UpgradeWizard/uw_utils.php on line 647
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/AOD_Index/language/en_us.lang.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:34 UTC] PHP Warning: unlink(cache/modules/AOD_Index/AOD_Indexvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/dir_inc.php on line 127
[12-Nov-2015 01:02:35 UTC] PHP Warning: unlink(cache/modules//AOD_Index/AOD_Indexvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/Administration/QuickRepairAndRebuild.php on line 458
[12-Nov-2015 01:02:35 UTC] PHP Warning: unlink(cache/modules//SchedulersJobs/SchedulersJobvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/Administration/QuickRepairAndRebuild.php on line 458
[12-Nov-2015 01:02:35 UTC] PHP Warning: unlink(cache/modules//InboundEmail/InboundEmailvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/Administration/QuickRepairAndRebuild.php on line 458
[12-Nov-2015 01:02:35 UTC] PHP Warning: unlink(cache/modules//Schedulers/Schedulervardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/modules/Administration/QuickRepairAndRebuild.php on line 458
[12-Nov-2015 01:02:35 UTC] PHP Warning: unlink(cache/modules/Schedulers/Schedulervardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/SugarObjects/VardefManager.php on line 217
[12-Nov-2015 01:02:35 UTC] PHP Warning: unlink(cache/modules/SchedulersJobs/SchedulersJobvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/SugarObjects/VardefManager.php on line 217
[12-Nov-2015 01:02:35 UTC] PHP Warning: unlink(cache/modules/InboundEmail/InboundEmailvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/SugarObjects/VardefManager.php on line 217
[12-Nov-2015 01:02:35 UTC] PHP Warning: unlink(cache/modules/AOD_Index/AOD_Indexvardefs.php): Permission denied in /home/teamscor/public_html/crm.teamscoring.com/include/SugarObjects/VardefManager.php on line 217
[12-Nov-2015 01:02:35 UTC] PHP Fatal error: sugar_file_put_contents_atomic() : fatal rename failure ‘/tmp/temp3tnvgr’ -> ‘cache/modules/Schedulers/Schedulervardefs.php’ in /home/teamscor/public_html/crm.teamscoring.com/include/utils/sugar_file_utils.php on line 194

I don’t see any unusual behavior other than this stuck wizard. I’m afraid I can’t do any more future upgrades.

Does anybody know what this error is and how to eliminate it?

Thank you.

Solved the problem. My suitecrm files are owned by www-data not root. For some reason, the wizard process changed ownership to root which caused later steps in the wizard to fail. I found these files in the cache directory and reset the ownership to www-data and the wizard completed.

Consequently, as part of the wizards pre-flight steps, it alerts you of permission problems before it can go on. I fixed all those in step 1. So the problems with step 5 appear to be a result of the upgrade process and the only symptoms are the broken upgrade wizard.

Anybody know why root ownership keeps coming back on some files?