Open amenk opened 5 years ago
@amenk Maybe it is a problem to find the auth.json. The last times I installed the sample data manually. Would be nice, if you can investigate that.
Looks like -- if I call sampledata:deploy manually it asks for the authentication - even the rest of the installation worked well.
/workshop-vinai◈ 1 $ php bin/magento sampledata:deploy
<warning>You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug</warning>
Authentication required (repo.magento.com):
Username:
This seems related https://github.com/magento/magento2/issues/2523#issuecomment-162534708
So there are two things n98-magerun2 could do:
ln -s ~/.composer/auth.json var/composer_home/
See also #176
@amenk I try to cleaup the issue list. I am not sure if this issue still exists.
Try to install 2.4.5-p1 with Magerun2 6.1.1, problem seems to still exist:
SUCCESS]: Magento Admin URI: /admin
Nothing to import.
Install sample data? [1]1
bin/magento > Composer is operating slower than normal because you have Xdebug enabled. See https://getcomposer.org/xdebug
bin/magento > ./composer.json has been updated
bin/magento > Running composer update magento/module-bundle-sample-data magento/module-widget-sample-data magento/module-theme-sample-data magento/module-wishlist-sample-data magento/module-sales-sample-data magento/module-tax-sample-data magento/module-catalog-sample-data magento/module-sales-rule-sample-data magento/module-customer-sample-data magento/module-cms-sample-data magento/module-downloadable-sample-data magento/module-configurable-sample-data magento/module-product-links-sample-data magento/module-review-sample-data magento/module-msrp-sample-data magento/module-catalog-rule-sample-data magento/module-grouped-product-sample-data magento/module-swatches-sample-data magento/module-offline-shipping-sample-data magento/sample-data-media
bin/magento > Loading composer repositories with package information
bin/magento > Warning from repo.magento.com: You haven't provided your Magento authentication keys. For instructions, visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html
bin/magento >
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
bin/magento >
bin/magento > In AuthHelper.php line 202:
bin/magento >
The 'https://repo.magento.com/packages.json' URL required authentication (H
bin/magento > TTP 401).
You must be using the interactive console to authenticate
bin/magento >
bin/magento > require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>...]
bin/magento > There is an error during sample data deployment. Composer file will be reverted.
bin/magento > Cache types config flushed successfully
bin/magento > Cache cleared successfully
File system cleanup:
bin/magento > /tmp/magento245p1-3/generated/code/Composer
/tmp/magento245p1-3/generated/code/Magento
/tmp/magento245p1-3/generated/code/PayPal
/tmp/magento245p1-3/generated/code/Psr
/tmp/magento245p1-3/generated/code/Symfony
bin/magento > The directory '/tmp/magento245p1-3/generated/metadata/' doesn't exist - skipping cleanup
/tmp/magento245p1-3/pub/static/deployed_version.txt
Updating modules:
@amenk thanks for testing. I just fixed a lot of bugs. I will try to fix that in v7.0.0, too.
still in 2.6.4 with magerun version 7.0.3
@amenk sadly some other stuff had to be fixed in the meantime. So this had not high priority for me. Seems that I cannot work a lot on this task here.
I installed via n98-magerun2 install a magento 2.3.0 and chose "sample data = y"
After installation, the shop is empty.
Is this normal or a bug, then I will further check.