AnsweredAssumed Answered

upgrade permission access

Question asked by Chris Korson on Nov 16, 2016
am upgrading our test Debian server SugarCRM 7.5.2.0 to 7.7.0.0. I have loaded the pre req module and trying to run SugarEnt-Upgrade-7.5.x-to-7.7.0.0.zip. It fails on step 5 of 6. Could I please have your comments or suggestions on how to get pass this upgrade wizard error:

Starting script 3_UpgradeAccess

Tue, 15 Nov 2016 20:16:11 -0500 [Upgrader] - PHP: [2] touch(): Utime failed: Permission denied in /var/www/crm-test/cache/upgrades/driver/UpgradeDriver.php at 1444
Tue, 15 Nov 2016 20:16:11 -0500 [Upgrader] - PHP: [2] chmod(): Operation not permitted in /var/www/crm-test/cache/upgrades/driver/UpgradeDriver.php at 1453
Tue, 15 Nov 2016 20:16:11 -0500 [Upgrader] - PHP: [2] chown(): Operation not permitted in /var/www/crm-test/cache/upgrades/driver/UpgradeDriver.php at 1456
Tue, 15 Nov 2016 20:16:11 -0500 [Upgrader] - PHP: [2] chgrp(): Operation not permitted in /var/www/crm-test/cache/upgrades/driver/UpgradeDriver.php at 1459
Tue, 15 Nov 2016 20:16:11 -0500 [Upgrader] - PHP: [2] file_put_contents(/var/www/crm-test/.htaccess): failed to open stream: Permission denied in /var/www/crm-test/cache/upgrades/driver/UpgradeDriver.php at 1473
Tue, 15 Nov 2016 20:16:11 -0500 [Upgrader] - Finished script 3_UpgradeAccess
Tue, 15 Nov 2016 20:16:11 -0500 [Upgrader] - ERROR: Post-upgrade stage failed! Error executing post scripts
Before I started the upgrade, i went into the sugarcrm root and executed this:

sudo chown -R www-data:www-data *;

sudo chmod -R 777 *

That did help the upgrade get further into step 5 but still failed.
The files it can not access are mostly files the upgrade builds.
they are either owned by root or have (r,r,r) access.
[Edit]
The wizard does not work when the browser is not on the server. We tried to use the cli on the server. That failed also with the same error.

 

We executed before the silence upgrade this command to make it work.

 

sudo su root

 

then the upgrade work. So neither the wizard or cli worked until it has super user permission.

Outcomes