Errors creating site. No sync folder, and settings.php not writeable

Errors creating site. No sync folder, and settings.php not writeable

10 posts / 0 new
Last post
protman's picture
joehahn
Points: 1
Errors creating site. No sync folder, and settings.php not writeable

I had no issues last week, but today, when creating new sites, I am getting errors about the sync folder being missing, and settings.php not being writeable.



To recreate:

- https://insight.acquia.com/subscriptions/add

- Add a new free site

- Set: Site name

- Distribution: Lightning [8.x-1.03 - Drupal 8]

- Add

Wait

- Configure Drupal site

These errors persist: "Configuration directory: sync

- The directory /mnt/www/html/[SITE NAME]/docroot/sites/default/files/config_00e95636316c7578c030880adcafa94e726f18d4/sync does not exist."
- Settings file The Settings file is not writable.

The Lightning installer requires write permissions to ./sites/default/settings.php during the installation process. The webhosting issues documentation section offers help on this and other topics.




I'm somewhat sure I can correct it, but it is a bit of an inconvenience when trying to quickly spin up a test site.

Status: 
Unresolved
achekulaev's picture
alexei.chekulaev
Points: 0

I have the same issue. This is insane that such big company as Acquia can not get straight an installation of their main product

dmyburgh's picture
david.myburgh
Points: 99

That is very interesting, especially since I know we made some changes to account for the settings.php change. I also tested installing Lightning on an existing Acquia Free site and it worked fine. However, when I did it from the link you specified and created a whole new site, I see your errors. I'm going to pass this on to our Cloud engineering team so they can get it fixed. Thanks for reporting this.

I will see if there is some way to work around the problem so you can get it installed. I'll reply here when I find one.

protman's picture
joehahn
Points: 1

The error persists on newly created sites. I also noticed that it affects other installations besides Lightning.
Thanks

Attachments: 
protman's picture
joehahn
Points: 1

A workaround:
- Enable live dev
- Manually create the /sync/ folder in:
/mnt/gfs/SITENNNNNNNN/livedev/docroot/sites/default/files/config_NNNNNNNNNNNN/sync
- Re-run Drupal install.php

dmyburgh's picture
david.myburgh
Points: 99

The issue is with Drupal 8.1.8. It changed something that affected what we do to allow writing to settings.php during installation. Our Cloud team is aware of the issue and is actively working on a fix. They hope to have the fix out soon.

giamarinob@gmail.com's picture
giamarinob
Points: 1

Is this still unresolved? It's 8/23 I am having the same issues. Sync directory does not exist.

Status Change: 
Unresolved
naveen.valecha's picture
naveen.valecha
Points: 10

During the installation of lightining profile I was getting two errors :

  1. The Settings file is not writable.
  2. Configuration directory: sync does not exist

Here's the steps that I followed to get those fixed :
For Settings.php : I enabled the live deployment and it automatically gets fixed
For Configuration directory: sync does not exist : I made it fixed by manually creating the sync folder after doing ssh to the server
Steps to fix this :

  1. cd  /mnt/gfs/.../livedev/docroot/sites/default/files/config_5687b51cdd65bf418d7ab73a932592e2faaeaa2d
  2. mkdir sync

Feel free to reopen it if this will not work for you.

//
Naveen

Status Change: 
Resolved
protman's picture
joehahn
Points: 1

Considering just about nobody will know how to fix the error themselves unless they find this thread and follow the instructions, locating and supplying their specific instance's config_[ID] directory, should this be considered resolved?

Status Change: 
Unresolved
mferderer@bepc.com's picture
mferderer
Points: 0

It doesn't appear you can enable live deployment for production sites. Did you do this on stage & then somehow transfer that over to production?