magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Magento 2.1.0 RC1 : cannot install sample data

Open redboxmarcins opened this issue 10 years ago • 22 comments

Steps to reproduce

  1. Install Magento from 2.1.0 RC1 branch.
  2. Run bin/magento sampledata:deploy

Expected result

  1. composer.json is updated
  2. sample data is downloaded

Actual result

  1. Composer error
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package magento/module-widget-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 2
    - The requested package magento/module-theme-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 3
    - The requested package magento/module-offline-shipping-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 4
    - The requested package magento/module-tax-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 5
    - The requested package magento/module-bundle-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 6
    - The requested package magento/module-catalog-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 7
    - The requested package magento/module-wishlist-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 8
    - The requested package magento/module-cms-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 9
    - The requested package magento/module-customer-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 10
    - The requested package magento/module-sales-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 11
    - The requested package magento/module-swatches-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 12
    - The requested package magento/module-configurable-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 13
    - The requested package magento/module-product-links-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 14
    - The requested package magento/module-review-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 15
    - The requested package magento/module-msrp-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 16
    - The requested package magento/module-grouped-product-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 17
    - The requested package magento/module-sales-rule-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 18
    - The requested package magento/module-catalog-rule-sample-data could not be found in any version, there may be a typo in the package name.
  Problem 19
    - The requested package magento/sample-data-media could not be found in any version, there may be a typo in the package name.
  Problem 20
    - The requested package magento/module-downloadable-sample-data could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.
There is an error during sample data deployment. Composer file will be reverted

redboxmarcins avatar May 25 '16 14:05 redboxmarcins

Sample data packages for 2.1 have not been published yet.

mazhalai avatar May 25 '16 14:05 mazhalai

That explains, can I use https://github.com/magento/magento2-sample-data/tree/2.1

redboxmarcins avatar May 25 '16 15:05 redboxmarcins

Yes you should be able to do that.

mazhalai avatar May 25 '16 15:05 mazhalai

@redboxmarcins any update?

mazhalai avatar May 31 '16 15:05 mazhalai

I can only install by hand On 31 May 2016 5:39 p.m., "mazhalai" [email protected] wrote:

@redboxmarcins https://github.com/redboxmarcins any update?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/4699#issuecomment-222728240, or mute the thread https://github.com/notifications/unsubscribe/AQVBoYcyE23b6P5IrZ_80TrgBX8tydEhks5qHFYNgaJpZM4ImoNB .

redboxmarcins avatar May 31 '16 16:05 redboxmarcins

I seem to have managed to get it working - had 2.0.6 with sample data installed and upgraded to 2.1RC1 -- lots of issues at the start due to the sample data.. but running these commands seems to have sorted most of it: php bin/magento sampledata:remove php bin/magento sampledata:deploy

And then obviously cache:clean etc...

Only one issue remaining and the product grid is not loading - just spinning wheel - seems like some of the product data is corrupt in admin - shows up fine on front end

paalsoberg avatar Jun 03 '16 08:06 paalsoberg

Got the product grid working as well - just had to export and then import the product data again!

paalsoberg avatar Jun 03 '16 11:06 paalsoberg

@redboxmarcins is this issue still actual?

veloraven avatar Aug 30 '16 12:08 veloraven

Hi @veloraven . Yes, the issue is still replicable. Magento repository has to be added by hand for sample data deploying (by sampledata:deploy command).

ytorbyk avatar Sep 11 '16 15:09 ytorbyk

Hi @veloraven What version did you install? I tried to reproduce this issue on version 2.1.0 , but everything worked fine.

oshmyheliuk avatar Sep 23 '16 13:09 oshmyheliuk

I use 2.1.1 (2.1 branch)

ytorbyk avatar Sep 26 '16 10:09 ytorbyk

I find a way: 1: composer config repositories.magento composer https://repo.magento.com/packages.json 2: Update composer.json, change the minimum-stability to beta 3: composer update ( Need to input your mage market username and password) 4: magento sampledata:deploy 5: magento setup:upgrade

It works for me.

JustinWang24 avatar Oct 11 '16 10:10 JustinWang24

It works for magento 2.1.2 (2.1 branch).

cmutz avatar Nov 04 '16 09:11 cmutz

This issue is still replicable on 2.1.8

hyperfocus1337 avatar Aug 30 '17 10:08 hyperfocus1337

bin/magento sampledata:deploy is designed for composer based installation. or add repo to your composer.json file

magento-engcom-team avatar Sep 18 '17 19:09 magento-engcom-team

Still issue persist with magento 2.2 EE

Your requirements could not be resolved to an installable set of packages.

Problem 1 - The requested package magento/module-gift-card-sample-data could not be found in any version, there may be a typo in the package name. Problem 2 - The requested package magento/module-customer-balance-sample-data could not be found in any version, there may be a typo in the package name. Problem 3 - The requested package magento/module-target-rule-sample-data could not be found in any version, there may be a typo in the package name. Problem 4 - The requested package magento/module-gift-registry-sample-data could not be found in any version, there may be a typo in the package name. Problem 5 - The requested package magento/module-multiple-wishlist-sample-data could not be found in any version, there may be a typo in the package name.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json to its original content.

jimul avatar Oct 04 '17 08:10 jimul

@jimul It's working for me. Did you update minimum stability to beta?

benmarks avatar Oct 14 '17 14:10 benmarks

Yes, I tried with "minimum-stability": "beta", and cleared composer cache, same issue

jimul avatar Oct 16 '17 06:10 jimul

This issue is still replicable on 2.1.10

shahrukh-alizai avatar Nov 24 '17 10:11 shahrukh-alizai

Still getting the issue in 2.2.3

titechnologies avatar Mar 16 '18 09:03 titechnologies