I'm trying download the Colorbox plugin using Drush, but i get an error message.
Running drush --debug colorbox-plugin I get this:

[...] stuff [...]                                                                   [bootstrap]
Executing: type unzip
  unzip is /usr/bin/unzip
Executing: wget http://colorpowered.com/colorbox/colorbox.zip
  --2011-12-06 16:26:50--  http://colorpowered.com/colorbox/colorbox.zip
  Resolving colorpowered.com... 208.94.116.163, 208.94.117.10, 208.94.117.51
  Connecting to colorpowered.com|208.94.116.163|:80... connected.
  HTTP request sent, awaiting response... 301 Moved Permanently
  Location: http://www.jacklmoore.com/colorbox/ [following]
  --2011-12-06 16:26:51--  http://www.jacklmoore.com/colorbox/
  Resolving www.jacklmoore.com... 208.94.116.61, 208.94.117.46, 208.94.117.78
  Connecting to www.jacklmoore.com|208.94.116.61|:80... connected.
  HTTP request sent, awaiting response... 301 Moved Permanently
  Location: http://jacklmoore.com/colorbox/ [following]
  --2011-12-06 16:26:51--  http://jacklmoore.com/colorbox/
  Resolving jacklmoore.com... 208.94.117.123, 208.94.116.5, 208.94.116.90
  Connecting to jacklmoore.com|208.94.117.123|:80... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: unspecified [text/html]
  Saving to: `colorbox.zip'

       0K .......... .......... ......                           34.7K=0.8s

  2011-12-06 16:26:53 (34.7 KB/s) - `colorbox.zip' saved [27048]

Executing: unzip -qq -o colorbox.zip
  [colorbox.zip]
    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 colorbox.zip or
          colorbox.zip.zip, and cannot find colorbox.zip.ZIP, period.
Calling unlink(colorbox.zip) [3.05 sec, 32.06 MB]                                                                                  [debug]
Drush was unable to download the Colorbox plugin to sites/all/libraries [3.05 sec, 32.06 MB]                                   [error]
Command dispatch complete [3.05 sec, 32.03 MB]                                                                                    [notice]
 Timer  Cum (sec)  Count  Avg (msec)
 page   2.945      1      2945.35

Peak memory usage was 33.23 MB [3.05 sec, 32.03 MB]                       

The problem is that the domain changed, and the wget command is downloading something wrong as "colorbox.zip".
Currently the latest colorbox plugin is available at:

http://jacklmoore.com/colorbox/colorbox.zip

Please fix.
Thks

Comments

frjo’s picture

Status: Active » Closed (duplicate)

Already fixed in dev, see http://drupal.org/node/1303108.

clemens.tolboom’s picture

Status: Closed (duplicate) » Active

I reopen this as this is about Drupal 7 and #1303108: New Colorbox zip file appears broken when installing via Drush is about Drupal 6

I just installed and enable all required module but fail to do

drush --debug colorbox-plugin
...
Bootstrap to phase 0. [0.75 sec, 46.43 MB]                                                                                                 [bootstrap]
Found command: colorbox-plugin (commandfile=colorbox) [0.75 sec, 46.43 MB]                                                                 [bootstrap]
Cache HIT cid: help_text [0.92 sec, 46.5 MB]                                                                                                   [debug]
Executing: type unzip
  unzip is /usr/bin/unzip
Executing: wget http://jacklmoore.com/colorbox/colorbox.zip
  sh: wget: command not found
Executing: curl -O http://jacklmoore.com/colorbox/colorbox.zip
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
154   154  154   154    0     0    636      0 --:--:-- --:--:-- --:--:--  1294
Executing: unzip -qq -o colorbox.zip
  [colorbox.zip]
    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 colorbox.zip or
          colorbox.zip.zip, and cannot find colorbox.zip.ZIP, period.
Calling unlink(colorbox.zip) [1.2 sec, 46.51 MB]                                                                                               [debug]
Drush was unable to download the Colorbox plugin to sites/all/libraries [1.2 sec, 46.51 MB]                                                [error]
Command dispatch complete [1.2 sec, 46.45 MB]                                                                                                 [notice]
 Timer  Cum (sec)  Count  Avg (msec) 
 page   0.851      1      850.73     

Peak memory usage was 48.48 MB [1.2 sec, 46.45 MB]                     
curl -O http://jacklmoore.com/colorbox/colorbox.zip

The contents of the zip is

<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
clemens.tolboom’s picture

The file sites/all/modules/colorbox/drush/colorbox.drush.inc

needs to add www. to the URL like

define('COLORBOX_DOWNLOAD_URI', 'http://www.jacklmoore.com/colorbox/colorbox.zip');
frjo’s picture

Version: 7.x-1.2 » 7.x-2.x-dev
Status: Active » Fixed

This is already fixed in 7-dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

d.novikov’s picture

Status: Closed (fixed) » Active

Jack Moore moved his plugin to the new location at github.

Now the correct link is https://github.com/jackmoore/colorbox/archive/master.zip

frjo’s picture

Status: Active » Closed (fixed)

This is already fixed in 7-dev.