Magento2: Magento 2.1.0 RC1 : cannot install sample data

Created on 25 May 2016  Â·  22Comments  Â·  Source: magento/magento2

Steps to reproduce

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

    Expected result

  3. composer.json is updated

  4. sample data is downloaded

    Actual result

  5. 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
Setup Format is not valid needs update bug report non-issue

Most helpful comment

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.

All 22 comments

Sample data packages for 2.1 have not been published yet.

Yes you should be able to do that.

@redboxmarcins any update?

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
.

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

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

@redboxmarcins is this issue still actual?

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

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

I use 2.1.1 (2.1 branch)

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.

It works for magento 2.1.2 (2.1 branch).

This issue is still replicable on 2.1.8

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

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 It's working for me. Did you update minimum stability to beta?

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

This issue is still replicable on 2.1.10

Still getting the issue in 2.2.3

Still getting in 2.2.3

It works following the steps of @JustinWang24 but you have to skip the step of editing the composer.json (beta, now isn't necesary), it would be like that:

1: composer config repositories.magento composer https://repo.magento.com/packages.json
2: composer update ( Need to input your mage market username and password)
3: magento sampledata:deploy
4: magento setup:upgrade

Still getting in 2.2.5

Solution above by @rafaelcalero and @JustinWang24 works like a charm.

Was this page helpful?
0 / 5 - 0 ratings