Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer hangs on Downloading drupal/core (9.2.4) #605

Closed
arderyp opened this issue Aug 25, 2021 · 6 comments
Closed

composer hangs on Downloading drupal/core (9.2.4) #605

arderyp opened this issue Aug 25, 2021 · 6 comments

Comments

@arderyp
Copy link

arderyp commented Aug 25, 2021

  - Downloading pantheon-systems/drupal-integrations (9.0.2)
 124/125 [===========================>]  99%  - Downloading drupal/core (9.2.4)
  - Downloading drupal/core (9.2.4)
  - Downloading drupal/core (9.2.4)
    Failed to download drupal/core from dist: curl error 28 while downloading https://codeload.github.com/drupal/core/legacy.zip/c723626030c728ec2f9f6526e6cd5f029c9e628c: Operation timed out after 300000 milliseconds with 15502944 out of 26172301 bytes received
    Now trying to download from source
  - Syncing drupal/core (9.2.4) into cache
 125/125 [============================] 100%The following exception is caused by a process timeout
Check https://getcomposer.org/doc/06-config.md#process-timeout for details

                                                                                                                                                
  [Symfony\Component\Process\Exception\ProcessTimedOutException]                                                                                
  The process "git clone --mirror -- 'https://github.com/drupal/core.git' '/home/MYSELF/.cache/composer/vcs/https---github.com-drupal-core.gi  
  t/'" exceeded the timeout of 300 seconds.                                                                                                     
                                                                                                                                                

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-scripts] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [<packages>]...

Its been running for about 20 minutes now...

@arderyp
Copy link
Author

arderyp commented Aug 25, 2021

if I visit the url in a browser, the zip does download completely in about 5 minutes: https://codeload.github.com/drupal/core/legacy.zip/c723626030c728ec2f9f6526e6cd5f029c9e628c

@arderyp
Copy link
Author

arderyp commented Aug 25, 2021

$ composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 2 updates, 0 removals
  - Upgrading drupal/admin_toolbar (3.0.1 => 3.0.2)
  - Upgrading drush/drush (10.5.0 => 10.6.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 127 installs, 0 updates, 0 removals
  - Downloading drupal/core (9.2.4)
  - Downloading drupal/admin_toolbar (3.0.2)
  - Downloading drush/drush (10.6.0)
 2/3 [==================>---------]  66%  - Downloading drupal/core (9.2.4)
  - Downloading drupal/core (9.2.4)
  - Downloading drupal/core (9.2.4)
    Failed to download drupal/core from dist: curl error 28 while downloading https://codeload.github.com/drupal/core/legacy.zip/c723626030c728ec2f9f6526e6cd5f029c9e628c: Operation timed out after 300000 milliseconds with 13245217 out of 26172301 bytes received
    Now trying to download from source
  - Syncing drupal/core (9.2.4) into cache
  - Installing zaporylie/composer-drupal-optimizations (1.2.0): Extracting archive
  - Installing drupal/core-composer-scaffold (9.2.4): Extracting archive
  - Installing cweagans/composer-patches (1.7.1): Extracting archive
  - Installing composer/installers (v1.11.0): Extracting archive
  - Installing symfony/polyfill-php80 (v1.23.0): Extracting archive
  - Installing symfony/polyfill-php73 (v1.23.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.23.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.23.0): Extracting archive
  - Installing symfony/polyfill-php72 (v1.23.0): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.23.0): Extracting archive
  - Installing symfony/polyfill-intl-idn (v1.23.0): Extracting archive
  - Installing symfony/deprecation-contracts (v2.4.0): Extracting archive
  - Installing symfony/mime (v5.3.0): Extracting archive
  - Installing symfony/http-foundation (v4.4.25): Extracting archive
  - Installing symfony/http-client-contracts (v2.4.0): Extracting archive
  - Installing symfony/event-dispatcher-contracts (v1.1.9): Extracting archive
  - Installing symfony/event-dispatcher (v4.4.25): Extracting archive
  - Installing symfony/var-dumper (v5.3.0): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing symfony/debug (v4.4.25): Extracting archive
  - Installing symfony/error-handler (v4.4.25): Extracting archive
  - Installing symfony/http-kernel (v4.4.25): Extracting archive
  - Installing asm89/stack-cors (1.3.0): Extracting archive
  - Installing ckeditor-plugin/autoembed (4.11.0): Extracting archive
  - Installing ckeditor-plugin/autolink (4.11.0): Extracting archive
  - Installing ckeditor-plugin/embed (4.11.0): Extracting archive
  - Installing ckeditor-plugin/embedbase (4.11.0): Extracting archive
  - Installing ckeditor-plugin/embedsemantic (4.11.0): Extracting archive
  - Installing ckeditor-plugin/notification (4.11.0): Extracting archive
  - Installing ckeditor-plugin/notificationaggregator (4.11.0): Extracting archive
  - Installing ckeditor-plugin/textmatch (4.11.0): Extracting archive
  - Installing symfony/finder (v5.3.4): Extracting archive
  - Installing psr/container (1.1.1): Extracting archive
  - Installing symfony/service-contracts (v2.4.0): Extracting archive
  - Installing symfony/console (v4.4.25): Extracting archive
  - Installing dflydev/dot-access-data (v1.1.0): Extracting archive
  - Installing consolidation/output-formatters (4.1.2): Extracting archive
  - Installing consolidation/annotated-command (4.2.4): Extracting archive
  - Installing consolidation/log (2.0.2): Extracting archive
  - Installing symfony/filesystem (v4.4.27): Extracting archive
  - Installing consolidation/self-update (1.2.0): Extracting archive
  - Installing psr/cache (1.0.1): Extracting archive
  - Installing doctrine/lexer (1.2.1): Extracting archive
  - Installing doctrine/annotations (1.13.1): Extracting archive
  - Installing doctrine/reflection (1.2.2): Extracting archive
  - Installing typo3/phar-stream-wrapper (v3.1.6): Extracting archive
  - Installing twig/twig (v2.14.6): Extracting archive
  - Installing symfony/yaml (v4.4.25): Extracting archive
  - Installing symfony/translation-contracts (v2.4.0): Extracting archive
  - Installing symfony/validator (v4.4.25): Extracting archive
  - Installing symfony/translation (v4.4.25): Extracting archive
  - Installing symfony/serializer (v4.4.25): Extracting archive
  - Installing symfony/routing (v4.4.25): Extracting archive
  - Installing psr/http-message (1.0.1): Extracting archive
  - Installing symfony/psr-http-message-bridge (v2.1.0): Extracting archive
  - Installing symfony/process (v4.4.25): Extracting archive
  - Installing symfony/polyfill-iconv (v1.23.0): Extracting archive
  - Installing symfony/dependency-injection (v4.4.25): Extracting archive
  - Installing symfony-cmf/routing (2.3.3): Extracting archive
  - Installing stack/builder (v1.0.6): Extracting archive
  - Installing pear/pear_exception (v1.0.2): Extracting archive
  - Installing pear/console_getopt (v1.4.3): Extracting archive
  - Installing pear/pear-core-minimal (v1.10.10): Extracting archive
  - Installing pear/archive_tar (1.4.14): Extracting archive
  - Installing masterminds/html5 (2.7.4): Extracting archive
  - Installing laminas/laminas-zendframework-bridge (1.2.0): Extracting archive
  - Installing laminas/laminas-stdlib (3.3.1): Extracting archive
  - Installing laminas/laminas-escaper (2.7.0): Extracting archive
  - Installing laminas/laminas-feed (2.14.1): Extracting archive
  - Installing psr/http-factory (1.0.1): Extracting archive
  - Installing laminas/laminas-diactoros (2.6.0): Extracting archive
  - Installing ralouphie/getallheaders (3.0.3): Extracting archive
  - Installing guzzlehttp/psr7 (1.8.2): Extracting archive
  - Installing guzzlehttp/promises (1.4.1): Extracting archive
  - Installing guzzlehttp/guzzle (6.5.5): Extracting archive
  - Installing egulias/email-validator (2.1.25): Extracting archive
  - Installing composer/semver (3.2.5): Extracting archive
  - Installing drupal/core (9.2.4): Cloning c723626030
    Install of drupal/core failed
  - Installing drupal/acl (1.0.0-beta1): Extracting archive
  - Installing drupal/admin_toolbar (3.0.2): Extracting archive
  - Installing drupal/auto_entitylabel (3.0.0-beta4): Extracting archive
  - Installing drupal/bootstrap (3.23.0): Extracting archive
  - Installing drupal/externalauth (1.4.0): Extracting archive
  - Installing drupal/cas (1.7.0): Extracting archive
  - Installing drupal/colorbox (1.7.0): Extracting archive
  - Installing drupal/content_access (1.0.0-alpha3): Extracting archive
  - Installing drupal/editor_advanced_link (2.0.0): Extracting archive
  - Installing drupal/exclude_node_title (1.2.0): Extracting archive
  - Installing drupal/field_permissions (1.1.0): Extracting archive
  - Installing drupal/google_tag (1.4.0): Extracting archive
  - Installing drupal/crop (2.1.0): Extracting archive
  - Installing drupal/image_widget_crop (2.3.0): Extracting archive
  - Installing drupal/imce (2.4.0): Extracting archive
  - Installing drupal/jquery_ui (1.4.0): Extracting archive
  - Installing drupal/jquery_ui_draggable (1.2.0): Extracting archive
  - Installing drupal/menu_block (1.7.0): Extracting archive
  - Installing drupal/override_node_options (2.6.0): Extracting archive
  - Installing drupal/ctools (3.7.0): Extracting archive
  - Installing drupal/page_manager (4.0.0-beta6): Extracting archive
  - Installing drupal/jquery_ui_droppable (1.2.0): Extracting archive
  - Installing drupal/panels (4.6.0): Extracting archive
  - Installing drupal/redirect (1.6.0): Extracting archive
  - Installing drupal/token (1.9.0): Extracting archive
  - Installing drupal/view_unpublished (1.0.0): Extracting archive
  - Installing drupal/views_field_view (1.0.0-beta3): Extracting archive
  - Installing webmozart/assert (1.10.0): Extracting archive
  - Installing webmozart/path-util (2.3.0): Extracting archive
  - Installing webflo/drupal-finder (1.2.2): Extracting archive
  - Installing nikic/php-parser (v4.12.0): Extracting archive
  - Installing psy/psysh (v0.10.8): Extracting archive
  - Installing container-interop/container-interop (1.2.0): Extracting archive
  - Installing league/container (2.5.0): Extracting archive
  - Installing grasmash/yaml-expander (1.4.0): Extracting archive
  - Installing enlightn/security-checker (v1.9.0): Extracting archive
  - Installing grasmash/expander (1.0.0): Extracting archive
  - Installing consolidation/config (1.2.1): Extracting archive
  - Installing consolidation/site-alias (3.1.0): Extracting archive
  - Installing consolidation/site-process (4.1.0): Extracting archive
  - Installing consolidation/robo (2.2.2): Extracting archive
  - Installing consolidation/filter-via-dot-access-data (1.0.0): Extracting archive
  - Installing chi-teck/drupal-code-generator (1.33.1): Extracting archive
  - Installing drush/drush (10.6.0): Extracting archive
  - Installing jackmoore/colorbox (1.6.4): Extracting archive
  - Installing jquery/cycle (3.0.3): Extracting archive
  - Installing pantheon-systems/drupal-integrations (9.0.2): Extracting archive
  - Installing drupal/core-recommended (9.2.4)
  - Installing pantheon-upstreams/upstream-configuration (dev-master): Symlinking from upstream-configuration
 120/120 [============================] 100%The following exception is caused by a process timeout
Check https://getcomposer.org/doc/06-config.md#process-timeout for details

                                                                                                                                                
  [Symfony\Component\Process\Exception\ProcessTimedOutException]                                                                                
  The process "git clone --no-checkout -- 'https://github.com/drupal/core.git' 'web/core' && cd 'web/core' && git remote add composer -- 'http  
  s://github.com/drupal/core.git' && git fetch composer && git remote set-url origin -- 'https://github.com/drupal/core.git' && git remote set  
  -url composer -- 'https://github.com/drupal/core.git'" exceeded the timeout of 300 seconds.                                                   
                                                                                                                                                

update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader] [--no-scripts] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...

@leymannx
Copy link
Collaborator

leymannx commented Aug 25, 2021

  • Composer version?
  • OS version?
  • Shell version?
  • PHP version?
  • composer.json?

@arderyp
Copy link
Author

arderyp commented Aug 25, 2021

composer: 2.1.6
OS: Ubuntu 20.04.3 LTS
Linux Kernel: 5.4.0-81-generic
Bash Shell: 5.0.17(1)-release
PHP: 7.4.22
composer.json:


    "name": "pantheon-upstreams/drupal-project",
    "description": "Install Drupal 9 with Composer on Pantheon.",
    "type": "project",
    "license": "MIT",
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
            "type": "path",
            "url": "upstream-configuration"
        },
        {
            "type": "package",
            "package": {
                "name": "jackmoore/colorbox",
                "version": "1.6.4",
                "type": "drupal-library",
                "dist": {
                    "url": "https://github.com/jackmoore/colorbox/archive/1.6.4.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "ckeditor-plugin/autoembed",
                "version": "4.11.0",
                "type": "drupal-library",
                "dist": {
                    "url": "https://download.ckeditor.com/autoembed/releases/autoembed_4.11.0.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "ckeditor-plugin/autolink",
                "version": "4.11.0",
                "type": "drupal-library",
                "dist": {
                    "url": "https://download.ckeditor.com/autolink/releases/autolink_4.11.0.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "ckeditor-plugin/embed",
                "version": "4.11.0",
                "type": "drupal-library",
                "dist": {
                    "url": "https://download.ckeditor.com/embed/releases/embed_4.11.0.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "ckeditor-plugin/embedbase",
                "version": "4.11.0",
                "type": "drupal-library",
                "dist": {
                    "url": "https://download.ckeditor.com/embedbase/releases/embedbase_4.11.0.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "ckeditor-plugin/embedsemantic",
                "version": "4.11.0",
                "type": "drupal-library",
                "dist": {
                    "url": "https://download.ckeditor.com/embedsemantic/releases/embedsemantic_4.11.0.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "ckeditor-plugin/notification",
                "version": "4.11.0",
                "type": "drupal-library",
                "dist": {
                    "url": "https://download.ckeditor.com/notification/releases/notification_4.11.0.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "ckeditor-plugin/notificationaggregator",
                "version": "4.11.0",
                "type": "drupal-library",
                "dist": {
                    "url": "https://download.ckeditor.com/notificationaggregator/releases/notificationaggregator_4.11.0.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "ckeditor-plugin/textmatch",
                "version": "4.11.0",
                "type": "drupal-library",
                "dist": {
                    "url": "https://download.ckeditor.com/textmatch/releases/textmatch_4.11.0.zip",
                    "type": "zip"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "jquery/cycle",
                "version": "3.0.3",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "jquery.cycle"
                },
                "dist": {
                    "url": "https://github.com/malsup/cycle/archive/master.zip",
                    "type": "zip"
                }
            }
        }
    ],
    "require": {
        "ckeditor-plugin/autoembed": "^4.11",
        "ckeditor-plugin/autolink": "^4.11",
        "ckeditor-plugin/embed": "^4.11",
        "ckeditor-plugin/embedbase": "^4.11",
        "ckeditor-plugin/embedsemantic": "^4.11",
        "ckeditor-plugin/notification": "^4.11",
        "ckeditor-plugin/notificationaggregator": "^4.11",
        "ckeditor-plugin/textmatch": "^4.11",
        "drupal/acl": "^1.0-beta1",
        "drupal/admin_toolbar": "^3.0.1",
        "drupal/auto_entitylabel": "^3.0-beta4",
        "drupal/bootstrap": "^3.23",
        "drupal/cas": "^1.7",
        "drupal/colorbox": "^1.7",
        "drupal/content_access": "^1.0-alpha3",
        "drupal/crop": "^2.1",
        "drupal/ctools": "^3.7",
        "drupal/editor_advanced_link": "^2.0.0",
        "drupal/exclude_node_title": "^1.2",
        "drupal/externalauth": "^1.4",
        "drupal/field_permissions": "^1.1",
        "drupal/google_tag": "^1.4",
        "drupal/image_widget_crop": "^2.3",
        "drupal/imce": "^2.4",
        "drupal/jquery_ui": "^1.4",
        "drupal/jquery_ui_draggable": "^1.2",
        "drupal/jquery_ui_droppable": "^1.2",
        "drupal/menu_block": "^1.7",
        "drupal/override_node_options": "^2.6",
        "drupal/page_manager": "^4.0-beta6",
        "drupal/panels": "^4.6",
        "drupal/redirect": "^1.6",
        "drupal/token": "^1.9",
        "drupal/view_unpublished": "^1.0",
        "drupal/views_field_view": "^1.0-beta3",
        "drush/drush": "^10",
        "jackmoore/colorbox": "^1.6",
        "jquery/cycle": "^3.0",
        "pantheon-upstreams/upstream-configuration": "*"
    },
    "conflict": {
            "drupal/drupal": "*"
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "extra": {
        "installer-paths": {
            "web/core": ["type:drupal-core"],
            "web/libraries/ckeditor/plugins/{$name}": ["vendor:ckeditor-plugin"],
            "web/libraries/{$name}": ["type:drupal-library"],
            "web/modules/composer/{$name}": ["type:drupal-module"],
            "web/profiles/composer/{$name}": ["type:drupal-profile"],
            "web/themes/composer/{$name}": ["type:drupal-theme"],
            "drush/Commands/contrib/{$name}": ["type:drupal-drush"],
            "web/private/scripts/quicksilver/{$name}/": ["type:quicksilver-script"]
        },
        "composer-exit-on-patch-failure": true,
        "patchLevel": {
            "drupal/core": "-p2"
        },
        "drupal-scaffold": {
            "allowed-packages": [
                "pantheon-systems/drupal-integrations"
            ],
            "locations": {
                "web-root": "./web"
            },
            "file-mapping": {
                "[project-root]/.editorconfig": false,
                "[project-root]/pantheon.upstream.yml": false,
                "[project-root]/.gitattributes": false
            }
        }
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "platform": {
            "php": "7.4"
        }
    }
}

@leymannx
Copy link
Collaborator

You created the issue in the wrong repo, my friend. The template you are using is https://github.com/pantheon-upstreams/drupal-project. Drupal core isn't even a direct dependency, it comes via pantheon-upstreams/upstream-configuration instead. So if this really is an issue with the template, you should create an issue there. Though, maybe it's not an issue with the template or the meta package. It's maybe more of an issue with Composer or your env.

@arderyp
Copy link
Author

arderyp commented Aug 25, 2021

you are awesome @leymannx, thanks for pointing me in the right direction :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants