When trying to update from drupal 8.6.2 to 8.6.4, I get no result. I tried composer update drupal/core webflo/drupal-core-require-dev --with-dependencies --dry-runto no avail. composer prohibits drupal/core:8.6.4gives me

webflo/drupal-core-require-dev  8.6.2  requires  drupal/core (8.6.2)

and composer prohibits webflo/drupal-core-require-dev:8.6.4gives me

drupal-composer/drupal-project  -      requires          webflo/drupal-core-require-dev (8.6.2)  
webflo/drupal-core-require-dev  8.6.4  requires          drupal/core (8.6.4)                     
drupal-composer/drupal-project  -      does not require  drupal/core (but 8.6.2 is installed) 

In the .json file, drupal/core andwebflo/drupal-core-require-dev are set to ^8.6.

I tried out many ideas I found in this forum or on github, like adding symfony/* to the update line, which gives me an error ("Package "symfony/*" listed for update is not installed. Ignoring.") like mentioned in this post: https://github.com/drupal-composer/drupal-project/issues/416

What could be blocking the update? How to find out? What other information is needed to solve this?

Comments

Partha Sarathi’s picture

composer update drupal/core webflo/drupal-core-require-dev symfony/class-loader symfony/console symfony/dependency-injection symfony/event-dispatcher symfony/http-foundation symfony/http-kernel symfony/routing symfony/serializer symfony/translation symfony/validator symfony/process symfony/polyfill-iconv symfony/yaml symfony-cmf/routing symfony/psr-http-message-bridge --with-dependencies

If you are using composer to install drupal then it is easier to update.

It may help.

divanke’s picture

Still no output, no result, no message even.

I didn't install drupal myself, I recently took over administration. But I assume, it was installed using composer. If it helps here is the output of composer -m outdated

alchemy/zippy                    0.4.3           0.4.9           Zippy, the archive manager companion
chi-teck/drupal-code-generator   1.24.0          1.27.0          Drupal code generator
commerceguys/addressing          v1.0.0-beta5    v1.0.2          Addressing library powered by Google's address data.
composer/installers              v1.5.0          v1.6.0          A multi-framework Composer library installer
consolidation/annotated-command  2.8.3           2.10.0          Initialize Symfony Console commands from annotated command cl...
consolidation/config             1.0.9           1.1.1           Provide configuration services for a commandline tool.
consolidation/log                1.0.5           1.0.6           Improved Psr-3 / Psr\Log logger based on Symfony Console comp...
consolidation/output-formatters  3.2.0           3.4.0           Format text by applying transformations provided by plug-in f...
consolidation/robo               1.2.3           1.3.2           Modern task runner
cweagans/composer-patches        1.6.4           1.6.5           Provides a way to patch Composer packages.
dflydev/dot-access-configuration v1.0.2          v1.0.3          Given a deep data structure representing a configuration, acc...
doctrine/common                  v2.9.0          v2.10.0         Common Library for Doctrine projects
doctrine/persistence             v1.0.1          v1.1.0          Doctrine Persistence abstractions.
drupal-composer/drupal-scaffold  2.4.0           2.5.4           Composer Plugin for updating the Drupal scaffold files when u...
drupal/admin_toolbar             1.24.0          1.25.0          Provides a drop-down menu interface to the core Drupal Toolbar.
drupal/bootstrap                 3.13.0          3.16.0          Built to use Bootstrap, a sleek, intuitive, and powerful fron...
drupal/core                      8.6.2           8.6.4           Drupal is an open source content management platform powering...
drupal/entity_embed              1.x-dev bdb4e9d 1.x-dev 4826d64 Allows any entity to be embedded within a text area using a W...
drupal/eu_cookie_compliance      1.x-dev 3bf5641 1.x-dev 0eb6ac7 This module aims at making the website compliant with the new...
drupal/field_group               3.x-dev 072bf21 3.x-dev c7b3194 Provides the field_group module.
drupal/focal_point               1.x-dev 641b4be 1.x-dev 974dc23 Allows users to specify the focal point of an image for use d...
drupal/migrate_tools             2.0.0-beta1     2.0.0           Tools to assist in developing and running migrations.
drupal/webform                   5.0.0-rc26      5.0.0-rc29      Enables the creation of webforms and questionnaires.
drupal/yoast_seo                 1.4.0           1.5.0           Adds Real-time SEO page analysis and configuration.
drush/drush                      9.2.3           9.5.2           Drush is a command line shell and scripting interface for Dru...
guzzlehttp/psr7                  1.4.2           1.5.2           PSR-7 message implementation that also provides common utilit...
masterminds/html5                2.3.0           2.4.0           An HTML5 parser and serializer.
mikehaertl/php-shellcommand      1.4.0           1.4.1           An object oriented interface to shell commands
nikic/php-parser                 v4.0.1          v4.1.0          A PHP parser written in PHP
phar-io/manifest                 1.0.1           1.0.3           Component for reading phar.io manifest information from a PHP...
phenx/php-svg-lib                v0.3            v0.3.2          A library to read, parse and export to PDF SVG files.
psr/log                          1.0.2           1.1.0           Common interface for logging libraries
psy/psysh                        v0.9.3          v0.9.9          An interactive shell for modern PHP.
sabberworm/php-css-parser        8.1.0           8.2.0           Parser for CSS Files written in PHP
symfony/browser-kit              v4.1.6          v4.2.1          Symfony BrowserKit Component
symfony/class-loader             v3.4.17         v3.4.20         Symfony ClassLoader Component
symfony/config                   v3.4.9          v3.4.20         Symfony Config Component
symfony/console                  v3.4.17         v3.4.20         Symfony Console Component
symfony/css-selector             v3.4.17         v3.4.20         Symfony CssSelector Component
symfony/debug                    v3.4.17         v3.4.20         Symfony Debug Component
symfony/dependency-injection     v3.4.17         v3.4.20         Symfony DependencyInjection Component
symfony/dom-crawler              v3.4.17         v3.4.20         Symfony DomCrawler Component
symfony/event-dispatcher         v3.4.17         v3.4.20         Symfony EventDispatcher Component
symfony/filesystem               v3.4.9          v3.4.20         Symfony Filesystem Component
symfony/finder                   v3.4.9          v3.4.20         Symfony Finder Component
symfony/http-foundation          v3.4.17         v3.4.20         Symfony HttpFoundation Component
symfony/http-kernel              v3.4.17         v3.4.20         Symfony HttpKernel Component
symfony/phpunit-bridge           v3.4.17         v3.4.20         Symfony PHPUnit Bridge
symfony/polyfill-ctype           v1.9.0          v1.10.0         Symfony polyfill for ctype functions
symfony/polyfill-iconv           v1.9.0          v1.10.0         Symfony polyfill for the Iconv extension
symfony/polyfill-mbstring        v1.9.0          v1.10.0         Symfony polyfill for the Mbstring extension
symfony/polyfill-php70           v1.9.0          v1.10.0         Symfony polyfill backporting some PHP 7.0+ features to lower ...
symfony/process                  v3.4.17         v3.4.20         Symfony Process Component
symfony/routing                  v3.4.17         v3.4.20         Symfony Routing Component
symfony/serializer               v3.4.17         v3.4.20         Symfony Serializer Component
symfony/translation              v3.4.17         v3.4.20         Symfony Translation Component
symfony/validator                v3.4.17         v3.4.20         Symfony Validator Component
symfony/var-dumper               v3.4.9          v3.4.20         Symfony mechanism for exploring and dumping PHP variables
symfony/yaml                     v3.4.17         v3.4.20         Symfony Yaml Component
tecnickcom/tcpdf                 6.2.17          6.2.26          TCPDF is a PHP class for generating PDF documents and barcodes.
vlucas/phpdotenv                 v2.4.0          v2.5.1          Loads environment variables from `.env` to `getenv()`, `$_ENV...
webflo/drupal-core-require-dev   8.6.2           8.6.4           require-dev dependencies from drupal/core

and the composer.json:

{
    "name": "drupal-composer/drupal-project",
    "description": "Project template for Drupal 8 projects with composer",
    "type": "project",
    "license": "GPL-2.0-or-later",
    "authors": [
        {
            "name": "",
            "role": ""
        }
    ],
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],
    "require": {
        "composer/installers": "^1.2",
        "cweagans/composer-patches": "^1.6",
        "drupal-composer/drupal-scaffold": "^2.5",
        "drupal/address": "~1.0",
        "drupal/admin_toolbar": "^1.22",
        "drupal/adminimal_theme": "^1.3",
        "drupal/anchor_link": "^1.4",
        "drupal/back_to_top": "^1.0@beta",
        "drupal/backup_migrate": "^4.0",
        "drupal/better_exposed_filters": "^3.0@alpha",
        "drupal/block_content_permissions": "^1.3",
        "drupal/bootstrap": "^3.7",
        "drupal/bootstrap_layouts": "5.x-dev",
        "drupal/bootstrap_paragraphs": "^2.0@beta",
        "drupal/cacheflush": "^1.0@beta",
        "drupal/chosen": "^2.3",
        "drupal/console": "^1.8",
        "drupal/contact_formatter": "^1.0",
        "drupal/content_browser": "^1.0@alpha",
        "drupal/core": "^8.6.2",
        "drupal/crop": "^2.0",
        "drupal/custom_formatters": "^3.0@alpha",
        "drupal/ds": "^3.1",
        "drupal/easy_breadcrumb": "1.x-dev",
        "drupal/easy_install": "^10.0",
        "drupal/editor_advanced_link": "^1.4",
        "drupal/entity": "^1.0",
        "drupal/entity_browser": "2.x-dev",
        "drupal/entity_embed": "dev-1.x",
        "drupal/entity_print": "2.x-dev",
        "drupal/entity_reference_revisions": "^1.3",
        "drupal/entity_reference_views_select": "^1.1",
        "drupal/eu_cookie_compliance": "1.x-dev",
        "drupal/eva": "^1.2",
        "drupal/extlink": "^1.0",
        "drupal/field_formatter_class": "^1.0",
        "drupal/field_group": "3.x-dev",
        "drupal/file_entity": "^2.0",
        "drupal/flexslider": "^2.0@beta",
        "drupal/focal_point": "1.x-dev",
        "drupal/footnotes": "^2.0",
        "drupal/image_link_attributes": "^1.2",
        "drupal/inline_entity_form": "^1.0@beta",
        "drupal/libraries": "3.x-dev",
        "drupal/linked_field": "^1.1",
        "drupal/linkit": "^5.0-beta6",
        "drupal/media_entity_browser": "2.0-alpha1",
        "drupal/metatag": "^1.0",
        "drupal/migrate_tools": "^2.0",
        "drupal/multiselect": "1.x-dev",
        "drupal/page_manager": "^4.0@beta",
        "drupal/panels": "4.x-dev",
        "drupal/paragraphs": "^1.1",
        "drupal/pathauto": "^1.0@RC",
        "drupal/piwik": "^1.2",
        "drupal/printfriendly": "^3.2",
        "drupal/redirect": "^1.0",
        "drupal/scheduler": "^1.0",
        "drupal/select_or_other": "1.x-dev",
        "drupal/shariff": "^1.3",
        "drupal/simple_sitemap": "^2.9",
        "drupal/sitemap": "^1.3",
        "drupal/social_media_links": "^2.3",
        "drupal/svg_image": "^1.8",
        "drupal/taxonomy_formatter": "1.x-dev",
        "drupal/taxonomy_multidelete_terms": "^1.1",
        "drupal/taxonomy_unique": "^2.0",
        "drupal/toolbar_menu": "^2.1",
        "drupal/tvi": "^1.0@beta",
        "drupal/twitter_block": "3.0-alpha0",
        "drupal/unpublished_nodes_redirect": "^1.1",
        "drupal/video_embed_field": "^1.5",
        "drupal/views_bootstrap": "3.x-dev",
        "drupal/views_bulk_operations": "^2.3",
        "drupal/viewsreference": "^1.0@RC",
        "drupal/webform": "^5.0",
        "drupal/yoast_seo": "^1.2",
        "drush/drush": "^9.0.0",
        "mikehaertl/phpwkhtmltopdf": "~2.1",
        "oomphinc/composer-installers-extender": "^1.1",
        "tecnickcom/tcpdf": "~6",
        "vlucas/phpdotenv": "^2.4",
        "webflo/drupal-core-require-dev": "8.6.2",
        "webflo/drupal-finder": "^1.0.0",
        "webmozart/path-util": "^2.3",
        "wikimedia/composer-merge-plugin": "^1.4"
    },
    "require-dev": {
    },
    "conflict": {
        "drupal/drupal": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "config": {
        "sort-packages": true
    },
    "autoload": {
        "classmap": [
            "scripts/composer/ScriptHandler.php"
        ],
        "files": ["load.environment.php"]
    },
    "scripts": {
        "drupal-scaffold": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold",
        "pre-install-cmd": [
            "DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
        ],
        "pre-update-cmd": [
            "DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
        ],
        "post-install-cmd": [
            "DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
        ],
        "post-update-cmd": [
            "DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
        ]
    },
    "extra": {
        "installer-paths": {
            "web/core": ["type:drupal-core"],
            "web/libraries/{$name}": ["type:drupal-library"],
            "web/modules/contrib/{$name}": ["type:drupal-module"],
            "web/profiles/contrib/{$name}": ["type:drupal-profile"],
            "web/themes/contrib/{$name}": ["type:drupal-theme"],
            "drush/contrib/{$name}": ["type:drupal-drush"]
        }
    }
}

Perhaps anyone can spot the fault ... I would very much appreciate it!

mmjvb’s picture

docker@cli:/var/www/divanke$ composer prohibits drupal/core:8.6.4
webflo/drupal-core-require-dev  8.6.2  requires  drupal/core (8.6.2)  
docker@cli:/var/www/divanke$ composer prohibits webflo/drupal-core-require-dev:8.6.4
drupal-composer/drupal-project  -      requires          webflo/drupal-core-require-dev (8.6.2)  
webflo/drupal-core-require-dev  8.6.4  requires          drupal/core (8.6.4)                     
drupal-composer/drupal-project  -      does not require  drupal/core (but 8.6.2 is installed)    

Should be the same version constraint as drupal/core, ^8.6.2

divanke’s picture

Thanks for spotting that, but correcting it didn't help. Any other ideas?

mmjvb’s picture

docker@cli:/var/www/divanke$ composer show|grep core
drupal-composer/drupal-scaffold       2.5.4              Composer Plugin for updating the Drupal scaffold files when using drupal/core
drupal/admin_toolbar                  1.25.0             Provides a drop-down menu interface to the core Drupal Toolbar.
drupal/console-core                   1.8.0              Drupal Console Core
drupal/core                           8.6.4              Drupal is an open source content management platform powering millions of ...
drupal/entity                         1.0.0-rc1          Provides expanded entity APIs, which will be moved to Drupal core one day.
drupal/migrate_plus                   4.0.0              Enhancements to core migration support.
drupal/token                          1.5.0              Provides a user interface for the Token API and some missing core tokens.
webflo/drupal-core-require-dev        8.6.4              require-dev dependencies from drupal/core
docker@cli:/var/www/divanke$ composer show|grep webflo
webflo/drupal-core-require-dev        8.6.4              require-dev dependencies from drupal/core
webflo/drupal-finder                  1.1.0              Helper class to locate a Drupal installation from a given path.
docker@cli:/var/www/divanke$

No further ideas needed, that is your issue. What did you do?

divanke’s picture

composer require drupal/core:^8.6

composer require --dev webflo/drupal-core-require-dev:^8.6

and

composer remove webflo/drupal-core-require-dev

to not only give them the same version constraint but also to move the webflo/... to the require section.

I would be very thankful, if you could help me further. I am completely at a loss here.

mmjvb’s picture

what you expected. You would probably need to update both because the version specification doesn't force a change.

Below the transcript of upgrading to 8.6.5

docker@cli:/var/www/divanke$ composer require drupal/core:~8.6.5
./composer.json has been updated
    1/1:	http://packagist.org/p/provider-latest$5bce3035dcca72212e1c0e12f876f7076fa060c4581e4c6e11988e2acf7fb695.json
    Finished: success: 1, skipped: 0, failure: 0, total: 1
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - webflo/drupal-core-require-dev 8.6.4 requires drupal/core 8.6.4 -> satisfiable by drupal/core[8.6.4] but these conflict with your requirements or minimum-stability.
    - webflo/drupal-core-require-dev 8.6.4 requires drupal/core 8.6.4 -> satisfiable by drupal/core[8.6.4] but these conflict with your requirements or minimum-stability.
    - webflo/drupal-core-require-dev 8.6.4 requires drupal/core 8.6.4 -> satisfiable by drupal/core[8.6.4] but these conflict with your requirements or minimum-stability.
    - Installation request for webflo/drupal-core-require-dev (locked at 8.6.4, required as ^8.6.2) -> satisfiable by webflo/drupal-core-require-dev[8.6.4].


Installation failed, reverting ./composer.json to its original content.
docker@cli:/var/www/divanke$ composer require drupal/core:~8.6.5 webflo/drupal-core-require-dev:~8.6.5
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
    1/2:	https://codeload.github.com/webflo/drupal-core-require-dev/legacy.zip/626e9fa839853f99aaf400be515064fe59682d4c
    2/2:	https://codeload.github.com/drupal/core/legacy.zip/b66c9334d4a4264589c8b8a2fef73eefcb34a26e
    Finished: success: 2, skipped: 0, failure: 0, total: 2
Package operations: 0 installs, 2 updates, 0 removals
  - Updating drupal/core (8.6.4 => 8.6.5): Loading from cache
Writing lock file
Generating autoload files
  - Downloading 4/16: https://cgit.drupalcode.org/drupal/plain/web.config
  - Downloading 4/16: https://cgit.drupalcode.org/drupal/plain/update.php
  - Downloading 4/16: https://cgit.drupalcode.org/drupal/plain/sites/example.sites.php
  - Downloading 4/16: https://cgit.drupalcode.org/drupal/plain/sites/example.settings.local.php
  - Downloading 6/16: https://cgit.drupalcode.org/drupal/plain/sites/development.services.yml
  - Downloading 6/16: https://cgit.drupalcode.org/drupal/plain/robots.txt
  - Downloading 7/16: https://cgit.drupalcode.org/drupal/plain/sites/default/default.services.yml
  - Downloading 8/16: https://cgit.drupalcode.org/drupal/plain/sites/default/default.settings.php
  - Downloading 9/16: https://cgit.drupalcode.org/drupal/plain/index.php
  - Downloading 12/16: https://cgit.drupalcode.org/drupal/plain/.ht.router.php
  - Downloading 12/16: https://cgit.drupalcode.org/drupal/plain/.gitattributes
  - Downloading 12/16: https://cgit.drupalcode.org/drupal/plain/.eslintrc.json
  - Downloading 13/16: https://cgit.drupalcode.org/drupal/plain/.eslintignore
  - Downloading 14/16: https://cgit.drupalcode.org/drupal/plain/.editorconfig
  - Downloading 15/16: https://cgit.drupalcode.org/drupal/plain/.csslintrc
  - Downloading 16/16: https://cgit.drupalcode.org/drupal/plain/.htaccess
> DrupalProject\composer\ScriptHandler::createRequiredFiles
docker@cli:/var/www/divanke$ 

You might want to remove the webflo/drupal-core-require-dev completely. Assuming you manage a site and not doing code development there  is no need for require-dev. Saves you from specifying --no-dev, --update-no-dev.

Suggest to use ~8.6.5 to reduce memory usage and stay within 8.6 with update. Means you need `composer require drupal/core:~8.7.1` once ready to switch to 8.7. Assuming you wait for 8.7.1, use whatever is current at the moment you switch.

divanke’s picture

here is what I did:

xxx@xxx:$ composer require drupal/core:~8.6.5
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)

xxx@xxx:$ composer remove webflo/drupal-core-require-dev
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Dependency "drupal/core" is also a root requirement, but is not explicitly whitelisted. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)

xxx@xxx:$ composer update drupal/core
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)

Why does it just stop at that point? So I asked:

xxx@xxx:$ composer prohibits drupal/core:8.6.5
webflo/drupal-core-require-dev 8.6.2 requires drupal/core (8.6.2)

Why is it still listed there? What can I do?

mmjvb’s picture

Use `composer show` to verify whether webflo/drupal-core-require-dev exists. Remove it and verify it is gone. Verify drupal/core with `composer show -s`.  Use require ~8.6.5 or update depending on your verification.

divanke’s picture

Trying again gives me:

xxx@xxx:$ composer remove webflo/drupal-core-require-dev
webflo/drupal-core-require-dev is not required in your composer.json and has not been removed
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Dependency "drupal/core" is also a root requirement, but is not explicitly whitelisted. Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)

It still prevents update of drupal/core. It is not listed in composer show -s but

xxx@xxx:$ composer show webflo/*
webflo/drupal-core-require-dev 8.6.2 require-dev dependencies from drupal/core
webflo/drupal-finder        1.1.0 Helper class to locate a Drupal installation from a given path.

Are there other ways to remove it? What hinders removing it?

mmjvb’s picture

You might try `composer update nothing` or `composer update --lock` or remove composer.lock and vendor and use `composer install`.  Verify with `grep drupal-core-require-dev composer.json` and composer.lock.

You also might use `composer selfupdate` and `composer clear`

If nothing helps, reboot the computer!

divanke’s picture

I tried now updating not through ssh like before but from the cpanel shell of the host - there I got an error:

Fatal error: Out of memory (allocated 250609664) (tried to allocate 2142227 bytes) in pha:///opt/cpanel/composer/bin/compser/src/Composer/Util/RemoteFilesystem.php on line 451

So I asked the host to allocate more memory - and after increasing both RAM and php memory limit the update per ssh works as expected :)

Thanks a lot for your support!

mmjvb’s picture

My last comment was sort of saying it must be something infrastructure related (reboot).

In addition you might try `composer outdated -D -m|awk '($3=="!") {print $1,$4}'|xargs -p -n 2 composer prohibits` to find out what else can be updated. You may repeat the outdated command without the -D -m, but I expect more to be blocked by version constraints

auxiliaryjoel’s picture

I ran

composer update drupal/core webflo/drupal-core-require-dev --with-dependencies

which then allowed me to do the core update via composer also:

composer update drupal/core --with-dependencies