Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Some drush commands prevented because of duplicated service key.
e. G.
drupal@drupal-virtualbox:/var/www/drupal$ drush sql:drop
Do you really want to drop all tables in the database drupal? (yes/no) [yes]:
> y
drupal@drupal-virtualbox:/var/www/drupal$ drush si --locale=de
You are about to:
* DROP all tables in your 'drupal' database.
Do you want to continue? (yes/no) [yes]:
>
[notice] Starting Drupal installation. This takes a while.
[notice] Performed install task: install_select_language
[notice] Performed install task: install_select_profile
[notice] Performed install task: install_load_profile
[notice] Performed install task: install_verify_requirements
[notice] Performed install task: install_verify_database_ready
[notice] Performed install task: install_base_system
[notice] Performed install task: install_bootstrap_full
[notice] Performed install task: install_profile_modules
[notice] Performed install task: install_profile_themes
[notice] Performed install task: install_install_profile
[notice] Translations imported: 9842 added, 0 updated, 0 removed.
[notice] Performed install task: install_import_translations
[notice] Performed install task: install_configure_form
[notice] Performed install task: varbase_multilingual_configuration_form
[notice] Performed install task: varbase_configure_multilingual
[notice] Performed install task: varbase_extra_components
[warning] The "block_content:b858d97d-eaa5-4cfe-af6f-b92c21bbca95" was not found
[notice] Performed install task: varbase_assemble_extra_components
[notice] Performed install task: varbase_development_tools
[notice] Performed install task: varbase_assemble_development_tools
[notice] Performed install task: install_finish_translations
[notice] Cron run completed.
[notice] Performed install task: install_finished
[success] Installation complete. User name: admin User password: Qs8qUUSfbx
drupal@drupal-virtualbox:/var/www/drupal$ drush upwd admin 12345
In YamlSymfony.php line 40:
Duplicate key "services" detected at line 6.
In Parser.php line 335:
Duplicate key "services" detected at line 6.
drupal@drupal-virtualbox:/var/www/drupal$
Steps to reproduce
Install varbase via composer
add drush
try to change password of any user by useing upwd
Comments
Comment #2
Joachim Namysloit's a drush 10 related one so I cloesd the Issue here.
Comment #3
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedThanks Joachim for reporting
Yes you are right
I faced that Yesterday .. even basic
drush en
.. ordrush cr
Drush 10 is the one having issues
The robot had issues with that too
on
drush pm-enable
( did not work )drush cr
( did not work)But
drush site-install
( worked )and
drush runserver --default-server=builtin 8080 &>/dev/null &
( did not work too )Not all things work with Drush 10 and Varbase 9.0.x
Trying to switch to Drupal Console.. But same for Drupal Console too
https://travis-ci.com/github/Vardot/varbase/builds/190868455
It's working well with Drush 9 and Varbase 8.8.x
https://travis-ci.com/github/Vardot/varbase/builds/190875563
Comment #4
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedHaving the issue back to Active
More reading and researching on the Drush 10 documentation. The status for working with production websites.
https://www.drush.org/commands/10.x/all/
https://drushcommands.com/drush-9x/ ( no doc for drush 10 yet )
Looking for better documentation and clear working examples
Needed for the automated functional testing
Comment #5
Joachim NamysloOk tested a bit more and asked for some help here : https://github.com/drush-ops/drush/issues/4577
It seems that is not a drush problem at all.
If Drupal 9 core plus drush plus console is installed everything works fine. So the problem must be within a module used by varbase right now. No clue how to find out wich one it is. What I would do is install and uninstall modules one by one to find the module that causes the issue. But I bet automated testing can do this much faster than myself.
Maybe is one of theese modules:
Added RajabNatshah to the conversation in d9readyness-channel on slack.
Comment #6
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedThank you Joachim for following up on issues
Having a scan for all custom drush commands in all contributed components
We do have one in Varbase Core too
#3120775: Drush 10 compatibility with Drupal 9 compatibility for all custom drush commands
Comment #7
yasmeensalah CreditAttribution: yasmeensalah at Vardot commented@rajabnatshah This issue is caused by "Varbase update helper/Update helper" module, i've disabled it and drush works fine.
Comment #8
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedThank you Yasmeen so much for the note
You have saved me a 1-day work
#3024165: [PATCH] Enhancements, Better messages for the unable to apply updates, drush command
David had a new patch
did not notice that
https://www.drupal.org/project/update_helper/issues/3024165#comment-1382...
I think this is it
I will switch the patch
and do a quick release for varbase_core module 9.0.0-alpha2
Comment #9
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedMoving the issue to Varbase Core module
Comment #11
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #13
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #14
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commentedComment #15
Rajab Natshah CreditAttribution: Rajab Natshah at Vardot commented