shaal / DrupalPod

Start Drupal contributions with 1 click.
https://shaal.github.io/DrupalPod
MIT License
163 stars 54 forks source link

Failed basic installation #124

Closed rfay closed 11 months ago

rfay commented 11 months ago

Describe the bug

To test the latest Drupalpod I tried using an issue and got

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drush/drush 11.0.0-rc1 requires chi-teck/drupal-code-generator ^2.2 -> found chi-teck/drupal-code-generator[2.2.0, ..., 2.x-dev] but the package is fixed to 3.2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - drush/drush[11.0.0-rc2, ..., 11.0.1] require chi-teck/drupal-code-generator ^2.3 -> found chi-teck/drupal-code-generator[2.3.0, ..., 2.x-dev] but the package is fixed to 3.2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - drush/drush[11.0.2, ..., 11.x-dev] require chi-teck/drupal-code-generator ^2.4 -> found chi-teck/drupal-code-generator[2.4.0, ..., 2.x-dev] but the package is fixed to 3.2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires drush/drush ^11.0 -> satisfiable by drush/drush[11.0.0-rc1, ..., 11.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require drupal/devel:*" to figure out if any version is installable, or "composer require drupal/devel:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Failed to execute command composer require drush/drush:^11.0 drupal/coder:^8.3 drupal/devel  --no-install: exit status 2

Later,

Config value "installed_paths" updated successfully; old value was "../../drupal/coder/coder_sniffer,../../sirbrillig/phpcs-variable-analysis,../../slevomat/coding-standard"
PHP Fatal error:  Class Drush\Commands\core_development\DevelopmentProjectCommands cannot extend final class Drush\Commands\core\CacheCommands in /var/www/html/drush/Commands/core_development/DevelopmentProjectCommands.php on line 0

Fatal error: Class Drush\Commands\core_development\DevelopmentProjectCommands cannot extend final class Drush\Commands\core\CacheCommands in /var/www/html/drush/Commands/core_development/DevelopmentProjectCommands.php on line 0
 [warning] Drush command terminated abnormally.
Failed to run drush updb -y: exit status 1

To Reproduce

Use Drupalpod on https://www.drupal.org/project/drupal/issues/3284961

image

Expected behavior

Install successfully

Screenshots

Many failures, per above

Version and configuration information (please complete the following information)

Additional context

Related: Please provide a "safe" issue for testing.

rfay commented 11 months ago

The behavior now is certainly different, thanks for the work on this.

Now I see

In install.core.inc line 1235:

  Missing profile parameter.  

Failed to run drush si -y --account-pass=admin --site-name=DrupalPod '': exit status 1

  Command pm:install was not found. Drush was unable to query the database. As a result, many commands are unavailable. Re-run your command with --  
  debug to see relevant log messages.                                                                                                                

The web UI comes up with the install screen, and I was able to do web install without trouble.

Full output: https://gist.github.com/rfay/99d792a69747c0ea30906875951768f6

Maybe I selected something wrong in the selection form?

Here's what I apparently did:

image

I seem to have left "install profile" as none, my eyes skipped over it. I recommend removing the "none" option and replacing it with "standard" or "demo_umami" as default.

rfay commented 11 months ago

When I provided an install profile it ran successfully to completion. https://gist.github.com/rfay/43c0141c8122f192408d521a7029f569

rfay commented 11 months ago

I do recommend not defaulting to "none" for the install profile.

rfay commented 11 months ago

Followup: