7.12.x to 7.13.4 robo command line upgrade breaks due to directory naming issue #5050

Open
opened 2026-02-20 16:28:45 -05:00 by deekerman · 1 comment
Owner

Originally created by @Hiranyaloka on GitHub (Jul 31, 2023).

My upgrade command

root@suitecrm:/var/www/html/SuiteCRM-7.4.3# ./vendor/bin/robo upgrade:suite suitecrm-upgrade-7-12-x-to-7-13-4.zip upgrade.log . admin

Expected Behavour

I expect the script to expand the zipped upgrade file, and then know to upgrade from the expanded upgrade directory.

Actual Behavior

The script writes the expanded zip to a temp directory,:
$CRM-HOME/cache/upgrades/temp/SuiteCRM-Upgrade-7.12.x-to-7.13.4

But tries to read from a slightly different directory (similar name as zip file). Note case and hyphens:
$CRM-HOME/cache/upgrades/temp/suitecrm-upgrade-7-12-x-to-7-13-4

It seems to be a matter of the zip file being named differently than the expanded directory name. The upgrade documentation is clear to use the name of the zipped file in the robo command, not the name of the resulting expanded directory.

Output of the initial (failed) upgrade attempt:

root@suitecrm:/var/www/html/SuiteCRM-7.4.3# ./vendor/bin/robo upgrade:suite suitecrm-upgrade-7-12-x-to-7-13-4.zip upgrade.log . admin
➜  Upgrade SuiteCRM
 [Exec] Running php modules/UpgradeWizard/silentUpgrade.php suitecrm-upgrade-7-12-x-to-7-13-4.zip upgrade.log . admin

********************************************************************
***************This Upgrade process may take sometime***************
********************************************************************

PHP Fatal error:  Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(cache/upgrades/temp/suitecrm-upgrade-7-12-x-to-7-13-4
): failed to open dir: No such file or directory in /var/www/html/SuiteCRM-7.4.3/modules/UpgradeWizard/uw_utils.php:197
Stack trace:
#0 /var/www/html/SuiteCRM-7.4.3/modules/UpgradeWizard/uw_utils.php(197): RecursiveDirectoryIterator->__construct()
#1 /var/www/html/SuiteCRM-7.4.3/modules/UpgradeWizard/silentUpgrade_step1.php(724): commitCopyNewFiles()
#2 {main}
  thrown in /var/www/html/SuiteCRM-7.4.3/modules/UpgradeWizard/uw_utils.php on line 197
***************         step1 failed         ***************: 255
***************         silentupgrade failed         ***************: 255
 [Exec]  Exit code 255  Time 17.75s
➜  Upgrade Complete!

Temporary Fix

To fix, I created a soft link to the actual directory, and re-ran the script:

cd cache/upgrades/temp
ln -s SuiteCRM-Upgrade-7.12.x-to-7.13.4 suitecrm-upgrade-7-12-x-to-7-13-4
 ./vendor/bin/robo upgrade:suite suitecrm-upgrade-7-12-x-to-7-13-4.zip upgrade.log . admin

This time it worked (finished in 1 minute). BTW, the 7.13.4 release seems very solid so far.

Your Environment

Ubuntu 20.04.6

Originally created by @Hiranyaloka on GitHub (Jul 31, 2023). #### My upgrade command root@suitecrm:/var/www/html/SuiteCRM-7.4.3# `./vendor/bin/robo upgrade:suite suitecrm-upgrade-7-12-x-to-7-13-4.zip upgrade.log . admin` #### Expected Behavour I expect the script to expand the zipped upgrade file, and then know to upgrade from the expanded upgrade directory. #### Actual Behavior The script writes the expanded zip to a temp directory,: $CRM-HOME/cache/upgrades/temp/SuiteCRM-Upgrade-7.12.x-to-7.13.4 But tries to read from a slightly different directory (similar name as zip file). Note case and hyphens: $CRM-HOME/cache/upgrades/temp/suitecrm-upgrade-7-12-x-to-7-13-4 It seems to be a matter of the **zip file being named differently than the expanded directory name**. The [upgrade documentation](https://docs.suitecrm.com/admin/installation-guide/upgrading/) is clear to use the name of the zipped file in the robo command, not the name of the resulting expanded directory. #### Output of the initial (failed) upgrade attempt: ``` root@suitecrm:/var/www/html/SuiteCRM-7.4.3# ./vendor/bin/robo upgrade:suite suitecrm-upgrade-7-12-x-to-7-13-4.zip upgrade.log . admin ➜ Upgrade SuiteCRM [Exec] Running php modules/UpgradeWizard/silentUpgrade.php suitecrm-upgrade-7-12-x-to-7-13-4.zip upgrade.log . admin ******************************************************************** ***************This Upgrade process may take sometime*************** ******************************************************************** PHP Fatal error: Uncaught UnexpectedValueException: RecursiveDirectoryIterator::__construct(cache/upgrades/temp/suitecrm-upgrade-7-12-x-to-7-13-4 ): failed to open dir: No such file or directory in /var/www/html/SuiteCRM-7.4.3/modules/UpgradeWizard/uw_utils.php:197 Stack trace: #0 /var/www/html/SuiteCRM-7.4.3/modules/UpgradeWizard/uw_utils.php(197): RecursiveDirectoryIterator->__construct() #1 /var/www/html/SuiteCRM-7.4.3/modules/UpgradeWizard/silentUpgrade_step1.php(724): commitCopyNewFiles() #2 {main} thrown in /var/www/html/SuiteCRM-7.4.3/modules/UpgradeWizard/uw_utils.php on line 197 *************** step1 failed ***************: 255 *************** silentupgrade failed ***************: 255 [Exec] Exit code 255 Time 17.75s ➜ Upgrade Complete! ``` #### Temporary Fix To fix, I created a soft link to the actual directory, and re-ran the script: ``` cd cache/upgrades/temp ln -s SuiteCRM-Upgrade-7.12.x-to-7.13.4 suitecrm-upgrade-7-12-x-to-7-13-4 ./vendor/bin/robo upgrade:suite suitecrm-upgrade-7-12-x-to-7-13-4.zip upgrade.log . admin ``` This time it worked (finished in 1 minute). BTW, the 7.13.4 release seems very solid so far. #### Your Environment Ubuntu 20.04.6
Author
Owner

@SuiteBot commented on GitHub (Jul 31, 2023):

This issue has been mentioned on SuiteCRM. There might be relevant details there:

https://community.suitecrm.com/t/7-12-x-to-7-13-4-robo-command-line-upgrade-issue/89845/3

@SuiteBot commented on GitHub (Jul 31, 2023): This issue has been mentioned on **SuiteCRM**. There might be relevant details there: https://community.suitecrm.com/t/7-12-x-to-7-13-4-robo-command-line-upgrade-issue/89845/3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5050
No description provided.