Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Document config management strategy - sftp vs git mode #82

Open
sarahg opened this issue Sep 29, 2015 · 6 comments
Open

Document config management strategy - sftp vs git mode #82

sarahg opened this issue Sep 29, 2015 · 6 comments
Labels

Comments

@sarahg
Copy link

sarahg commented Sep 29, 2015

We're having an issue resolving a File System error we're seeing on the Drupal Status Report page:
"The directory sites/default/config is not writable. You may need to set the correct directory at the file system settings page or change the current directory's permissions so that it is writable."

If we switch the site to SFTP mode in the dashboard as suggested in this issue – #16, we can fix the error by creating the appropriate folders, but switching back to Git mode brings the error back.

@greg-1-anderson
Copy link
Member

This is correct behavior; you must be in SFTP mode to export your configuration to the staging configuration store.

If you'd like to be able to export configuration while in git mode, you could define your own configuration store, and put it somewhere in sites/default/files/private. However, it makes more sense vis-a-vis the development workflow for your configuration to be committed to your git repository along with your code. To do this, you should be in SFTP mode, so that you can provide a commit comment from your Pantheon dashboard.

Leaving open for future discussion / documentation purposes.

@sarahg
Copy link
Author

sarahg commented Sep 29, 2015

Got it, that makes sense. Thanks!

@greg-1-anderson greg-1-anderson changed the title sites/default/config not writable Document config management strategy - sftp vs git mode Oct 2, 2015
@baisong
Copy link

baisong commented Oct 6, 2015

Just clarifying, does this mean that for all Drupal 8 pantheon sites in Git mode, for all environments, you will always see this error on the Status Report page, and that it's expected and not dangerous?

@greg-1-anderson
Copy link
Member

Sorry, my comment above was unclear / incomplete, as I inadvertently only addressed the behavior without addressing the error message on the status report page.

The behavior, as I said above, is correct: you cannot write to the configuration directory if you are in git mode, so you must switch to sftp mode before you export configuration. However, there is no way in Drupal core to export configuration; you can only download configuration. Therefore, core should not be reporting it as an error on the status report page when this location is not writable.

There is already an issue to remove this error line in the Drupal core issue queue, so hopefully this message will disappear before the 8.0.0-stable release. In the interim, though, yes, this message is expected and not dangerous.

@baisong
Copy link

baisong commented Oct 6, 2015

Got it. Thank you Greg.

@greg-1-anderson
Copy link
Member

The Drupal core issue is 2466197.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants