PMoby Posted April 8 Share Posted April 8 Hello I am testing (on a cloned site) the upgrade from 8.0.2 to 8.2.1 on a hosting server which timed out during the test upgrade of a rather big site. Upgrade launched in GUI from the backoffice which left a crashed site I had to restore manually. Now trying if things would be smoother in CLI. I followed instructions from https://devdocs.prestashop-project.org/8/basics/keeping-up-to-date/update/update-from-the-cli/, for the "Update Assistant module" in fact now called autoupgrade ? Also read the nice post at Feedback from that post however on my site : php modules/autoupgrade/cli-upgrade.php --dir=admin123 (with the correct and checked many times name of the actual dir) just says : "No admin directory provided (dir). Update assistant cannot proceed. Any idea why ? I'd like to use CLI as I believe it may be more efficient than the graphical BO? Thanks. Link to comment Share on other sites More sharing options...
juanrojas Posted April 8 Share Posted April 8 Just in case, did you use the module backup option? Link to comment Share on other sites More sharing options...
PMoby Posted April 9 Author Share Posted April 9 Hello, can you confirm the question ? This is the first command I issued, the site is backed up daily by other tools, and manually before any such action. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted April 9 Share Posted April 9 What's the version of the autoupgrade module? Ideally --dir is the correct option to specify the admin directory. Can you try this as well? php modules/autoupgrade/cli-upgrade.php --dir="admin123" Link to comment Share on other sites More sharing options...
PMoby Posted April 9 Author Share Posted April 9 Hello, this is the first command I issued, the site is backed up daily by other tools, and manually before any such action. The autoupgrade / 1clickupgrade / "Update assistant" module is configured with "skip_backup: 1" so it should not try to backup, and the PHP version is 8.1.32 Good thinking, I also added the quotes just to try but got the same instant error, which I can find nowhere else in forums etc, just in the Git sources for the module to display "when the dir is not specified or does not exist", not the case here... Link to comment Share on other sites More sharing options...
PMoby Posted April 9 Author Share Posted April 9 7 hours ago, Knowband Plugins said: What's the version of the autoupgrade module? This is "Update Assistant v7.0.0 - by PrestaShop" Link to comment Share on other sites More sharing options...
Knowband Plugins Posted April 9 Share Posted April 9 Update Assistant v7.0.0 doesn't have the "cli-upgrade.php," so not sure how it's working. Its available till 6.x version only. Upgrade Assistance 7.0 documentation. https://github.com/PrestaShop/autoupgrade/tree/7.0.x Try these commands in the root directory composer require prestashop/autoupgrade; # to check the upgrades php bin/console update:check <your-admin-folder> # to perform the upgrades php bin/console update:upgrade <your-admin-folder> Ensure to take a backup of the DB & files manually. Link to comment Share on other sites More sharing options...
PMoby Posted April 9 Author Share Posted April 9 (edited) Thanks for the tip, not sure why this is. I tried your suggestion, composer worked, but then got Using version ^7.0 for prestashop/autoupgrade [abcmachine@becane www]$ php bin/console update:check admin123 Fatal error: Uncaught Error: Class "AppKernel" not found in /home/abcmachine/domaine.fr/www/config/autoload.php:28 Stack trace: #0 /home/abcmachine/domaine.fr/www/config/config.inc.php(36): require_once() #1 /home/abcmachine/domaine.fr/www/bin/console(15): require_once('/home/abcmachine...') #2 {main} thrown in /home/abcmachine/domaine.fr/www/config/autoload.php on line 28 Missing something... Checks: /home/abcmachine/domaine.fr/www/config/autoload.php does exist of course Lines 27 and 28 are require_once __DIR__.'/../vendor/autoload.php'; define('_PS_VERSION_', AppKernel::VERSION); There indeed is an autoload.php in /domaine.fr/www/vendor I can only find this type of error in much older posts and PSP 1.7 or so, and no relevant solution... Thanks. Edited April 9 by PMoby (see edit history) Link to comment Share on other sites More sharing options...
thieryhenry Posted August 6 Share Posted August 6 (edited) @Geometry The error about the missing admin directory usually pops up when the --dir parameter in the CLI command doesn’t match your actual admin folder name. Since many rename that folder for security, it’s easy to miss. Making sure the correct folder name is passed often clears it up. Edited August 6 by thieryhenry (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now