- Issue created by @BadWebCoder
- πΊπΈUnited States cilefen
Can you test on the 10.1.x dev release please? There have been a few very recent commits to the asset library system to address some bugs with the asset library changes introduced in 10.1.0.
- π·πΊRussia BadWebCoder
@cilefen, I tested on 10.1.x dev and the problem remains
- π¬π§United Kingdom longwave UK
Are you running your webserver and drush as the same user? What are the owner, group and permissions on your files directory? Have you configured file_assets_path in settings.php? (You do not need to, but if it is set to an invalid location then perhaps this can happen)
- π·πΊRussia BadWebCoder
@longwave,
Are you running your webserver and drush as the same user?
Yes
What are the owner, group and permissions on your files directory?
korotkov:korotkov (like all files on my local server) and 775 permissions
Have you configured file_assets_path in settings.php?
No, but
assets://
the default issites/default/files/public/
But css and js cleans with the same settings if I do it through Drush 11, or through Drush 12 but on Drupal 10.0
- π¬π§United Kingdom catch
Can you try applying this patch and see if the directory gets deleted. I'm wondering if it's something to do with drush and the new assets:// stream wrapper.
- Status changed to Postponed
about 1 year ago 11:17am 20 August 2023 - π¬π§United Kingdom catch
Re-reading this sounds like a drush 12 issue.
I've commented on https://github.com/drush-ops/drush/issues/5728 which is unfortunately closed. I'm postponing this on more investigations on the drush side.
- Status changed to Postponed: needs info
about 1 year ago 12:06pm 20 August 2023 - π·πΊRussia BadWebCoder
Well, it turns out it's something else. My Drush 12 ignores my settings.php and uses default values
And I remembered that I had a similar problem earlier when I was just updating sites on Drush 12 when I rundrush cr
I got error:
Missing $settings['hash_salt'] in settings.php.
And now, I tried getting the path of
public://
andassets://
during debug and I got/sites/default/files`
through Drush 12 and/sites/default/files/public
through Drush 11 or Admin Toolbar.My settings are arranged like this:
sites/settings.php
contains my main settings, which are used both on prod and on dev. Insites/default/settings.php
I have individual settings depending on the environment. There viarequire_once DRUPAL_ROOT . '/sites/settings.php';
I connect the main settings to the individual ones. And Drush 12 sees only those values that I directly specified insites/default/settings.php
. He stopped seeing what I get fromsites/settings.php
and for this I have to transfer the necessary parameters fromsites/settings.php
tosites/default/settings.php
And after I set$settings['file_public_path'] = 'sites/default/files/public in sites/default/settings.php'
, then when I rundrush cr
css and js clearsI'm closing the issue because the problem turned out to be something else
- Status changed to Closed: works as designed
about 1 year ago 8:59am 21 August 2023