V7.14.x upgrade to v8 - issues

Hello,

We ar etrying to upgrade from v7 to v8 of suitecrm.

But, we are running into issues.

when chekcing the check-legacy-config, it fails.

It says that the legacy config is not found.

Any pointers as to why this might be happening> We are using v7.14.x

Thanks

Joseph

You probably just need to run the script from the top level directory.

Or make sure you have permissions to read files…

When the script is not running from the directory it needs to be running from, it should detect that, and say it clearly to the user, or better, change to the directory it needs to run from, and continue.

When the script has no permissions to read (or write, etc…) files, it should detect that, and say it clearly to the user, in an error message, in plain language.

Users shouldn’t have to be PHP developers, or expert command line troubleshooters, to install, upgrade, migrate, or run the app.

All of the necessary expertise should be part of the scripts and the app, and error conditions should be communicated to the user thru clear accurate error messages that also explain how to fix the problem, or just automatically fix the problem, and continue.

Hello @pgr

The permissons are correct.

We are the top level directory.

I’ll get back with more details when I find some.
Thanks

Thanks for all ideas. Here is the latest update. We advanced a little and we got the following error:

system@mrmoose:/var/www/crm1.eco2.ca$ ./bin/console suitecrm:app:upgrade
PHP Warning: require(/var/www/crm1.eco2.ca/vendor/composer/…/…/public/legacy/deprecated.php): Failed to open stream: No such file or directory in /var/www/crm1.eco2.ca/vendor/composer/autoload_real.php on line 41
PHP Fatal error: Uncaught Error: Failed opening required ‘/var/www/crm1.eco2.ca/vendor/composer/…/…/public/legacy/deprecated.php’ (include_path=‘.:/usr/share/php’) in /var/www/crm1.eco2.ca/vendor/composer/autoload_real.php:41
Stack trace:
#0 /var/www/crm1.eco2.ca/vendor/composer/autoload_real.php(45): {closure}()
#1 /var/www/crm1.eco2.ca/vendor/autoload.php(25): ComposerAutoloaderInit0013c270369ae4573daa9e6c29448bc5::getLoader()
#2 /var/www/crm1.eco2.ca/bin/console(15): require(‘…’)
#3 {main}
thrown in /var/www/crm1.eco2.ca/vendor/composer/autoload_real.php on line 41

Thanks for any feedback/comments,

  1. Try to clear the composer cache:
composer clear

And Regenerate the composer autoloader:

composer dump-autoload
  1. Reset file permissions and owners. What username is your Suite app running under?
cd /var/www/crm1.eco2.ca   # or the base dir of your Suite install
sudo find . -type d -not -perm 02750 -exec chmod 02750 {} \;
sudo find . -type f -not -perm 0640 -exec chmod 0640 {} \;
sudo find . ! -user suiteusername -exec chown suiteusername:suiteusername {} \;
sudo chmod u=rwx,g=rx ./bin/console   #Suite 8
sudo chmod u=rwx,g=rx ./vendor/bin/*  #Suite 7
  1. You ran:
    ./bin/console suitecrm:app:upgrade

Why not run the command provided in the migration guide, Step 2.5?
./bin/console suitecrm:app:upgrade -t SuiteCRM-8.6.1

1 Like