Composer cache:rebuild message

Created on 8 June 2021, about 3 years ago
Updated 18 January 2024, 5 months ago

Hi,
the module works very fine.
BUT...
when clearing the cache with Composer/Drush
drush cr
I always get the following message:

[warning] unlink(/home/xxxxxx/xxxxxx/xxxxxx.net/sites/default/files/asset_injector/js/bla-78c59830ebf0541416953c7f933273.js): Permission denied FileSystem.php:124

In FileSystem.php line 340:
Failed to unlink file 'public://asset_injector/js/bla-78c59830ebf0541416953c7f933273.js'.

cache:rebuild [--cache-clear [CACHE-CLEAR]] [--no-cache-clear] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--notify [NOTIFY]] [--xh-link XH-LINK] [--druplicon] [--]

I already tried to chmod the js directory and its files to 755.
Some other files in this directory have the same permissions BUT don't produce issues.

Could you please tell how to fix that?

πŸ› Bug report
Status

Closed: works as designed

Version

2.7

Component

Miscellaneous

Created by

πŸ‡«πŸ‡·France webmestre

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada OMD

    I'm having this exact issue, but with only Asset Injector. I don't think I have incorrect ownership settings on my server as everything else works flawlessly and there are no other command line warnings except for this asset_injector css file. We don't use asset injector on our production site because of this, but it would be nice to see these warnings go away on our dev site.

Production build 0.69.0 2024