I have just installed Magento 2. I think I have installed the sample data. I did php bin/magento sampledata:deploy , php bin/magento setup:upgrade and then php bin/magento setup:di:compile however the sample data isn't showing on my magento site. Why isn't it showing?

  • Does it show in the admin section? – brentwpeterson Feb 21 '16 at 13:34
  • what do you mean? – Ben Feb 21 '16 at 15:04
  • No :( it doesnt show in the admin section! – Ben Feb 21 '16 at 15:31
  • Did you 'authenticate ' after running /bin/magento sampledata:deploy? Check magento2/app/etc/config.php or run bin/magento setup:upgrade is there a Magento_SampleData listed? – Renon Stewart Feb 21 '16 at 22:45
  • 1
    You can also use bin/magento module:status to list currently installed modules. – Steve Johnson Feb 21 '16 at 23:33

I had the same issue. thx to @Steve-johnson for pointing me to bin/magento module:status where I was not able to see the presence of the Modules '*SampleData'.

I was not able to see sample data after the following command:

$ ./bin/magento sampledata:deploy

Since my terminal was small I had to scroll up to read the following error:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 88614883 bytes) in Users/.../public_html/vendor/composer/composer/src/Composer/Util/RemoteFilesystem.php on line 247

It seemed that the sample data wasn't installed because of lack of memory.

So... I had to increase the memory to be able to install the sample data.

$ php -dmemory_limit=1024M ./bin/magento sampledata:deploy

After that and $ php bin/magento setup:upgrade I notice the sample data.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.