Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
Windows Installer
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Sep 2012 at 07:41 UTC
Updated:
11 Sep 2013 at 05:17 UTC
I cannot get the drush dl command to work on windows when there are additional paramers like "--drupal-project-rename=drupal7"
It is probaby a permission problem? Anyway, on the PC I'm working as the administrator.
Thanks for any help!
| Comment | File | Size | Author |
|---|---|---|---|
| drush dl WITH parameters error | 64.16 KB | drupov | |
| drush dl NO parameters success | 93.12 KB | drupov |
Comments
Comment #1
mjross commentedI am seeing the same behavior. In these tests, I'm running the latest versions of Drupal and Drush, on my D: partition, in a temp directory. In the first test, no options are specified, and the download completes successfully, despite the error message that the drush_tmp_1349890664_5075b268be991/drupal-7.15 file already exists (when in fact it does not).
In the second test, below, the pm-download (a.k.a. dl) command fails if the drupal-project-rename option is provided:
It uses a temporary file, "drush_tmp_1349890538_5075b1ea68957/x drupal-7.15", which does not exist prior to executing this test. (I'm not sure if there is a space in "x drupal-7.15" in the command's output, because it wraps at the right edge of the Windows terminal.) The default project name, "drupal-7.15", is part of the temporary file's name. Perhaps the pm-download command always uses the default project name when downloading the file, but then tries to use the replacement project name -- in this case, "new" -- when later trying to use that file, thereby causing this problem. That is suggested by the warning that Drush is trying to copy drush_tmp_1349890538_5075b1ea68957/new, but it could not be opened.
Comment #2
greg.1.anderson commentedPlease show output with --debug, as requested in the issue submission guidelines. (Trim output from tar, though; that's quite a few lines for Drupal core.)
Comment #3
drupov commentedHi,
here's my --debug info.
Thanks for your time on this.
Comment #4
greg.1.anderson commentedI see. Drush is using the output from tar to find out the name of the drupal folder. It is expecting to get something like "drupal-7.15", but instead it gets:
This is converted into
/path/to/destination/x drupal-7.15, which fails due to the space. The fix is to figure out why the output from tar is wrong for you, and either adjust the way that Drush calls it, so that it outputs the correct text, or filter the text so that Drush gets the expected result.Comment #5
jonhattanOutput lines from tar are of the form "x file" in some versions / platforms. I remember this from an old macos issue.
This code is now at drush_tarball_extract():
but this snippet is only run for non-windows.
Comment #6
Bernsch commentedHy! I have the same Error:
I use Drush-5.7-2012-08-20-Installer-v1.0.19.msi from http://drush.ws/drush_windows_installer and Drupal 7.15
When i use this comand:
drush dl drupal-7 --drupal-project-rename=newi becom this error message:Comment #7
emarchak commentedConfirmed the same error occurs on an upgraded dev version of drush.
Comment #8
greg.1.anderson commentedRegarding #5, there is a link in the code to the related issue #1775520: Windows Drush: core update issue with destination directory already existing. It seems that the problem here is that drush_is_windows() is reporting that the MinGW-based Windows system is NOT Windows, so the Linux branch is being used. If the code path followed the Windows branch, then the stripping of the spurious "x" is already handled. I don't know if we need to adjust drush_is_windows() for MinGW (affecting behavior throughout Drush), or if we need to use a different test just in this code to select the right branch for Windows.
Comment #9
Ahigh4life commentedI get this error then trying to download. Help!!!!
$ drush dl nivo_slider
chdir(): Permission denied (errno 13) drush.inc:792 [warning]
chdir(): Permission denied (errno 13) drush.inc:792 [warning]
Unable to untar C:\Users\Gbenga [error]
Techmax\AppData\Local\Temp\drush_tmp_1363257113_5141a71909e9c\niv3213.tmp.
copy(C:/Users/GBENGA~1/AppData/Local/Temp/drush_tmp_1363257113_5141a71909e9c/niv
o_slider): [warning]
failed to open stream: No such file or directory filesystem.inc:229
Project nivo_slider (7.x-1.10) could not be downloaded to [error]
c:/xampp/htdocs/website/sites/all/modules/nivo_slider.
Comment #10
sinasalek commentedI also have this issue
Comment #11
frank ralf commentedJFTR
You might also have a look at #1957616: Issue when downloading with drush.
Comment #12
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.