magestead icon indicating copy to clipboard operation
magestead copied to clipboard

Exception on loading sample data

Open thinkingcap opened this issue 8 years ago • 3 comments

I get the following [Composer\Downloader\TransportException] Your configuration does not allow connection to http://packagist.org. See https://getcomposer.org/doc/06-config.md# secure-http for details.

thinkingcap avatar Nov 08 '16 03:11 thinkingcap

🤔 This is a new one. Do you have steps to reproduce? Are you running this from your host machine or from the guest?

richdynamix avatar Nov 08 '16 08:11 richdynamix

If I select "Install sample data" on initial project creation it fails. If I then ssh into the guest, update composer and run "magento sampledata:deploy" it fails with same error. If I set "secure-http: false" I get some zlib error.

Trying CentOS next to see if that makes any difference.

Running php 7.0.12 on MacOS 10.12.1

thinkingcap avatar Nov 08 '16 08:11 thinkingcap

Work around was to install manually

git clone https://github.com/magento/magento2-sample-data.git <sample-data folder>
php -f <sample-data folder>/dev/tools/build-sample-data.php -- --ce-source="<install folder>"
bin/magento setup:upgrade

thinkingcap avatar Nov 08 '16 11:11 thinkingcap