-
-
Notifications
You must be signed in to change notification settings - Fork 647
Ensure Apache is installed task failed #247
Comments
@ravbaba - It's likely your shared directory is not configured correctly; can you post the shared folders section, and the apache vhosts section, of your config.yml? |
vagrant_synced_folders:
- local_path: ~/Projects/drupalvm
destination: /var/www
id: drupal
type: nfs
create: true apache_vhosts:
- servername: "{{ drupal_domain }}"
documentroot: "{{ drupal_core_path }}"
- servername: "xhprof.drupalvm.dev"
documentroot: "/usr/share/php/xhprof_html"
- servername: "pimpmylog.drupalvm.dev"
documentroot: "/usr/share/php/pimpmylog" |
Ah, sorry, one more thing too - what's the And I guess one more thing—are you using the |
|
@ravbaba - Just for a quick test, can you remove the |
@geerlingguy - it works when I remove the line. It looks like nfs configuration on my ubuntu machine is not correct because it works on my mac with nfs. |
me too on trusty |
I think it might be something related to nfs etc/exports not being handled properly i.e. removed after a failed attempt, such as the ansible playbooks force requirements gotcha |
Hi. |
Can everyone who's having this issue also look at @nateswart's blog post on the topic and see if it helps? https://nateofnine.com/2015/10/25/drupalvm-nfs-on-ubuntu/ |
@geerlingguy followed the steps in the link you mentioned, and still having this problem. Part of my error message:
|
One thing I (finally) figured out is that if you have encryption turned on for your home folder NFS to the VM won't work. I realized I didn't call very much attention to it in that blog post so it's easy to miss. |
@lilswif is there a line that begins with Edit: @lilswif to get it working ASAP you can follow the suggestions @geerlingguy linked to in the other issue. |
still getting a error (see below) after trying:
|
Does the fix suggested in #85 (comment) fix the issue for anyone in this thread? |
provisioning without nfs:true line works for me. Then, I add back that line and everything works ok. |
In that case, it looks like the problem is basically that the
I'm going to look into a better way to make sure this issue doesn't occur on a fresh install, though. One other solution is to set your synced folder directory to something like |
@geerlingguy You're right, html folder is needed and automaticaly created by Apache. Using a subfolder inside Default should recommand something like that
|
Fixed via the above commit, which updates the included example.config.yml and makes it so the default site is generated inside a subdir of the |
I get the error for the ansible task "Ensure Apache is installed":
failed: [drupalvm] => (item=apache2,apache2-utils) => {"failed": true, "item": "apache2,apache2-utils"} stderr: dpkg: error processing archive /var/cache/apt/archives/apache2_2.4.16-4+deb.sury.org~trusty+4_amd64.deb (--unpack): error setting ownership of
/var/www/html.dpkg-new': Operation not permittedErrors were encountered while processing: /var/cache/apt/archives/apache2_2.4.16-4+deb.sury.org~trusty+4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)`
I am using:
The text was updated successfully, but these errors were encountered: