When try to install open social through composer its giving below error

Starting Drupal installation. This takes a while. Consider using the --notify global option.                                                                                                                                      [ok]
Drupal\Core\Extension\MissingDependencyException: Unable to install modules gvbo due to missing modules gvbo. in /opt/init/open_social/public_html/hello/html/core/lib/Drupal/Core/Extension/ModuleInstaller.php:90               [error]
Stack trace:
#0 /opt/init/open_social/public_html/hello/html/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#1 /opt/init/open_social/public_html/hello/html/profiles/contrib/social/social.profile(401): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array)
#2 /opt/init/open_social/public_html/hello/html/core/includes/batch.inc(294): _social_install_module_batch(Array, 'gvbo', Array)
#3 /opt/init/open_social/public_html/hello/html/core/includes/form.inc(880): _batch_process()
#4 /opt/init/open_social/public_html/hello/html/core/includes/install.core.inc(666): batch_process(Object(Drupal\Core\Url), Object(Drupal\Core\Url))
#5 /opt/init/open_social/public_html/hello/html/core/includes/install.core.inc(584): install_run_task(Array, Array)
#6 /opt/init/open_social/public_html/hello/html/core/includes/install.core.inc(125): install_run_tasks(Array, NULL)
#7 phar:///usr/local/bin/drush/includes/drush.inc(726): install_drupal(Object(Composer\Autoload\ClassLoader), Array)
#8 phar:///usr/local/bin/drush/includes/drush.inc(711): drush_call_user_func_array('install_drupal', Array)
#9 phar:///usr/local/bin/drush/commands/core/drupal/site_install.inc(80): drush_op('install_drupal', Object(Composer\Autoload\ClassLoader), Array)
#10 phar:///usr/local/bin/drush/commands/core/site_install.drush.inc(247): drush_core_site_install_version('social', Array)
#11 phar:///usr/local/bin/drush/includes/command.inc(366): drush_core_site_install('social')
#12 phar:///usr/local/bin/drush/includes/command.inc(217): _drush_invoke_hooks(Array, Array)
#13 phar:///usr/local/bin/drush/includes/command.inc(185): drush_command('social')
#14 phar:///usr/local/bin/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#15 phar:///usr/local/bin/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#16 phar:///usr/local/bin/drush/includes/startup.inc(325): drush_main()
#17 phar:///usr/local/bin/drush/drush(114): drush_startup(Array)
#18 /usr/local/bin/drush(10): require('phar:///usr/loc...')
#19 {main}

Previously it has failed in applying some patches

Applying patches for drupal/core
    https://www.drupal.org/files/issues/color-optional-html-preview-2844190-2.patch (Color module html preview optional)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/color-optional-html-preview-2844190-2.patch
    https://www.drupal.org/files/issues/2018-10-26/2528214-47.patch (Restrict images to this site blocks image style derivatives)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-10-26/2528214-47.patch
    https://www.drupal.org/files/issues/2018-10-01/2599228-SQL_error_on_content_creation-78_0.patch (Fix SQL error when importing translations)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-10-01/2599228-SQL_error_on_content_creation-78_0.patch
    https://www.drupal.org/files/issues/get-commented-entity-2580551.52.patch (Optimize getCommentedEntity())
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/get-commented-entity-2580551.52.patch
    https://www.drupal.org/files/issues/drupal-994360-74-states-checkboxes-checked.patch (#states cannot check/uncheck 'radios' and 'checkboxes' elements)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/drupal-994360-74-states-checkboxes-checked.patch
    https://www.drupal.org/files/issues/2018-10-17/drupal-3007424-2-Multiple-usages-of-FieldPluginBase-getEntity.patch (Multiple usages of FieldPluginBase::getEntity do not check for NULL, leading to WSOD)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-10-17/drupal-3007424-2-Multiple-usages-of-FieldPluginBase-getEntity.patch

  - Installing drupal/url_embed (1.0.0-alpha1): Loading from cache
  - Applying patches for drupal/url_embed
    https://www.drupal.org/files/issues/url_embed_WSOD_convert_url_to_embed-2871744-5.patch (WSOD if wrong url or network unavailable)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/url_embed_WSOD_convert_url_to_embed-2871744-5.patch
    https://www.drupal.org/files/issues/2018-03-16/url_embed-caching-layer-2867668-17.patch (Improve performance for embeds)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-03-16/url_embed-caching-layer-2867668-17.patch
    https://www.drupal.org/files/issues/2018-03-16/url_embed_translate_dialog_title-2953591-2.patch (Translate dialog title)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-03-16/url_embed_translate_dialog_title-2953591-2.patch

  - Installing drupal/swiftmailer (1.0.0-beta2): Loading from cache
  - Applying patches for drupal/swiftmailer
    https://www.drupal.org/files/issues/2018-03-26/2948607-fix-filter-format-1.patch (Fix missing filter_format after update to beta2)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-03-26/2948607-fix-filter-format-1.patch

  - Installing drupal/private_message (1.2.0): Loading from cache
  - Applying patches for drupal/private_message
    https://www.drupal.org/files/issues/2018-06-08/2978324-getthreads-sort-order-2.patch (Private message unread messages fix)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-06-08/2978324-getthreads-sort-order-2.patch
    https://www.drupal.org/files/issues/2019-02-05/private_message-message_count-2977310-8_0.patch (Own send messages are shown as new messages)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2019-02-05/private_message-message_count-2977310-8_0.patch

  - Installing drupal/message (1.0.0-rc2): Loading from cache
  - Applying patches for drupal/message
    https://www.drupal.org/files/issues/2018-09-16/undefined-index-value-3000026-2.patch (Notice: Undefined index: value in MessageTemplate->getText())
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-09-16/undefined-index-value-3000026-2.patch

  - Installing drupal/like_and_dislike (1.0.0-alpha2): Loading from cache
  - Applying patches for drupal/like_and_dislike
    https://www.drupal.org/files/issues/2848080-2-preview-fails-on-node.patch (Fix preview on node)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2848080-2-preview-fails-on-node.patch

  - Installing drupal/crop (1.5.0): Loading from cache
  - Applying patches for drupal/crop
    https://www.drupal.org/files/issues/2018-12-16/2830768-crop-automated_crop_integration-45.patch (Automated crop integration)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-12-16/2830768-crop-automated_crop_integration-45.patch

  - Installing drupal/image_widget_crop (2.2.0): Loading from cache
  - Applying patches for drupal/image_widget_crop
    https://www.drupal.org/files/issues/2019-02-13/3032584-verticaltabs-theme-override-removal-2.patch (Remove theme function override for verticalTabs)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2019-02-13/3032584-verticaltabs-theme-override-removal-2.patch

  - Installing drupal/group (1.0.0-rc2): Loading from cache
  - Applying patches for drupal/group
    https://www.drupal.org/files/issues/add-computed-field-without-FieldItemListComputedInterface-2718195-34.patch (Add computed field for Group reference)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/add-computed-field-without-FieldItemListComputedInterface-2718195-34.patch
    https://www.drupal.org/files/issues/group-2943564-2.patch (Add permission to view group overview)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/group-2943564-2.patch
    https://www.drupal.org/files/issues/2018-12-18/vbo-and-group-permission-3020883-5.patch (Use VBO together with group permission)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-12-18/vbo-and-group-permission-3020883-5.patch
    https://www.drupal.org/files/issues/2018-12-19/group-2774827-41-gnode-tokens.patch (Ability to use group tokens in node context)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-12-19/group-2774827-41-gnode-tokens.patch

  - Installing drupal/flag (4.0.0-alpha3): Loading from cache
  - Applying patches for drupal/flag
    https://www.drupal.org/files/issues/2723703_31.patch (Add relationship to flagged entities when Flagging is base table)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2723703_31.patch

  - Installing drupal/bootstrap (3.17.0): Loading from cache
  - Applying patches for drupal/bootstrap
    https://www.drupal.org/files/issues/2018-12-19/dropdown-without-default-button-3021413-2.patch (Dropdown toggle variable ignored when using links__dropbutton)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2018-12-19/dropdown-without-default-button-3021413-2.patch
    https://www.drupal.org/files/issues/2019-01-24/3027569-8.x-3.x-8.patch (JSDeliver issues unsupported operand types)
   Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2019-01-24/3027569-8.x-3.x-8.patch

Comments

sanoopuio created an issue. See original summary.

sanoopuio’s picture

Issue summary: View changes
sanoopuio’s picture

Even the manual installation not working , any one tried installing it recently?
Only local images are allowed.

ronald1993’s picture

You need to install those modules through composer for it to work.

Try this command and then try again on the bottom of the message:

composer require php-http/curl-client:^1.6 guzzlehttp/psr7 php-http/message:^1.4 happyr/linkedin-api-client:^1.0 facebook/graph-sdk google/apiclient abraham/twitteroauth commerceguys/addressing lsolesen/pel

sanoopuio’s picture

#4 worked for the manual installtion. Thanks very much.

I would like to keep this ticket open till the composer installtion is solved

ronald1993’s picture

For me I also had to copy the libraries folder from the Composer installation into the manual installation in order to resolve some console errors found after the installation. If you get them too, try that.

ronaldtebrake’s picture

Status: Active » Closed (works as designed)

Hi guys,

Great you're helping out in here :)

As for the composer installation, we do this on a daily base so I'm fairly sure it's still working.
After checking your logs it looks like your composer installation didn't work because of a missing patch.

Drupal\Core\Extension\MissingDependencyException: Unable to install modules gvbo due to missing modules gvbo. in /opt/init/open_social/public_html/hello/html/core/lib/Drupal/Core/Extension/ModuleInstaller.php:90               [error]

This is a module that gets installed by a patch. Without this module Open Social won't work. So make sure you check your composer installation process to see if everything gets a green light.

As per documentation here: https://www.drupal.org/docs/8/distributions/open-social/installing-and-u...

Make sure your composer.json file is up to date with the changes required for composer 1.5, see updating Open Social using composer 1.5.

Your composer.json file should include:

"enable-patching": true

In some rare cases patches supplied in the Open Social composer.json file are not applied to your project when updating.

If you run into issues please make sure the supplied patches are being applied correctly.

You can verify this by checking the patches in the composer.json file from Open Social and running composer update.

If not all patches are applied you can still do this manually using the git apply command.

sanoopuio’s picture

Thanks @ronaldtebrake. I agree with you its wokring as required. It was my bad (https://stackoverflow.com/questions/24821431/git-apply-patch-fails-silen...)

ronaldtebrake’s picture

No problemo, glad to hear it works and thanks for sharing the article!

orkutmuratyilmaz’s picture

before installation, please consider typing the command below:

yum install patch

bas123’s picture

Hi, I have been getting similar issues and wonder if ronaldtebrake or someone else could pick through this session and offer some assistance!

C:\Users\bas\Sites>composer create-project goalgorilla/social_template:dev-master social --no-interaction
Installing goalgorilla/social_template (dev-master 08569149088d24fb7f7d4e5ae9f488b39e2afe1e)
  - Installing goalgorilla/social_template (dev-master master): Cloning master
    Failed to download goalgorilla/social_template from source: Failed to clone https://github.com/goalgorilla/social_template.git, git was not found, check that it is installed and in your PATH env.

'git' is not recognized as an internal or external command,
operable program or batch file.

    Now trying to download from dist
  - Installing goalgorilla/social_template (dev-master master): Loading from cache
Created project in social
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 159 installs, 0 updates, 0 removals
  - Installing zaporylie/composer-drupal-optimizations (1.1.1): Downloading (100%)
  - Installing composer/installers (v1.7.0): Downloading (100%)
  - Installing cweagans/composer-patches (1.6.7): Downloading (100%)
No patches supplied.
Gathering patches for dependencies. This might take a minute.
  - Installing composer/semver (1.5.0): Downloading (100%)
  - Installing oomphinc/composer-installers-extender (v1.1.2): Downloading (100%)
  - Installing drupal-composer/drupal-scaffold (2.6.1): Downloading (100%)
  - Installing symfony/polyfill-ctype (v1.12.0): Downloading (100%)
  - Installing paragonie/random_compat (v9.99.99): Downloading (100%)
  - Installing symfony/polyfill-php70 (v1.12.0): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.12.0): Downloading (100%)
  - Installing symfony/http-foundation (v3.4.32): Downloading (100%)
  - Installing symfony/event-dispatcher (v3.4.32): Downloading (100%)
  - Installing psr/log (1.1.0): Downloading (100%)
  - Installing symfony/debug (v4.3.5): Downloading (100%)
  - Installing symfony/http-kernel (v3.4.32): Downloading (100%)
  - Installing asm89/stack-cors (1.2.0): Downloading (100%)
  - Installing bower-asset/eve-raphael (v0.5.0): Downloading (100%)
  - Installing bower-asset/jquery (3.4.1): Downloading (100%)
  - Installing bower-asset/mocha (1.17.1): Downloading (100%)
  - Installing doctrine/collections (v1.4.0): Downloading (100%)
  - Installing commerceguys/addressing (v1.0.5): Downloading (100%)
  - Installing doctrine/lexer (1.0.2): Downloading (100%)
  - Installing doctrine/inflector (v1.1.0): Downloading (100%)
  - Installing doctrine/cache (v1.6.1): Downloading (100%)
  - Installing doctrine/annotations (v1.8.0): Downloading (100%)
  - Installing doctrine/common (v2.7.2): Downloading (100%)
  - Installing phenx/php-font-lib (0.5): Downloading (100%)
  - Installing lsolesen/pel (0.9.6): Downloading (100%)
  - Installing zendframework/zend-stdlib (3.2.1): Downloading (100%)
  - Installing zendframework/zend-escaper (2.6.1): Downloading (100%)
  - Installing zendframework/zend-feed (2.12.0): Downloading (100%)
  - Installing psr/http-message (1.0.1): Downloading (100%)
  - Installing zendframework/zend-diactoros (1.8.7): Downloading (100%)
  - Installing brumann/polyfill-unserialize (v1.0.4): Downloading (100%)
  - Installing typo3/phar-stream-wrapper (v2.1.2): Downloading (100%)
  - Installing twig/twig (v1.42.3): Downloading (100%)
  - Installing symfony/yaml (v3.4.32): Downloading (100%)
  - Installing symfony/translation (v3.4.32): Downloading (100%)
  - Installing symfony/validator (v3.4.32): Downloading (100%)
  - Installing symfony/serializer (v3.4.32): Downloading (100%)
  - Installing symfony/routing (v3.4.32): Downloading (100%)
  - Installing symfony/psr-http-message-bridge (v1.2.0): Downloading (100%)
  - Installing symfony/process (v3.4.32): Downloading (100%)
  - Installing symfony/polyfill-iconv (v1.12.0): Downloading (100%)
  - Installing psr/container (1.0.0): Downloading (100%)
  - Installing symfony/dependency-injection (v3.4.32): Downloading (100%)
  - Installing symfony/console (v3.4.32): Downloading (100%)
  - Installing symfony/class-loader (v3.4.32): Downloading (100%)
  - Installing symfony-cmf/routing (1.4.1): Downloading (100%)
  - Installing stack/builder (v1.0.5): Downloading (100%)
  - Installing pear/pear_exception (v1.0.0): Downloading (100%)
  - Installing pear/console_getopt (v1.4.2): Downloading (100%)
  - Installing pear/pear-core-minimal (v1.10.9): Downloading (100%)
  - Installing pear/archive_tar (1.4.7): Downloading (100%)
  - Installing masterminds/html5 (2.7.0): Downloading (100%)
  - Installing ralouphie/getallheaders (3.0.3): Downloading (100%)
  - Installing guzzlehttp/psr7 (1.6.1): Downloading (100%)
  - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
  - Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)
  - Installing egulias/email-validator (2.1.11): Downloading (100%)
  - Installing easyrdf/easyrdf (0.9.1): Downloading (100%)
  - Installing drupal/core (8.7.8): Downloading (100%)
  - Applying patches for drupal/core
    https://www.drupal.org/files/issues/color-optional-html-preview-2844190-2.patch (Color module html preview optional)
   Could not apply patch! Skipping. The error was: The "https://www.drupal.org/files/issues/color-optional-html-preview-2844190-2.patch" file could not be downloaded (HTTP/1.1 500 Domain Not Found)
    https://www.drupal.org/files/issues/2018-10-26/2528214-47.patch (Restrict images to this site blocks image style derivatives)
   Could not apply patch! Skipping. The error was: The "https://www.drupal.org/files/issues/2018-10-26/2528214-47.patch" file could not be downloaded (HTTP/1.1 500 Domain Not Found)
    https://www.drupal.org/files/issues/2018-12-28/2580551-72.patch (Optimize getCommentedEntity())
   Could not apply patch! Skipping. The error was: The "https://www.drupal.org/files/issues/2018-12-28/2580551-72.patch" file could not be downloaded (HTTP/1.1 500 Domain Not Found)
    https://www.drupal.org/files/issues/drupal-994360-74-states-checkboxes-checked.patch (#states cannot check/uncheck 'radios' and 'checkboxes' elements)
   Could not apply patch! Skipping. The error was: The "https://www.drupal.org/files/issues/drupal-994360-74-states-checkboxes-checked.patch" file could not be downloaded (HTTP/1.1 500 Domain Not Found)
    https://www.drupal.org/files/issues/2019-05-06/drupal-Multiple-usages-of-FieldPluginBase-getEntity-3007424-15.patch (Multiple usages of FieldPluginBase::getEntity do not check for NULL, leading to WSOD)
   Could not apply patch! Skipping. The error was: The "https://www.drupal.org/files/issues/2019-05-06/drupal-Multiple-usages-of-FieldPluginBase-getEntity-3007424-15.patch" file could not be downloaded (HTTP/1.1 500 Domain Not Found)
    https://www.drupal.org/files/issues/2018-05-24/2974925-default-rid-config-causes-illegal-error.patch (Default role id causes issues with validation on VBO)
   Could not apply patch! Skipping. The error was: The "https://www.drupal.org/files/issues/2018-05-24/2974925-default-rid-config-causes-illegal-error.patch" file could not be downloaded (HTTP/1.1 500 Domain Not Found)

  - Installing drupal/file_mdm (1.1.0): Downloading (failed)
Downloading (failed)
Downloading (failed)    Failed to download drupal/file_mdm from dist: The "https://ftp.drupal.org/files/projects/file_mdm-8.x-1.1.zip" file could not be downloaded (HTTP/1.1 500 Domain Not Found)
    Now trying to download from source
  - Installing drupal/file_mdm (1.1.0): Cloning 8.x-1.1


  [RuntimeException]
  Failed to clone https://git.drupalcode.org/project/file_mdm.git, git was not found, check that it is installed and
  in your PATH env.

  'git' is not recognized as an internal or external command,
  operable program or batch file.


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]

Following this I attempted to install via browser "install.php"
Resulting in :
system requirements page for more information.'; exit; } // Initialize the autoloader. $class_loader = require_once $root_path . '/autoload.php'; // If OPCache is in use, ensure opcache.save_comments is enabled. if (OpCodeCache::isEnabled() && !ini_get('opcache.save_comments')) { print 'Systems with OPcache installed must have opcache.save_comments enabled.'; exit(); } // Start the installer. require_once $root_path . '/core/includes/install.core.inc'; install_drupal($class_loader);

I should add that I did confirm that "enable-patching": true was in the composer.json

theWasp’s picture

Hi

I have experienced more times, that composer wouldnt install drupal 8 right. Latest I tried to install the varbase distribution. Everything went right, except from the core files.

How can I make that up? Can I via composer make sure, that just the core files are downloaded and gets in their right place?

Regards, Peter

  - Installing drupal/core (8.8.6): Downloading (100%)         
    Failed to download drupal/core from dist: Failed to execute (9) unzip -qq -o 'docroot/core/0b8b3c9e4620c2f0ac9b957e274590c3' -d '/Applications/MAMP/htdocs/juliatabakova/PROJECT_DIR_NAME/vendor/composer/56ae6e99'

[docroot/core/0b8b3c9e4620c2f0ac9b957e274590c3]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of docroot/core/0b8b3c9e4620c2f0ac9b957e274590c3 or
        docroot/core/0b8b3c9e4620c2f0ac9b957e274590c3.zip, and cannot find docroot/core/0b8b3c9e4620c2f0ac9b957e274590c3.ZIP, period.

    Now trying to download from source
  - Installing drupal/core (8.8.6): Cloning a5daf2aa45

                                                                                           
  [Symfony\Component\Process\Exception\ProcessTimedOutException]                           
  The process "git clone --no-checkout 'https://github.com/drupal/core.git' 'docroot/core  
  ' && cd 'docroot/core' && git remote add composer 'https://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 time  
  out of 300 seconds.                                                                      
                                                                                           

Gwylan Scheeren’s picture

For me the issue was solved by making sure patch was installed:
sudo apt-get update && sudo apt-get install patch

after that composer install and subsequent patching finished with no errors

bas123’s picture

@Gwylan Scheeren,

Which patch are you referring to and what versions of Drupal and Open Social, please?