netz98 / n98-magerun2

The swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.
https://magerun.net
Other
870 stars 220 forks source link

Sample data installation does not work on 2.3.0 #437

Open amenk opened 5 years ago

amenk commented 5 years ago

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.

cmuench commented 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.

amenk commented 5 years ago

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: 
amenk commented 5 years ago

This seems related https://github.com/magento/magento2/issues/2523#issuecomment-162534708

amenk commented 5 years ago

So there are two things n98-magerun2 could do:

amenk commented 5 years ago

See also #176

cmuench commented 1 year ago

@amenk I try to cleaup the issue list. I am not sure if this issue still exists.

amenk commented 1 year ago

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:
cmuench commented 1 year ago

@amenk thanks for testing. I just fixed a lot of bugs. I will try to fix that in v7.0.0, too.

amenk commented 1 year ago

still in 2.6.4 with magerun version 7.0.3

cmuench commented 1 year ago

@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.