Fresh install: D 7.8 and Drush 5.0-dev (2011-09-24).

OS: Windows 7; Shell: Powershell.

The site looks fine, at http://r1_0.spacewealth.org on localhost.

Drush also looks fine:

[17:56:39 PM] G:\devsite\rel\r1_0\www> drush status
 Drupal version         :  7.8
 Site URI               :  http://default
 Database driver        :  mysql
 Database hostname      :  localhost
 Database username      :  bc
 Database name          :  r1_0
 Database               :  Connected
 Drupal bootstrap       :  Successful
 Drupal user            :  Anonymous
 Default theme          :  bartik
 Administration theme   :  seven
 PHP configuration      :  G:\dev\bin\php\php5.3.5\php.ini
 Drush version          :  5.0-dev
 Drush configuration    :  G:\dev\bin\drush\drushrc.php
 Drush alias files      :  G:\dev\bin\drush\includes/../aliases.drushrc.php   <<<
 Drupal root            :  G:/devsite/rel/r1_0/www
 Site path              :  sites/default
 File directory path    :  sites/default/files

So it looks like Drush finds aliases.drushrc.php.

That file (all of it):

<?php
  $aliases['dev'] = array(
    'root' => 'G:/devsite/rel/r1_0/www/',
    'uri' => 'r1_0.spacewealth.org',
  );
?>

But, checking status for @dev, aliases.drushrc.php is not read:

[18:02:11 PM] G:\devsite\rel\r1_0\www> drush @dev status  -d
Bootstrap to phase 0. [0.03 sec, 2.9 MB]                             [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.04 sec, 3.1 MB]  [bootstrap]
Loading drushrc "G:\dev\bin\drush\drushrc.php" into "drush" scope.   [bootstrap]
[0.06 sec, 3.1 MB]
Cache HIT cid:                                                           [debug]
5.0-dev-commandfiles-0-38d4a2677e001333a5095f7512698134 [0.08 sec, 3.11 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.12 sec,    [bootstrap]
6.24 MB]
Initialized Drupal 7.8 root directory at G:/devsite/rel/r1_0/www        [notice]
[0.16 sec, 9.07 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.16 sec,    [bootstrap]
9.07 MB]
Initialized Drupal site default at sites/default [0.16 sec, 9.08 MB]    [notice]
Cache HIT cid:                                                           [debug]
5.0-dev-commandfiles-2-c32acd775c18a90c5b41d0fc9accf5ab [0.17 sec,
9.08 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.18[bootstrap]
sec, 9.08 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.18 sec,[bootstrap]
9.08 MB]
Successfully connected to the Drupal database. [0.18 sec, 9.08 MB]   [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.19 sec,    [bootstrap]
9.72 MB]
Cache HIT cid:                                                           [debug]
5.0-dev-commandfiles-5-e595d987acd5ba595d190642e65183e6 [0.33 sec,
23.39 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [0.33 sec,   [bootstrap]
23.39 MB]
Successfully logged into Drupal as Anonymous (uid=0) [0.34 sec, 23.55[bootstrap]
MB]
Found command: core-status (commandfile=core) [0.34 sec, 23.55 MB]   [bootstrap]
 Drupal version         :  7.8
 Site URI               :  http://default
 Database driver        :  mysql
 Database hostname      :  localhost
 Database username      :  bc
 Database name          :  r1_0
 Database               :  Connected
 Drupal bootstrap       :  Successful
 Drupal user            :  Anonymous
 Default theme          :  bartik
 Administration theme   :  seven
 PHP configuration      :  G:\dev\bin\php\php5.3.5\php.ini
 Drush version          :  5.0-dev
 Drush configuration    :  G:\dev\bin\drush\drushrc.php
 Drush alias files      :  G:\dev\bin\drush\includes/../aliases.drushrc.php
 Drupal root            :  G:/devsite/rel/r1_0/www
 Site path              :  sites/default
 File directory path    :  sites/default/files

Command dispatch complete [0.4 sec, 23.56 MB]                           [notice]
 Timer  Cum (sec)  Count  Avg (msec)
 page   0.227      1      227.24

Peak memory usage was 24.23 MB [0.4 sec, 23.56 MB]                      [memory]

Variations on the path syntax that I've tried:

    'root' => 'G:\devsite\rel\r1_0\www',

    'root' => 'G:/devsite/rel/r1_0/www',

    'root' => 'G:/devsite/rel/r1_0/www/',

    'root' => 'G:\\devsite\\rel\\r1_0\\www',

What am I missing?

Thanks for any pointers.

-BC

Comments

protoplasm’s picture

Same issue. I am stopped from upgrading via drush on a windows development machine. While the alias is found, I can't even generate a status in the terminal window. Tried everything, too. The status is read OK without @drupal location, but not with it in the command line.

protoplasm

ollie222’s picture

I'm new to using drush but I have the same issue that alias files are recognised but the aliases themselves aren't picked up for things even like a simple status.

Everything else about drush seems to be working.

Putting the info from the alias in the command line in the format as below works fine.

drush --root=/path/to/drupal --uri=dev.mydrupalsite.com status

I'm using Drupal 7.9 and drush 5.x.dev running on windows 7.

The error reported is

The drush command '@dev status' could not be found.

Presumably it's not picking up the @dev alias and is trying to process it as a command instead.

Jean Gionet’s picture

I'm experiencing the same issue with the latest version of Drush 5 on a Windows 2003 server.
The aliases file being found, however none of the aliases are working "command not found"

A Day In The Life

greg.1.anderson’s picture

You are likely to get better support here: http://drupal.org/node/1465858

jasonsafro’s picture

I am encountering the same issue. Have there been any patches or solutions?

patrick_star’s picture

I have the same issue

Windows 7 x64
Drupal 7.24

Alpinist1974’s picture

I had this issue when using two aliases, the first for a local Windows 7 installation and the second for a remote server; the aliases were listed when I typed drush site-alias however, I couldn't get the status of the second (local) alias, or presumably do anything else with it. I put each alias in a separate file, with the name of the alias in the first part of the file name, and it worked.

tocl_migration.alias.drushrc.php
tocl_migration_target.alias.drushrc.php

The code in the second file is:

$aliases['tocl_migration_target'] = array(
	'root' => 'C:/wamp/www/tocl_migration_target',
	'uri' => 'tocl_migration_target'
);