Islandora-Devops / isle-dc

ISLE 8 - Dockerized Islandora 8 Deployment orchestrated with docker-compose
MIT License
23 stars 60 forks source link

[BUG] Build now fails due to sites/default being unwritable #399

Open alxp opened 5 months ago

alxp commented 5 months ago

Noticed a build failure when I pushed a commit to an open ISLE-DC PR this evening. Log is here.



Notice: ] Performed install task: install_select_profile
Notice: ] Performed install task: install_load_profile

In install.core.inc line 2329:

  Settings file:The <em class="placeholder">Settings file</em> is not writabl  
  e.<br /><br />The Drupal installer requires write permissions to <em class=  
  "placeholder">./sites/default/settings.php</em> during the installation pro  
  cess. The <a href="https://www.drupal.org/server-permissions">webhosting is  
  sues</a> documentation section offers help on this and other topics.         

make[1]: *** [Makefile:580: starter-finalize] Error 1
make[1]: Leaving directory '/home/runner/work/isle-dc/isle-dc'
make: *** [Makefile:159: starter] Error 2
Error: Process completed with exit code 2.
0s
0s
0s
0s
0s
0s
0s
1s

```shell

I know we've dealt with similar issues in the past, is it a matter of doing another chmod / chown?
joshdentremont commented 5 months ago

This might be the same issue here: https://github.com/Islandora-Devops/isle-dc/issues/306

We talked about chown in the tech call, but in my testing, the owner didn't have permission to write to settings.php, so I think we would need to also give the owner write permissions.

adam-vessey commented 4 months ago

Something such as Drupal's $settings['skip_permissions_hardening'] setting might be useful; though, would only expect it to be used in dev environments.