Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample data installation does not work on 2.3.0 #437

Open
amenk opened this issue Mar 2, 2019 · 10 comments
Open

Sample data installation does not work on 2.3.0 #437

amenk opened this issue Mar 2, 2019 · 10 comments

Comments

@amenk
Copy link
Contributor

amenk commented Mar 2, 2019

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
Copy link
Member

cmuench commented Mar 3, 2019

@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
Copy link
Contributor Author

amenk commented Mar 3, 2019

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
Copy link
Contributor Author

amenk commented Mar 3, 2019

This seems related magento/magento2#2523 (comment)

@amenk
Copy link
Contributor Author

amenk commented Mar 3, 2019

So there are two things n98-magerun2 could do:

  • apply workaround ln -s ~/.composer/auth.json var/composer_home/
  • display at least an error / ask for the credentials when sample data installation does not work (I guess it's because we are on a non-interactive TTY ?)

@amenk amenk changed the title Sample data installation does not work on 2.3.0 (?) Sample data installation does not work on 2.3.0 Mar 3, 2019
@amenk
Copy link
Contributor Author

amenk commented Mar 3, 2019

See also #176

@cmuench cmuench added the bug label Jun 13, 2019
@cmuench
Copy link
Member

cmuench commented Jan 17, 2023

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

@amenk
Copy link
Contributor Author

amenk commented Jan 18, 2023

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
Copy link
Member

cmuench commented Jan 18, 2023

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

@amenk
Copy link
Contributor Author

amenk commented May 23, 2023

still in 2.6.4 with magerun version 7.0.3

@cmuench
Copy link
Member

cmuench commented May 23, 2023

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

@cmuench cmuench added this to the 7.3.0 milestone Sep 12, 2023
@cmuench cmuench modified the milestones: 7.3.0, 7.4.0 Jan 30, 2024
@cmuench cmuench modified the milestones: 7.4.0, 7.5.0 Apr 27, 2024
@cmuench cmuench modified the milestones: 7.5.0, 7.6.0 Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants