Calling the install from my site root. Any body have any guess at this error?

$ drush pm install cck-5.x-1.6-1
sh: line 1: /cvs: No such file or directory
drush: Unable to checkout cck from cvs.drupal.org.

Comments

clemens.tolboom’s picture

Use --verbose for a start :-)

mpaler’s picture

Thanks for the tip...

#: /httpdocs/sites/all/modules$ drush -v pm install premium             
Calling chdir(/httpdocs/sites/all/modules/)
Downloading project premium ...
Executing: cvs -z6  -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d premium -r DRUPAL-5 contributions/modules/premium
sh: line 1: /cvs: No such file or directory
drush: Unable to checkout premium from cvs.drupal.org.

Not exactly telling me that much more. :(

I would really like to get drush working...

moshe weitzman’s picture

Status: Active » Fixed

you have cvs command in your PATH? if not, disable the cvs handler and use the wget handler instead. hopefully you have wget or curl. if not, you have to get one of those.

mpaler’s picture

Hi Moshe,

Sorry, I'm not sure I understand what you're asking here:

> you have cvs command in your PATH?

Thanks,
Mike

clemens.tolboom’s picture

You probably have drush cvs package manager installed. Goto admin/build/modules and check the enabled drush modules.

Enable 'drush Package Manager wget Support' and disable 'drush Package Manager CVS Support'

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

mpaler’s picture

I'm back again trying to use drush and I'm still getting the above error. I've disabled CVS and have enabled WGET. I can run wget from the command line but it appears the drush module is having trouble running wget. Moshe suggests something about setting PATH...
I'm not sure what he's suggesting. Can anyone point me in the right direction? Thanks.

sashainparis’s picture

I had the same error concerning CVS: well, I decided to install CVS - and magically it works now :-D
Did you verify that CVS is installed?

Alexandre

bensnyder’s picture

mpaler I have this exact issue and it is driving me NUTS. have you found a solution????

bensnyder’s picture

Version: 5.x-1.1 » 6.x-1.1
Priority: Normal » Critical
Status: Closed (fixed) » Active

Changing version to 6.x because it is not a version-specific issue.
Changing priority to critical because this has yet to be resolved for several months and it is preventing many users from using this kickass module.
Category stays as "support request" because this is a server config problem, not a bug.

> I'm the root admin on my VPS which is running Centos 5.
> Sites are located here: /var/www/vhosts/[domain].com/

When I installed drush, I put it in: /var/www/vhosts/mydomain.com/httpdocs/sites/all/modules
(( the result is /var/www/vhosts/mydomain.com/httpdocs/sites/all/modules/drush ))

Then I turned on all the modules on the modules config page.

Now, option 3 in the README under "Installation" states:

3. (optional, but recommended:) To ease the use of drush,
- create a link to drush.php in a directory that is in your $PATH, e.g.:
$ ln /path/to/drush.php /usr/bin/drush
OR
- create an alias to drush.php:
$ alias drush='php modules/drush/drush.php'
(this goes into .profile or .bash_aliases in your home folder)

So I logged in as root in the drupal base directory
(( /var/www/vhosts/mydomain.com/httpdocs/ ))

And executed this command: $ ln sites/all/modules/drush/drush.php /usr/bin/drush

Then I loggged out of root. (I'm still in the drupal base directory)

I am able to execute every drush command successfully, except for "drush pm install ...". (This is the exact problem as #7).

-sh-3.2$ drush pm install simplemenu
PHP Notice:  Undefined index:  host in /usr/bin/drush on line 98
sh: /wget: No such file or directory
sh: /curl: No such file or directory
E: Unable to download simplemenu-6.x-1.x-dev.tar.gz to /var/www/vhosts/mydomain.com/httpdocs/sites/all/modules/ from http://ftp.drupal.org/files/projects/simplemenu-6.x-1.x-dev.tar.gz

The same issue happens when using the CVS method. (/cvs: No such file or directory).

So.... What is causing this?? I've been giving it my best shot for 3 days non-stop and I can't figure it out. I don't think it's the PHP Notice, based on other issues... (other people are still able to install modules even though they get similar PHP Notices)...

And yes, I am able to use wget by executing the following command: "$ wget http://ftp.drupal.org/files/projects/[drupal module]"
But drush is having trouble using wget... Hmmm.......

Please help me resolve this issue! I will try any and all suggestions. I fear this may scare a lot of people away from using drush, but I'm dedicated to finding the solution because a drupal command saves hours!!

THANKS!

bensnyder’s picture

I've made some progress....

these commands (as root) fixed my "sh: /wget: No such file or directory" and "sh: /curl: No such file or directory" errors:

ln /usr/bin/wget /wget
ln /usr/bin/curl /curl

then I was presented with similar errors, but for "gzip" and "tar".... so I executed:

ln /usr/bin/gzip /gzip
ln /bin/tar /tar           // **(because there was no "tar" in /usr/bin )**

Now, whe i run the update....

-sh-3.2$ drush -v pm update
PHP Notice:  Undefined index:  host in /usr/bin/drush on line 98
Update information last refreshed: Sun, 10/05/2008 - 23:52

Update status information on all installed and enabled Drupal modules:
  Name                      	Installed version	Recommended version	Status          
  ----                      	-----------------	-------------------	------
  Drupal Administration Menu	6.x-1.1          	6.x-1.1            	OK              
  Drupal                    	6.4              	6.4                	OK              
  DHTML Menu                	6.x-2.2          	6.x-2.2            	OK              
  Drush                     	6.x-1.1          	6.x-1.1            	OK              
  Fasttoggle                	6.x-1.3          	6.x-1.3            	OK              
  Front Page                	6.x-1.2          	6.x-1.2            	OK              
  Nice Menus                	6.x-1.1          	6.x-1.1            	OK              
  Panels                    	6.x-2.0-alpha1   	6.x-2.0-alpha1     	OK              
  Views                     	6.x-2.0-rc4      	6.x-2.0-rc4        	OK              
  Views Rotator             	6.x-1.0-alpha    	6.x-1.0-alpha2     	Update available
  Marinelli                 	6.x-2.3          	6.x-2.3            	OK              
  RootCandy                 	6.x-1.x-dev      	6.x-1.0-alpha1     	Update available
  Zen                       	6.x-1.0-beta3    	6.x-1.0-beta3      	OK              

Updates are available for the following projects:
Views Rotator [views_rotator], RootCandy [rootcandy]

Note: Updated modules can potentially break your site. It's not recommended to update production sites without prior testing.
Note: A backup of your package will be stored to backups directory if no .svn directory is found.
Note: If you have made any modifications to any file that belongs to one of these projects, you will have to migrate those modifications after updating.
Do you really want to continue? (y/n): y
Starting to update Views Rotator ...
Calling mkdir(/var/www/vhosts/snydertechnologies.com/httpdocs/backup, 511)
Calling mkdir(/var/www/vhosts/snydertechnologies.com/httpdocs/backup/modules, 511)
Calling mkdir(/var/www/vhosts/snydertechnologies.com/httpdocs/backup/modules/20081005235242, 511)
Calling rename(/var/www/vhosts/snydertechnologies.com/httpdocs/sites/all/modules/views_rotator, /var/www/vhosts/snydertechnologies.com/httpdocs/backup/modules/20081005235242/views_rotator)
Calling chdir(/var/www/vhosts/snydertechnologies.com/httpdocs/sites/all/modules/)
Downloading project views_rotator ...
Executing: wget http://ftp.drupal.org/files/projects/views_rotator-6.x-1.0-alpha2.tar.gz
--22:52:42--  http://ftp.drupal.org/files/projects/views_rotator-6.x-1.0-alpha2.tar.gz
Resolving ftp.drupal.org... 140.211.166.134
Connecting to ftp.drupal.org|140.211.166.134|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13155 (13K) [application/x-gzip]
Saving to: `views_rotator-6.x-1.0-alpha2.tar.gz'

100%[====================================================================================================================>] 13,155      55.1K/s   in 0.2s   

22:52:42 (55.1 KB/s) - `views_rotator-6.x-1.0-alpha2.tar.gz' saved [13155/13155]

--22:52:42--  http://2%3E&1/
Resolving 2>&1... failed: Name or service not known.
FINISHED --22:52:43--
Downloaded: 1 files, 13K in 0.2s (55.1 KB/s)
Executing: curl -O http://ftp.drupal.org/files/projects/views_rotator-6.x-1.0-alpha2.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13155  100 13155    0     0  24972      0 --:--:-- --:--:-- --:--:-- 51465

curl: (6) Couldn't resolve host '2>&1'
Downloading views_rotator-6.x-1.0-alpha2.tar.gz was successful.
Md5 checksum of views_rotator-6.x-1.0-alpha2.tar.gz verified.
Executing: gzip -d views_rotator-6.x-1.0-alpha2.tar.gz
gzip: 2>&1.gz: No such file or directory
Executing: tar -xf views_rotator-6.x-1.0-alpha2.tar
/tar: 2>&1: Not found in archive
/tar: Error exit delayed from previous errors
Calling unlink(views_rotator-6.x-1.0-alpha2.tar)
E: Error. Downloaded file views_rotator-6.x-1.0-alpha2.tar couldn't be untarred correctly
E: Updating project views_rotator failed. Restoring previously installed version.
Calling rename(/var/www/vhosts/snydertechnologies.com/httpdocs/backup/modules/20081005235242/views_rotator, /var/www/vhosts/snydertechnologies.com/httpdocs/sites/all/modules/views_rotator)
Starting to update RootCandy ...
Calling mkdir(/var/www/vhosts/snydertechnologies.com/httpdocs/backup, 511)
Calling mkdir(/var/www/vhosts/snydertechnologies.com/httpdocs/backup/modules, 511)
Calling mkdir(/var/www/vhosts/snydertechnologies.com/httpdocs/backup/modules/20081005235242, 511)
Calling rename(/var/www/vhosts/snydertechnologies.com/httpdocs/, /var/www/vhosts/snydertechnologies.com/httpdocs/backup/modules/20081005235242/rootcandy)
drush: Failed to backup project directory /var/www/vhosts/snydertechnologies.com/httpdocs/ to /var/www/vhosts/snydertechnologies.com/httpdocs/backup/modules/20081005235242/rootcandy
-sh-3.2$ 

any ideas??

bensnyder’s picture

just bumping the issue. im still trying to figure this out. could someone wiser than I (and there are many of you out there) please chime in?? thx!!!

gmak’s picture

clearly I'm no wiser that pegleglax, because I've hit exactly the same problem:

air052:/var/www/vhosts/cltad.org.uk/httpdocs# drush pm install tagadelic
--22:08:15--  http://ftp.drupal.org/files/projects/tagadelic-6.x-1.0.tar.gz
           => `tagadelic-6.x-1.0.tar.gz.1'
Resolving ftp.drupal.org... 64.50.236.52, 64.50.238.52
Connecting to ftp.drupal.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18,226 (18K) [application/x-gzip]

100%[====================================>] 18,226        --.--K/s             

22:08:15 (809.95 KB/s) - `tagadelic-6.x-1.0.tar.gz.1' saved [18226/18226]

--22:08:15--  http://2%3E&1/
           => `index.html'
Resolving 2>&1... failed: Name or service not known.

FINISHED --22:08:15--
Downloaded: 18,226 bytes in 1 files
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 18226  100 18226    0     0  86283      0 --:--:-- --:--:-- --:--:--  169k

curl: (6) Couldn't resolve host '2>&1'
E: Unable to download tagadelic-6.x-1.0.tar.gz to /var/www/vhosts/cltad.org.uk/httpdocs/sites/all/modules/ from http://ftp.drupal.org/files/projects/tagadelic-6.x-1.0.tar.gz

I could also use some help.

rich.yumul’s picture

Version: 6.x-1.1 » 6.x-1.2

I ran into this same problem and it turns out (at least in my case) that it was caused because safe_mode was turned 'On'. When cli php's in safe mode, only programs in the safe_mode_exec_dir can be executed. In my case, safe_mode was 'On' and 'safe_mode_exec_dir' was undefined, so no programs could be executed thru the exec() call. The work around is to turn safe mode 'Off':

cd sites/all/modules/drush
php <b>-d safe_mode=Off</b> drush.php pm update

HTH!

moshe weitzman’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

bensnyder’s picture