Acquia Cloud D8 config export

Acquia Cloud D8 config export

4 posts / 0 new
Last post
jason@tincan.co.uk's picture
jason
Points: 0
Acquia Cloud D8 config export

Hello,

We have many Acquia Cloud subscriptions running D7, and are now evaluating D8 on a free subscription.

When exporting config, we want config YAML files to go into the config folder (outside docroot). According to the readme file in that directory:

This directory allows for Drupal 8 (and higher) Configuration Management workflows. It is referred to as the 'vcs' directory.

But when I try to use drush to export config to VCS, it returns a file permission error:

d8config@d8config:~$ drush @d8config.dev config-export vcs
The file permissions could not be set on /mnt/www/html/d8configsuku5f4exj/docroot/../config/default.                                   [error]
exception 'Drupal\Core\Config\StorageException' with message 'Failed to create config directory                                        [error]
/mnt/www/html/d8configsuku5f4exj/docroot/../config/default' in
/mnt/www/html/d8configsuku5f4exj/docroot/core/lib/Drupal/Core/Config/FileStorage.php:85

We need this in order to use git for config management. Please advise?

Thanks,
Jason

Status: 
Pending Bug Fix
wmusgrove@arcbtech.com's picture
wmusgrove
Points: 1

Jason, I'm having somewhat similar issues. I posted on your other post here. Sorry to keep hijacking your posts. Just trying to get some awareness!

These don't work (see linked post). I'm getting "Permission denied (publickey)" and "rsync" errors even though I can "ssh" and run other drush" commands against these environments just fine.

drush config-pull @custom_site.prod @custom_site.dev.livedev --label=vcs

drush config-pull @custom_site.prod @self --uri=example.local --label=vcs
bosborne@princeton.edu's picture
bosborne
Points: 0

I don't work for Acquia, but the problem here is that Acquia does not allow write access to the ../config/default folder (or any other folder in your site's code except for sites/default/files).

To get around this, I think you'd need to maintain a separate config directory in sites/default/config that you use just for exporting from your live site.

wmusgrove@arcbtech.com's picture
wmusgrove
Points: 1

Why would they not allow write access to a folder that they explicitly have documentation for: https://docs.acquia.com/acquia-cloud/develop/config-d8?