Updating from 11.3.13 composer errors.
This appears to be related to this issue : https://www.drupal.org/project/drupal/issues/3091285 and is noted as possible in the update page but sorry I am not a coder of any sort and can't follow the workarounds there.

On updating, composer runs but errors and returns:

In Filesystem.php line 305:
Could not delete /home/u949427330/domains/horrorxscifi.com/public_html/sites/default/default.settings.php:

And core is not updated.

Changing permissions on default.settings.php and settings.php files makes no difference. Error occurs when trying to update to 11.4.0-rc2 or 11.4.1

Note the same "could not delete message" appears on updating any module through composer, but the modules do get updated.

Comments

shadowmihai created an issue. See original summary.

cilefen’s picture

Status: Active » Closed (duplicate)
Issue tags: -update
Related issues: +#3607866: Scaffold plugin does not always create autoload_runtime.php when upgrading to 11.4

Ask that at #3607866: HTTP ERROR 500 Update => 11.4. But it's undoubtedly because you haven't made the directory writable.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

cilefen’s picture

Issue #3091285: Composer scaffolding fails when permissions on default.settings.yml or default.settings.php is not writable. contains the answer in its description: chmod 775 web/sites/default. That's a generic path. Yours seems to be `/home/u949427330/domains/horrorxscifi.com/public_html/sites/default/default`. I don't know why there are two "default" directories in a row there, only you could say.

shadowmihai’s picture

That was incorrect. There was nothing wrong with the directories. The S3SF module for Amazon was blocking the update, won't apparently go past 11.4.0 at this time. In the end I had to update manually, composer simply did not work.

cilefen’s picture

You never once mentioned S3 until comment #5. How was I to know that?