xforty / vagrant-drupal

Template repo for a new drupal project built on top of a vagrant vm.
Other
46 stars 11 forks source link

Unable to download modules with drush #25

Closed tobiase closed 12 years ago

tobiase commented 12 years ago

Example:

vagrant@ubuntu-11:/srv/www$ drush dl entity Unable to download entity-7.x-1.0-rc1.tar.gz to [error] /tmp/drush_tmp_1334968786 from http://ftp.drupal.org/files/projects/entity-7.x-1.0-rc1.tar.gz

tobiase commented 12 years ago

Changing line 43 in Vagrantfile from config.vm.share_folder("srv", "/srv", srv_path, :owner => "www-data", :group => "www-data", :create => true)

to

config.vm.share_folder("srv", "/srv", srv_path, :owner => "vagrant", :group => "www-data", :create => true)

fixed it for me

dkingofpa commented 12 years ago

I'll take a closer look into this eventually.

dkingofpa commented 12 years ago

tobiase's commit

pearcec commented 12 years ago

I know we flip flopped over this a bit before. But I believe vagrant:www-data works. The permissions on the folders and 775. So apache should be able to write to the defaults/files directory no problem.

I confirmed this works doing a fresh vagrant up and then uploading a picture for the logo.

thanks @tobiase

hanaa-abdelgawad commented 10 years ago

Hi I have this problem but it isnt related to vagrant-drupal Unable to download ctools-7.x-1.4.tar.gz to /tmp/drush_tmp_1393161106 from [error] http://ftp.drupal.org/files/projects/ctools-7.x-1.4.tar.gz

could you help me ? Thank you