drupal-modules / ads

Drupal distribution for Ads
http://drupal.org/project/ads
2 stars 2 forks source link

Build fails with error: Unable to download patch. #21

Closed kenorb closed 10 years ago

kenorb commented 10 years ago

ADS build fails on the following error:

$ phing 
...
* [@self.1 ] ctools-7.x-1.3 downloaded.                                                                                                                                                                                                                             [ok]
* [@self.1 ] Unable to download https://drupal.org/files/ctools-n1925018-12.patch.                                                                                                                                                                                  [error]

The patch link is valid.

When downloading via wget, there is following error:

$ wget https://drupal.org/files/ctools-n1925018-12.patch
--2014-03-09 21:41:17--  https://drupal.org/files/ctools-n1925018-12.patch
Resolving drupal.org... 140.211.10.62, 140.211.10.16
Connecting to drupal.org|140.211.10.62|:443... connected.
ERROR: certificate common name `*.drupal.org' doesn't match requested host name `drupal.org'.
To connect to drupal.org insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.

$ wget -V
GNU Wget 1.11.4 Red Hat modified
kenorb commented 10 years ago

This is possibly related to the following wget bug at: https://bugzilla.redhat.com/show_bug.cgi?id=903756 See also: https://drupal.org/node/2145537 Upgrade to >1.2 should fix the problem.

kenorb commented 10 years ago

The solution could be to upgrade wget to newer version or by adding the following setting into .wgetrc which fixes the problem:

check_certificate = off

Example: https://github.com/kenorb/dotfiles/blob/master/.wgetrc