I have been unable to download Drupal core for several weeks.
This is the output from my Linux Gnome terminal (on Ubuntu 10.10) when I attempt to download the Drupal core:
kipp@kipp:~$ cd workspace
kipp@kipp:~/workspace$ drush status
PHP configuration : /etc/php5/cli/php.ini
Drush version : 5.0-dev
Drush configuration :
Drush alias files :
kipp@kipp:~/workspace$ drush dl drupal
Source directory /tmp/drush_tmp_1307646857/drupal is not readable or [error]
does not exist.
Project drupal (7.2) could not be downloaded to [error]
/home/kipp/workspace/drupal.
kipp@kipp:~/workspace$ drush dl drupal-6
No release history was found for the requested project (drupal-6). [warning]
kipp@kipp:~/workspace$ drush dl drupal-6.20
Source directory /tmp/drush_tmp_1307646893/drupal is not readable or [error]
does not exist.
Project drupal (6.20) could not be downloaded to [error]
/home/kipp/workspace/drupal.
kipp@kipp:~/workspace$ cd /tmp
kipp@kipp:/tmp$ ls -l
total 24
drwxrwxrwx 2 kipp kipp 4096 2011-06-09 14:20 keyring-67tv9b
drwxrwxrwx 2 kipp kipp 4096 2011-06-09 14:57 orbit-kipp
drwxrwxrwx 2 kipp kipp 4096 2011-06-09 14:26 plugtmp
drwxrwxrwx 2 kipp kipp 4096 2011-06-09 14:20 pulse-NQQI1MFQgIi4
drwxrwxrwx 2 kipp kipp 4096 2011-06-09 14:20 ssh-hhZCiN1182
drwxrwxrwx 2 kipp kipp 4096 2011-06-09 14:20 virtual-kipp.j5ylVT
kipp@kipp:/tmp$
Comments
Comment #1
greg.1.anderson commentedWorks fine with today's master. From your report, it looks like perhaps your /tmp directory is not writable, although that is an odd state of affairs, since drush checks to see if the tmp directory is writable before using it.
Comment #2
Kipp Elliott Watson commentedGreg,
Thanks for your prompt reply, but I have confirmed that the /tmp directory is writable. I have found that I can get 'drush dl drupal' to install drupal-7.2 at /home/[user_name]/drupal-7.2 (when the command is executed from the /home/[user_name]/workspace directory) if the following change is made to drush/commands/pm/pm.drush.inc at line 2156:
Basically, what was broken with the 'drush dl drupal' command was that the basename for the temporary download directory was 'drupal-7.2' and not 'drupal' when the command attempted to move the temporary directory to the final project installation directory.
I'm not totally happy with this fix because it still does not install drupal-7.2 in the workspace directory, which was the directory I was working from.
I also still need to investigate the other two bug cases.
Greg, can you advise whether this fix would be suitable for a commit?
Comment #3
jonhattanTo investigate further, attach the output of
drush dl drupal --debug.OTOH
drush dl drupal-6is not valid. Instead you can usedrush dl drupal --default-major=6,drush dl drupal-6.xordrush dl drupal-6.22.Comment #4
Kipp Elliott Watson commentedThe following is the output I get for 'drush dl drupal --debug'. Please note that the download function is looking for "Source directory /tmp/drush_tmp_1307931613/drupal" and not "/tmp/drush_tmp_1307931613/drupal-7.2", which is where the temporary directory is actually stored after the download file is decompressed.
====================================
kipp@kipp:~/workspace$ drush dl drupal --debug
Bootstrap to phase 0. [0.08 sec, 3.49 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.08 sec, 3.77 MB] [bootstrap]
Found command: pm-download (commandfile=pm) [0.19 sec, 7.86 MB] [bootstrap]
Initializing drush commandfile: user [0.19 sec, 7.86 MB] [bootstrap]
Executing: wget --version
Downloading release history from [notice]
http://updates.drupal.org/release-history/drupal/7.x [0.23 sec, 7.95
MB]
Executing: mkdir '/tmp/drush_tmp_1307931613'
Downloading project drupal to /tmp/drush_tmp_1307931613 ... [1.04 [notice]
sec, 7.96 MB]
Calling chdir(/tmp/drush_tmp_1307931613)
Executing: wget -P . 'http://ftp.drupal.org/files/projects/drupal-7.2.tar.gz'
--2011-06-12 22:20:13-- http://ftp.drupal.org/files/projects/drupal-7.2.tar.gz
Resolving ftp.drupal.org... 64.50.236.52, 64.50.233.100
Connecting to ftp.drupal.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2731345 (2.6M) [application/x-gzip]
Saving to: `./drupal-7.2.tar.gz'
0K .......... .......... .......... .......... .......... 1% 207K 13s
50K .......... .......... .......... .......... .......... 3% 396K 9s
100K .......... .......... .......... .......... .......... 5% 961K 7s
150K .......... .......... .......... .......... .......... 7% 1.06M 6s
200K .......... .......... .......... .......... .......... 9% 1.11M 5s
250K .......... .......... .......... .......... .......... 11% 2.04M 4s
300K .......... .......... .......... .......... .......... 13% 1.91M 4s
350K .......... .......... .......... .......... .......... 14% 2.19M 3s
400K .......... .......... .......... .......... .......... 16% 1.70M 3s
450K .......... .......... .......... .......... .......... 18% 2.84M 3s
500K .......... .......... .......... .......... .......... 20% 2.27M 2s
550K .......... .......... .......... .......... .......... 22% 1.83M 2s
600K .......... .......... .......... .......... .......... 24% 2.44M 2s
650K .......... .......... .......... .......... .......... 26% 2.44M 2s
700K .......... .......... .......... .......... .......... 28% 2.29M 2s
750K .......... .......... .......... .......... .......... 29% 2.22M 2s
800K .......... .......... .......... .......... .......... 31% 1.89M 2s
850K .......... .......... .......... .......... .......... 33% 1.87M 2s
900K .......... .......... .......... .......... .......... 35% 1.94M 2s
950K .......... .......... .......... .......... .......... 37% 2.28M 1s
1000K .......... .......... .......... .......... .......... 39% 1.62M 1s
1050K .......... .......... .......... .......... .......... 41% 3.88M 1s
1100K .......... .......... .......... .......... .......... 43% 2.36M 1s
1150K .......... .......... .......... .......... .......... 44% 2.41M 1s
1200K .......... .......... .......... .......... .......... 46% 1.99M 1s
1250K .......... .......... .......... .......... .......... 48% 2.33M 1s
1300K .......... .......... .......... .......... .......... 50% 1.70M 1s
1350K .......... .......... .......... .......... .......... 52% 1.60M 1s
1400K .......... .......... .......... .......... .......... 54% 4.39M 1s
1450K .......... .......... .......... .......... .......... 56% 2.27M 1s
1500K .......... .......... .......... .......... .......... 58% 2.63M 1s
1550K .......... .......... .......... .......... .......... 59% 1.52M 1s
1600K .......... .......... .......... .......... .......... 61% 2.47M 1s
1650K .......... .......... .......... .......... .......... 63% 2.23M 1s
1700K .......... .......... .......... .......... .......... 65% 1.73M 1s
1750K .......... .......... .......... .......... .......... 67% 2.33M 1s
1800K .......... .......... .......... .......... .......... 69% 2.26M 1s
1850K .......... .......... .......... .......... .......... 71% 2.01M 1s
1900K .......... .......... .......... .......... .......... 73% 2.12M 0s
1950K .......... .......... .......... .......... .......... 74% 2.28M 0s
2000K .......... .......... .......... .......... .......... 76% 1.81M 0s
2050K .......... .......... .......... .......... .......... 78% 2.20M 0s
2100K .......... .......... .......... .......... .......... 80% 1.75M 0s
2150K .......... .......... .......... .......... .......... 82% 1.62M 0s
2200K .......... .......... .......... .......... .......... 84% 4.11M 0s
2250K .......... .......... .......... .......... .......... 86% 2.24M 0s
2300K .......... .......... .......... .......... .......... 88% 1.96M 0s
2350K .......... .......... .......... .......... .......... 89% 2.42M 0s
2400K .......... .......... .......... .......... .......... 91% 1.54M 0s
2450K .......... .......... .......... .......... .......... 93% 2.81M 0s
2500K .......... .......... .......... .......... .......... 95% 2.25M 0s
2550K .......... .......... .......... .......... .......... 97% 2.07M 0s
2600K .......... .......... .......... .......... .......... 99% 1.96M 0s
2650K .......... ....... 100% 64.2M=1.6s
2011-06-12 22:20:15 (1.61 MB/s) - `./drupal-7.2.tar.gz' saved [2731345/2731345]
Downloading drupal-7.2.tar.gz was successful. [2.86 sec, 7.98 MB] [notice]
Calling md5_file(drupal-7.2.tar.gz)
Md5 checksum of drupal-7.2.tar.gz verified. [2.9 sec, 7.98 MB] [notice]
Executing: gzip -d 'drupal-7.2.tar.gz'
Executing: tar -xf 'drupal-7.2.tar'
Calling unlink(drupal-7.2.tar)
Calling chdir(/home/kipp/workspace)
Verifying signature for svn version control engine. [4.03 sec, 7.98 [debug]
MB]
Executing: svn info '/home/kipp/workspace'
sh: svn: not found
Verifying signature for bzr version control engine. [4.05 sec, 7.98 [debug]
MB]
Executing: bzr root '/home/kipp/workspace'
sh: bzr: not found
Calling is_readable(/tmp/drush_tmp_1307931613/drupal)
Source directory /tmp/drush_tmp_1307931613/drupal is not readable or [error]
does not exist. [4.12 sec, 8 MB]
Project drupal (7.2) could not be downloaded to [error]
/home/kipp/workspace/drupal. [4.12 sec, 8 MB]
Command dispatch complete [4.12 sec, 7.96 MB] [notice]
Peak memory usage was 8.11 MB [4.16 sec, 7.97 MB] [memory]
kipp@kipp:~/workspace$
Comment #5
jonhattanThis is the spected sequence of execution:
In your case drush is not running
Executing: tar -tf drupal-7.2.tar, that is annoying.The code involved is at commands/pm/package_handler/wget.inc:86
$request['project_type']is set incommands/pm/pm.drush.inc:2153so perhaps it is a problem with the update service or your libxml library.Please post also the output of
$ php -i |grep -i xmland$ apt-show-versions |grep xml. I've a Ubuntu Lucid where drush dl drupal is working. This is my data (I've removed irrelevant data from the output):Comment #6
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.