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...

@sorabh.v6 2018-05-07 12:08:05

You missed a comma before $destination_tmp in the if block.

@Fabrizio Fab01 Sabato 2018-05-14 16:22:20

Thanks for your remark sorabh. I have corrected the typo. Anyway I forgot about this thread but I found the reason of the error which was related to OpenSSL and PHP Version (5.4). The error fixed itself as soon as I removed entirely the PHP previously installed via Liip package (php-osx.liip.ch) and reinstalling it with brew.

Related Questions

Sponsored Content

2 Answered Questions

[SOLVED] Drush stuck in "Killed" loop

  • 2016-07-07 14:36:03
  • Jules
  • 456 View
  • 3 Score
  • 2 Answer
  • Tags:   drush

1 Answered Questions

local drush - installation failed

  • 2017-10-07 23:02:30
  • Wesley Render
  • 93 View
  • 0 Score
  • 1 Answer
  • Tags:   drush

1 Answered Questions

[SOLVED] Drush Core Update Failed in Docker

  • 2017-03-03 15:34:16
  • ejk
  • 154 View
  • 2 Score
  • 1 Answer
  • Tags:   drush

1 Answered Questions

[SOLVED] Problem with SSL certificate

1 Answered Questions

0 Answered Questions

Drush make: external command could not be executed

  • 2016-02-11 21:39:59
  • Steve
  • 460 View
  • 1 Score
  • 0 Answer
  • Tags:   drush

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
  • 505 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
  • 202 View
  • 0 Score
  • 0 Answer
  • Tags:   clean-urls ssl

1 Answered Questions

[SOLVED] Possible permissions error with drush make

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

1 Answered Questions

[SOLVED] Use drush make to load only modules?

  • 2012-10-13 02:11:26
  • Jeff
  • 1324 View
  • 8 Score
  • 1 Answer
  • Tags:   7 drush

Sponsored Content