When trying to use the upgrade wizard to go from 7.9.12 to 7.10, all of the pre-flight checks are passed, and files are copied successfully according to the wizard. When I press the final “next button”, The page immediately displays "Composer autoloader not found. please run “composer install”
In the upgradewizard.log file, I do not see any errors that would be relevant as far as I can tell.
Sorry for the late reply. I just tried once more, only this time, upgrading to 7.10.2, and the upgrade worked perfectly. The bug must have been addressed in the latest version.
Composer autoloader not found. please run “composer install” Linux 3.10.0-693.11.1.el7.x86_64 #1 SMP Mon Dec 4 23:52:40 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$_SESSION equals target_db_version in $_SESSION
Fri, 28 Sep 2018 15:52:04 -0700 [UpgradeWizard] - finished check to see if current_db_version in $_SESSION equals target_db_version in $_SESSION
Fri, 28 Sep 2018 15:52:04 -0700 [UpgradeWizard] - running deleteChance() function
Fri, 28 Sep 2018 15:52:04 -0700 [UpgradeWizard] - running deleteCache() function
Fri, 28 Sep 2018 15:52:08 -0700 [UpgradeWizard] - call addNewSystemTabsFromUpgrade(upload://upgrades/patch/SuiteCRM-Upgrade-7.9.x-to-7.10.9-restore)
Fri, 28 Sep 2018 15:52:08 -0700 [UpgradeWizard] - check to see if new modules exist
Fri, 28 Sep 2018 15:52:08 -0700 [UpgradeWizard] - new modules to add are array (
‘Surveys’ => ‘Surveys’,
)
Fri, 28 Sep 2018 15:52:08 -0700 [UpgradeWizard] - module tabs updated
Fri, 28 Sep 2018 15:52:08 -0700 [UpgradeWizard] - finished addNewSystemTabsFromUpgrade
Fri, 28 Sep 2018 15:52:08 -0700 [UpgradeWizard] - Registering upgrade with UpgradeHistory
Fri, 28 Sep 2018 15:52:08 -0700 [UpgradeWizard] - Rebuilding style js file: cache/themes/SuiteP/js/style-min.js
Fri, 28 Sep 2018 15:52:08 -0700 [UpgradeWizard] - Rebuilding language cache
Do i install the composer.phar in the root html directory or in a bin directory and just run it from the root html directory?
That means after the installation halts i should run it. What json file should i use with it?
Composer could not find a composer.json file in /var/www/html
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ “Getting Started” section
If I do run composer install after the install stops, will it pickup at the same place if I refresh the screen?
Composer is not installed at all on my Centos version. I added the json file and still have many issues. If composer is a prerequisite it should be noted and or an install provided.
I cannot restart the install either.
sudo -u apache composer install
Cannot create cache directory /usr/share/httpd/.composer/cache/repo/https—repo
a .packagist.org/. or directory is not writable. Proceeding without cache
Cannot create cache directory /usr/share/httpd/.composer/cache/files/. or directory is not writable. Proceeding without cache
[RuntimeException]
/var/www/html/vendor does not exist and could not be created.
[ErrorException]
file_put_contents(./composer.lock): failed to open stream: Permission denied
I’ll try to understand the way SuiteCRM works with Composer a little better, I haven’t looked at it in depth (never needed to), but for now I am convinced that when things go well, you don’t need any special step for this. Maybe this isn’t true in all systems.
Any way the problems you have now all look like ownership/permissions Linux problems. You should be able to get around them with some careful "chown"ing and "chmod"ing.
I have gone through all the permissions. even if I create the directories manually. I really think it is related to my manual composer install. Once the system fails the install I dont know how to get it to continue or revert.