Problem/Motivation
I'm Running varbase updater: Updating vardot/varbase (9.0.16) to vardot/varbase (9.0.17)
When I get some errors:
In RefactorComposerCommand.php line 63:
Refactor Composer Command: Unknown package has no name defined ({"require":{"drupal\/jquery_ui":"^1.6"},"version":"
0.0.0"}).
In ArrayLoader.php line 112:
Unknown package has no name defined ({"require":{"drupal\/jquery_ui":"^1.6"},"version":"0.0.0"}).
There was an error while preparing composer.json for Varbase updates. Please check /var/www/html/office/.update-error-log for more information.
The content of the file is:
[success] Database dump saved to /var/www/html/office/update_backups/db.sql
[32mPreparing composer.json for Varbase updates...(B[0m
I found this issue already in 9.0.11 where is was solved.
https://www.drupal.org/project/varbase/issues/3336576#project-issue-ajax... →
composer require vardot/varbase-updater
Would you like to abort the update process and restore the backup? (no):
mv: cannot stat '/var/www/html/office/composer.new.json': No such file or directory
composer.json has been updated. Now is your chance to perform any manual changes. Please do your changes (if any) then press enter to continue...
composer require vardot/varbase-updater
Would you like to abort the update process and restore the backup? (no):
mv: cannot stat '/var/www/html/office/composer.new.json': No such file or directory
composer.json has been updated. Now is your chance to perform any manual changes. Please do your changes (if any) then press enter to continue...
Updating Varbase...
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 43 updates, 0 removals
- Upgrading bower-asset/jquery (3.6.4 => 3.7.1)
- Upgrading composer/ca-bundle (1.3.7 => 1.4.0)
- Upgrading consolidation/annotated-command (4.9.1 => 4.9.2)
- Upgrading drupal/blazy (2.16.0 => 2.22.0)
- Upgrading drupal/core-composer-scaffold (10.1.7 => 10.2.0)
- Upgrading drupal/core-project-message (10.1.7 => 10.2.0)
- Upgrading drupal/ds_extras (3.15.0 => 3.16.0)
- Upgrading drupal/editoria11y (2.1.6 => 2.1.7)
- Upgrading drupal/entity_browser_generic_embed (9.1.3 => 9.1.4)
- Upgrading drupal/google_analytics_reports (3.0.0 => 3.1.0)
- Upgrading drupal/google_analytics_reports_api (3.0.0 => 3.1.0)
- Upgrading drupal/imagemagick (3.5.0 => 3.6.0)
- Upgrading drupal/plupload (2.1.0-beta2 => 2.1.0-rc1)
- Upgrading drupal/simple_sitemap (4.1.7 => 4.1.8)
- Upgrading drupal/slick (2.9.0 => 2.10.0)
- Upgrading drupal/slick_views (2.7.0 => 2.8.0)
- Upgrading drupal/varbase_core (9.1.16 => 9.1.18)
- Upgrading drupal/varbase_media (9.1.3 => 9.1.4)
- Upgrading npm-asset/ace-builds (1.32.1 => 1.32.2)
- Upgrading phpstan/phpdoc-parser (1.24.4 => 1.24.5)
- Upgrading phpunit/php-code-coverage (9.2.29 => 9.2.30)
- Upgrading psy/psysh (v0.11.22 => v0.12.0)
- Upgrading sebastian/complexity (2.0.2 => 2.0.3)
- Upgrading sebastian/lines-of-code (1.0.3 => 1.0.4)
- Upgrading seld/jsonlint (1.10.0 => 1.10.1)
- Upgrading symfony/console (v6.4.1 => v6.4.2)
- Upgrading symfony/dependency-injection (v6.4.1 => v6.4.2)
- Upgrading symfony/event-dispatcher (v6.4.0 => v6.4.2)
- Upgrading symfony/http-foundation (v6.4.0 => v6.4.2)
- Upgrading symfony/http-kernel (v6.4.1 => v6.4.2)
- Upgrading symfony/lock (v6.4.0 => v6.4.2)
- Upgrading symfony/mailer (v6.4.0 => v6.4.2)
- Upgrading symfony/phpunit-bridge (v6.4.1 => v6.4.2)
- Upgrading symfony/process (v6.4.0 => v6.4.2)
- Upgrading symfony/routing (v6.4.1 => v6.4.2)
- Upgrading symfony/serializer (v6.4.1 => v6.4.2)
- Upgrading symfony/service-contracts (v3.4.0 => v3.4.1)
- Upgrading symfony/string (v6.4.0 => v6.4.2)
- Upgrading symfony/translation-contracts (v3.4.0 => v3.4.1)
- Upgrading symfony/validator (v6.4.0 => v6.4.2)
- Upgrading symfony/var-dumper (v6.4.0 => v6.4.2)
- Upgrading symfony/var-exporter (v6.4.1 => v6.4.2)
- Upgrading vardot/betterlogin (2.0.1 => 2.0.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 43 updates, 0 removals
- Downloading drupal/core-project-message (10.2.0)
- Downloading drupal/core-composer-scaffold (10.2.0)
- Downloading symfony/http-foundation (v6.4.2)
- Downloading symfony/event-dispatcher (v6.4.2)
- Downloading symfony/var-dumper (v6.4.2)
- Downloading symfony/http-kernel (v6.4.2)
- Downloading composer/ca-bundle (1.4.0)
- Downloading symfony/string (v6.4.2)
- Downloading symfony/service-contracts (v3.4.1)
- Downloading symfony/console (v6.4.2)
- Downloading npm-asset/ace-builds (1.32.2)
- Downloading symfony/translation-contracts (v3.4.1)
- Downloading symfony/validator (v6.4.2)
- Downloading symfony/serializer (v6.4.2)
- Downloading symfony/routing (v6.4.2)
- Downloading symfony/process (v6.4.2)
- Downloading symfony/var-exporter (v6.4.2)
- Downloading symfony/dependency-injection (v6.4.2)
- Downloading drupal/blazy (2.22.0)
- Downloading symfony/phpunit-bridge (v6.4.2)
- Downloading symfony/lock (v6.4.2)
- Downloading sebastian/lines-of-code (1.0.4)
- Downloading sebastian/complexity (2.0.3)
- Downloading phpunit/php-code-coverage (9.2.30)
- Downloading phpstan/phpdoc-parser (1.24.5)
- Downloading seld/jsonlint (1.10.1)
- Downloading drupal/editoria11y (2.1.7)
- Downloading drupal/slick (2.10.0)
- Downloading drupal/slick_views (2.8.0)
- Downloading drupal/imagemagick (3.6.0)
- Downloading drupal/varbase_media (9.1.4)
- Downloading drupal/google_analytics_reports (3.1.0)
- Downloading drupal/plupload (2.1.0-rc1)
- Downloading drupal/simple_sitemap (4.1.8)
- Downloading symfony/mailer (v6.4.2)
- Downloading psy/psysh (v0.12.0)
- Downloading consolidation/annotated-command (4.9.2)
- Downloading vardot/betterlogin (2.0.3)
- Downloading drupal/varbase_core (9.1.18)
0/39 [>---------------------------] 0%
1/39 [>---------------------------] 2%
4/39 [==>-------------------------] 10%
8/39 [=====>----------------------] 20%
10/39 [=======>--------------------] 25%
12/39 [========>-------------------] 30%
16/39 [===========>----------------] 41%
20/39 [==============>-------------] 51%
24/39 [=================>----------] 61%
28/39 [====================>-------] 71%
32/39 [======================>-----] 82%
36/39 [=========================>--] 92%
39/39 [============================] 100%
- Upgrading drupal/core-project-message (10.1.7 => 10.2.0): Extracting archive
- Installing cweagans/composer-patches (1.7.3): Extracting archive
Gathering patches for root package.
No patches supplied.
Gathering patches for dependencies. This might take a minute.
- Upgrading drupal/core-composer-scaffold (10.1.7 => 10.2.0): Extracting archive
- Upgrading symfony/http-foundation (v6.4.0 => v6.4.2): Extracting archive
- Upgrading symfony/event-dispatcher (v6.4.0 => v6.4.2): Extracting archive
- Upgrading symfony/var-dumper (v6.4.0 => v6.4.2): Extracting archive
- Upgrading symfony/http-kernel (v6.4.1 => v6.4.2): Extracting archive
- Upgrading bower-asset/jquery (3.6.4 => 3.7.1): Extracting archive
- Upgrading composer/ca-bundle (1.3.7 => 1.4.0): Extracting archive
- Upgrading symfony/string (v6.4.0 => v6.4.2): Extracting archive
- Upgrading symfony/service-contracts (v3.4.0 => v3.4.1): Extracting archive
- Upgrading symfony/console (v6.4.1 => v6.4.2): Extracting archive
- Upgrading npm-asset/ace-builds (1.32.1 => 1.32.2): Extracting archive
- Upgrading symfony/translation-contracts (v3.4.0 => v3.4.1): Extracting archive
- Upgrading symfony/validator (v6.4.0 => v6.4.2): Extracting archive
- Upgrading symfony/serializer (v6.4.1 => v6.4.2): Extracting archive
- Upgrading symfony/routing (v6.4.1 => v6.4.2): Extracting archive
- Upgrading symfony/process (v6.4.0 => v6.4.2): Extracting archive
- Upgrading symfony/var-exporter (v6.4.1 => v6.4.2): Extracting archive
- Upgrading symfony/dependency-injection (v6.4.1 => v6.4.2): Extracting archive
- Upgrading drupal/blazy (2.16.0 => 2.22.0): Extracting archive
- Upgrading symfony/phpunit-bridge (v6.4.1 => v6.4.2): Extracting archive
- Upgrading symfony/lock (v6.4.0 => v6.4.2): Extracting archive
- Upgrading sebastian/lines-of-code (1.0.3 => 1.0.4): Extracting archive
- Upgrading sebastian/complexity (2.0.2 => 2.0.3): Extracting archive
- Upgrading phpunit/php-code-coverage (9.2.29 => 9.2.30): Extracting archive
- Upgrading phpstan/phpdoc-parser (1.24.4 => 1.24.5): Extracting archive
- Upgrading seld/jsonlint (1.10.0 => 1.10.1): Extracting archive
- Upgrading drupal/editoria11y (2.1.6 => 2.1.7): Extracting archive
- Upgrading drupal/slick (2.9.0 => 2.10.0): Extracting archive
- Upgrading drupal/slick_views (2.7.0 => 2.8.0): Extracting archive
- Upgrading drupal/imagemagick (3.5.0 => 3.6.0): Extracting archive
- Upgrading drupal/entity_browser_generic_embed (9.1.3 => 9.1.4)
- Upgrading drupal/ds_extras (3.15.0 => 3.16.0)
- Upgrading drupal/varbase_media (9.1.3 => 9.1.4): Extracting archive
- Upgrading drupal/google_analytics_reports_api (3.0.0 => 3.1.0)
- Upgrading drupal/google_analytics_reports (3.0.0 => 3.1.0): Extracting archive
- Upgrading drupal/plupload (2.1.0-beta2 => 2.1.0-rc1): Extracting archive
- Upgrading drupal/simple_sitemap (4.1.7 => 4.1.8): Extracting archive
- Upgrading symfony/mailer (v6.4.0 => v6.4.2): Extracting archive
- Upgrading psy/psysh (v0.11.22 => v0.12.0): Extracting archive
- Upgrading consolidation/annotated-command (4.9.1 => 4.9.2): Extracting archive
- Upgrading vardot/betterlogin (2.0.1 => 2.0.3): Extracting archive
- Upgrading drupal/varbase_core (9.1.16 => 9.1.18): Extracting archive
0/38 [>---------------------------] 0%
10/38 [=======>--------------------] 26%
19/38 [==============>-------------] 50%
29/38 [=====================>------] 76%
31/38 [======================>-----] 81%
38/38 [============================] 100%
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files
Skipped installation of bin robo for package consolidation/robo: file not found in package
Skipped installation of bin scripts/release for package consolidation/self-update: file not found in package
Skipped installation of bin bin/generate-defuse-key for package defuse/php-encryption: file not found in package
Skipped installation of bin bin/yaml-cli for package grasmash/yaml-cli: file not found in package
Skipped installation of bin bin/validate-json for package justinrainbow/json-schema: file not found in package
Skipped installation of bin scripts/php-css-lint for package neilime/php-css-lint: file not found in package
100 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
phpstan/extension-installer: Extensions installed
Scaffolding files for drupal/core:
- Copy [web-root]/sites/development.services.yml from assets/scaffold/files/development.services.yml
> Varbase\composer\ScriptHandler::postDrupalScaffoldProcedure
> Varbase\composer\ScriptHandler::createRequiredFiles
> Varbase\composer\ScriptHandler::removeGitDirectories
No security vulnerability advisories found.
[warning] unlink(/var/www/html/office/docroot/sites/default/files/css/css_s9TnHcS-ppygszusCotVjk2nH7REO7iWc3ZRUnR-OHU.css.gz): Permission denied FileSystem.php:124
In FileSystem.php line 326:
Failed to unlink file 'assets://css/css_s9TnHcS-ppygszusCotVjk2nH7REO7iWc3ZRUnR-OHU.css.gz'.
Something went wrong while rebuilding the cache (drush cr), this might cause the update to fail.
Would you like to abort the update process and restore the backup? (no):
Enabling new required modules for the latest Varbase version...
Updating the database for latest changes.
[warning] unlink(/var/www/html/office/docroot/sites/default/files/css/css_s9TnHcS-ppygszusCotVjk2nH7REO7iWc3ZRUnR-OHU.css.gz): Permission denied FileSystem.php:124
In FileSystem.php line 326:
Failed to unlink file 'assets://css/css_s9TnHcS-ppygszusCotVjk2nH7REO7iWc3ZRUnR-OHU.css.gz'.
-------- ------------------- --------------- ---------------------------------
Module Update ID Type Description
-------- ------------------- --------------- ---------------------------------
blazy 8217 hook_update_n 8217 - Matching a more relevant
module version.
slick 8210 hook_update_n 8210 - Matching a more relevant
module version.
blazy added_blazy_media post-update Added a new Blazy Media
_service service.
blazy added_formatter_b post-update Added a new Blazy Grid
lazy_entity formatter for entityreferences.
blazy remove_file_repos post-update Removed file.repository service
itory_service from blazy.svg for D9.3, see
#3393539.
slick changed_slick_adm post-update Clear cache to change
in_service_parame slick.admin service parameter.
ter
-------- ------------------- --------------- ---------------------------------
// Do you wish to run the specified pending updates?: yes.
> [notice] Update started: blazy_update_8217
> [notice] Update completed: blazy_update_8217
> [notice] Update started: slick_update_8210
> [notice] Update completed: slick_update_8210
> [warning] unlink(/var/www/html/office/docroot/sites/default/files/css/css_s9TnHcS-ppygszusCotVjk2nH7REO7iWc3ZRUnR-OHU.css.gz): Permission denied FileSystem.php:124
> [error] Failed to unlink file 'assets://css/css_s9TnHcS-ppygszusCotVjk2nH7REO7iWc3ZRUnR-OHU.css.gz'.
>
> In FileSystem.php line 326:
>
> Failed to unlink file 'assets://css/css_s9TnHcS-ppygszusCotVjk2nH7REO7iWc3Z
> RUnR-OHU.css.gz'.
>
>
In ProcessBase.php line 155:
Output is empty.
There was an error while updating Drupal core. Please check /var/www/html/office/.update-error-log for more information.
Would you like to abort the update process and restore the backup? (no):
Hoya! Updates are now done. We will add a link in the near future for here to link to common issues appearing after updates and how to fix them.
You are on vardot/varbase (9.0.16). A newer version (9.0.17) is now available.
Please run: ./bin/update-varbase.sh to update to vardot/varbase (9.0.17).
Running the updater again it wll start from 9.016 to 9.017 with same results.
How to proceed?
I'm a compleet nono in linux. How to solve the unlink is I guess the first step?
Steps to reproduce
Proposed resolution
Remaining tasks
- ✅ File an issue about this project
- ❌ Addition/Change/Update/Fix to this project
- ❌ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ❌ Code review from 1 Varbase core team member
- ❌ Full testing and approval
- ❌ Credit contributors
- ❌ Review with the product owner
- ❌ Update Release Notes and Update Helper on new feature change/addition
- ❌ Release
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
API changes
Data model changes
Release notes snippet