richdynamix / magestead

The Vagrant Solution for Magento Developers
81 stars 29 forks source link

Exception on loading sample data #79

Open thinkingcap opened 7 years ago

thinkingcap commented 7 years ago

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.

richdynamix commented 7 years ago

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

thinkingcap commented 7 years ago

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 commented 7 years ago

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