Using the Windows version of drush I tried a "drush dl thejit" and got the following error:

Unable to copy C:\Users\MyUser\AppData\Local\Temp\dow541C.tmp to [error]

C:\Users\MyUser\AppData\Local\Temp/drush_tmp_1358604430_50faa88e4e666\thejit-7.x-1.
x-dev.tar.gz?date=1356961612.
Unable to move C:\Users\MyUser\AppData\Local\Temp\dow541C.tmp to [error]

C:\Users\MyUser\AppData\Local\Temp/drush_tmp_1358604430_50faa88e4e666\thejit-7.x-1.
x-dev.tar.gz?date=1356961612.
md5_file(C:\Users\MyUser\AppData\Local\Temp/drush_tmp_1358604430_50faa88e4e666\thej
it-7.x-1.x-dev.tar.gz?date=1356961612): [warning]
failed to open stream: No such file or directory drush.inc:792
File thejit-7.x-1.x-dev.tar.gz?date=1356961612 is corrupt (wrong md5 [error]

A similar error occurs when trying to use drush to download graphapi. Both thejist and graphapi were updated recently (2012-Dec-31 and 2013-Jan-12). However, a module that was released even more recently (tablesorter, updated 2013-Jan-19) was downloaded using "drush dl" without any problem. Other modules (Views, for example) have also since been download using "drush dl" without any problems.

I originally downloaded both thejit and graphapi last fall using the Drupal API (not drush) to download the .zip versions. Tried that again and they downloaded OK.

Comments

clemens.tolboom’s picture

Category: bug » support
Status: Active » Closed (cannot reproduce)

I just did

 drush dl thejit graphapi graph_phyz graphviz
Project thejit (7.x-1.x-dev) downloaded to /tmp/thejit. [success]
Project thejit contains 3 modules: thejit_spacetree, thejit_forcedirected, thejit.
Project graphapi (7.x-1.x-dev) downloaded to /tmp/graphapi. [success]
Project graphapi contains 4 modules: graphapi_relation, graphapi_devel, graphapi_demo, graphapi.
Project graph_phyz (7.x-1.x-dev) downloaded to /tmp/graph_phyz. [success]
Project graphviz (7.x-1.x-dev) downloaded to /tmp/graphviz.

on Mac. Feel free to reopen.

My guess it was a drush or d.o hickup.

mogulbuster’s picture

I'm still getting the same error. However, I just got the same error attempting a "drush dl gmap3_tools", so it doesn't seem to be specific to thejit or graphapi. A common thread for all of the modules that are having this problem is that they do not have an Drupal 7 entry in the "Recommended releases" category -- all of their D7 releases are in the "Development releases" category. Given your success on the Mac it seems likely that it's a Windows/drush issue, so I'll try digging around in the drush bug reports, and I'll leave this issue report closed.

sokrplare’s picture

Confirming this as a Windows issue with drush dl for dev releases only. I'm also in a multi-site installation:

# WORKED
$ drush dl block_class
Install location .../sites/all/modules/contrib/block_class already exists. Do you want to overwrite it? (y/n): y
Project block_class (7.x-2.0) downloaded to .../sites/all/modules/contrib/block_class.               [success]

# FAILED
$ drush dl block_class-7.x-2.x-dev
Unable to copy C:\Users\...\AppData\Local\Temp\dow630B.tmp to                                         [error]

C:/Users/.../AppData/Local/Temp/drush_tmp_1368390809_518ffc99a6368\block_class-7.x-2.x-dev.tar.gz?date=1366029384.
Unable to move C:\Users\...\AppData\Local\Temp\dow630B.tmp to                                                                             [error]

C:/Users/.../AppData/Local/Temp/drush_tmp_1368390809_518ffc99a6368\block_class-7.x-2.x-dev.tar.gz?date=1366029384.
md5_file(C:/Users/.../AppData/Local/Temp/drush_tmp_1368390809_518ffc99a6368\block_class-7.x-2.x-dev.tar.gz?date=1366029384): failed to  [warning]

open stream: No such file or directory drush.inc:792
File block_class-7.x-2.x-dev.tar.gz?date=1366029384 is corrupt (wrong md5 checksum).                                                           [error]
sokrplare’s picture

Project: The JIT » Drush
Version: 7.x-1.x-dev » 7.x-5.8
Component: Miscellaneous » Windows Installer
Category: support » bug
Status: Closed (cannot reproduce) » Active

Moving into Drush project as it isn't specific to a module, but rather to downloading a dev release.

sokrplare’s picture

Status: Active » Closed (duplicate)

Looks like dupe of #1782444-22: dev project update in Windows filesystem fails with md5 sum failure . Too bad the Windows installer is only for Drush 5.8 and the fix is in 5.9, but ah well.