By Fabrizio Fab01 Sabato


2017-09-01 12:06:12 8 Comments

I'm facing a very strange issue with Drush wget and OpenSSL on my mac book (MacOSX Sierra).

When I launch drush make site.make command (which should theoretically download the all modules) it fails with the following error:

Failed to get available update data from https://updates.drupal.org/release-history/workbench_og/7.x
simplexml_load_file(): I/O warning : failed to load external entity "" Project.php:74

I tried

wget https://updates.drupal.org/release-history/rate/7.x

and I got the following message:

https://updates.drupal.org/release-history/rate/7.xResolving
updates.drupal.org... 151.101.113.175
Connecting to updates.drupal.org|151.101.113.175|:443... connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.

Same message with flags:

wget https://updates.drupal.org/release-history/rate/7.x --no-check-certificate

Here I found exactly the problem that I have but, even if reinstalling openssl and upgrading the version (current version is OpenSSL 1.0.2l 25 May 2017) the problem persists.

Did someone has the same kind of issue? And, in case, how did you handle it?

Thank you in advance!

1 comments

@Fabrizio Fab01 Sabato 2017-09-05 11:46:06

This workaround fixed my issue:

In drush.inc

if ($use_wget) {
  drush_shell_exec("wget --no-check-certificate -q --timeout=30 -O %s %s" $destination_tmp, $url);
} else {
  drush_shell_exec("curl --insecure --tlsv1 --fail -s -L --connect-timeout 30 -o %s %s", $destination_tmp, $url);
}

so weird anyway...

Related Questions

Sponsored Content

1 Answered Questions

[SOLVED] What drush version I can use that doesn't require composer?

  • 2017-08-11 21:56:20
  • Vladimir Ivanov
  • 32 View
  • 1 Score
  • 1 Answer
  • Tags:   drush

2 Answered Questions

[SOLVED] Could not open input file: drush

  • 2017-07-12 23:23:52
  • Rob Brandt
  • 203 View
  • 0 Score
  • 2 Answer
  • Tags:   drush installation

2 Answered Questions

[SOLVED] What should I pass as --core parameter?

  • 2017-06-01 18:30:05
  • rgchi
  • 21 View
  • 0 Score
  • 2 Answer
  • Tags:   drush

1 Answered Questions

[SOLVED] Problem with SSL certificate

1 Answered Questions

0 Answered Questions

Drush 8.0.3 Failed to get available update data and simplexml_load_file warning

  • 2016-02-18 22:11:16
  • Kerolar
  • 472 View
  • 1 Score
  • 0 Answer
  • Tags:   drush

0 Answered Questions

Clean URL test fails, but its not a mod_rewrite problem

  • 2015-10-13 19:51:09
  • AdamG
  • 176 View
  • 0 Score
  • 0 Answer
  • Tags:   clean-urls ssl

0 Answered Questions

Problems with Terminus SSL on a Windows machine using Drush

  • 2014-11-15 07:22:41
  • Sage
  • 170 View
  • 0 Score
  • 0 Answer
  • Tags:   drush

0 Answered Questions

Command [...] needs the following module(s) enabled to run:

  • 2014-11-01 10:01:44
  • jice
  • 311 View
  • 1 Score
  • 0 Answer
  • Tags:   drush

1 Answered Questions

[SOLVED] Possible permissions error with drush make

  • 2013-04-12 15:41:38
  • Andrew Welch
  • 878 View
  • 1 Score
  • 1 Answer
  • Tags:   drush

Sponsored Content