Installation error: Cannot write file

Installation error: Cannot write file

11 posts / 0 new
Last post
bjones@okdrs.gov's picture
bjones
Points: 0
Installation error: Cannot write file

During installation, when it gets to Registering Drupal site, i get the following error and the process stops:

Registering Drupal site...
Cannot write file - C:\windows\system32\drivers\etc\hosts

Any help appreciated

Status: 
Unresolved
alexey.abraham@gmail.com's picture
alexey.abraham
Points: 1

You shall run Acquia desktop as administrator.

realgt@gmail.com's picture
realgt
Points: 0

got the same issue here, even running it as admin. Win7 64bit latest Acquia Dev Desktop RC2

*worked after i restarted windows*

charlesdavis018@gmail.com's picture
charlesdavis018
Points: 40

Main thing is that how you are Login in Acquia as admin or personal, if personal so please You shall run Acquia desktop as administrator.

tom@headchip.net's picture
tom
Points: 0

I have the same problem, and I've tried all the suggested fixes on this thread and they don't work. Acquia Dev Desktop 2 doesn't seem to work at all.

frankie.lam@iqair.com's picture
frankie.lam
Points: 1

I am having the same issue. Restarted PC and ran app in Administrative mode with no success.
Is there a way to disable the attempt to edit hosts portion of the installation? I can just edit it myself.

Status Change: 
Unresolved
sebastian.unterberg@microchip.com's picture
sebastian.unterberg
Points: 0

I am having the same problem. Starting as an admin doesn't help. Taking over ownership of the file is difficult and I was not able to handle it.

syddo@me.com's picture
syddo
Points: 0

I'm stuck with the same problem.
I don't know how I made it work the first time.

syddo@me.com's picture
syddo
Points: 0

yeah I also did this. it's really frustrating.

sebastian.unterberg@microchip.com's picture
sebastian.unterberg
Points: 0

I was able to solve this by creating a VM.
Most corporate PCs don't have all permissions to be able to run Dev Desktop.

Here's how it can work:

  • Install a fresh Virtual Machine. (I picket Windows 7 in VMware)
  • Install Dev Desktop as local Administrator
  • Allow all ports to communicate through the firewalls
  • Download your sites
da_nicholls@hotmail.com's picture
da_nicholls
Points: 1

After having to reload my OS on my machine, I can no-longer setup Drupal sites using DevDesktop2. Every time I try to create a new site I get the wonderful error - " Something is Wrong - Cannot write file - C:\WINDOWS\system32\drivers\etc\hosts.

I have tried all of the possible combination to give access to the hosts file for all user accounts on my machine. I have even enabled the hidden system Administrator and tried to setup a site using that account, but still I cannot get past this point. I am a little reluctant to install VMWare and try another OS, as I am currently running out of space.

Has anyone actually found out what has caused the issue or a good way to get round this error.

Status Change: 
Unresolved