drush has been awesome up until recently, but I'm getting these errors when I run pm-update now:

WD php: exec(): Unable to fork [svn info '/home/drupal6/public_html/sites/all/modules/jquery_ui' 2>&1] in /home/drupal6/public_html/drush/includes/drush.inc on line 1283. [error]
WD php: exec(): Unable to fork [bzr root '/home/drupal6/public_html/sites/all/modules/jquery_ui' 2>&1] in /home/drupal6/public_html/drush/includes/drush.inc on line 1283. [error]
WD php: exec(): Unable to fork [mkdir '/root/drush-backups' 2>&1] in /home/drupal6/public_html/drush/includes/drush.inc on line 1283. [error]
Unable to create backup directory /root/drush-backups/tester_db. [error]
exec(): Unable to fork [svn info '/home/drupal6/public_html/sites/all/modules/jquery_ui' 2>&1] in /home/drupal6/public_html/drush/includes/drush.inc on line 1283. [warning]
exec(): Unable to fork [bzr root '/home/drupal6/public_html/sites/all/modules/jquery_ui' 2>&1] in /home/drupal6/public_html/drush/includes/drush.inc on line 1283. [warning]
exec(): Unable to fork [mkdir '/root/drush-backups' 2>&1] in /home/drupal6/public_html/drush/includes/drush.inc on line 1283. [warning]

I'm not even sure where to start with this. Any guidance appreciated.

Comments

sam moore’s picture

Status: Active » Fixed

Never mind - server was haywire.
Rebooted and all is well.

Status: Fixed » Closed (fixed)

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

mark_at_kaazing’s picture

Apologies for reopening this issue, but I've encountered nearly the same thing!

I'm running this as root, there should not be any permissions or memory issues, and this worked for me before. I've [sanitized] some path names, but I'm wondering if anyone can help me troubleshoot further.

Thanks!

# drush --version
drush version 4.4
# drush php-eval "phpinfo()" | grep memory_limit
memory_limit => 512M => 512M

# drush -v up
Initialized Drupal 6.22 root directory at [sanitized]/drupal6            [notice]
Initialized Drupal site default at sites/default                        [notice]
WD php: exec(): Unable to fork [wget --version 2>&1] in              [error]
[sanitized]/drush/includes/drush.inc on line 1283.
WD php: exec(): Unable to fork [curl --version 2>&1] in              [error]
[sanitized]/drush/includes/drush.inc on line 1283.
WD php: exec(): Unable to fork [which curl 2>&1] in                  [error]
[sanitized]/drush/includes/drush.inc on line 1283.
wget nor curl executables found.                                     [error]
exec(): Unable to fork [wget --version 2>&1] in               [warning]
[sanitized]/drush/includes/drush.inc on line 1283.
exec(): Unable to fork [curl --version 2>&1] in               [warning]
[sanitized]/drush/includes/drush.inc on line 1283.
exec(): Unable to fork [which curl 2>&1] in                   [warning]
[sanitized]/drush/includes/drush.inc on line 1283.
Command dispatch complete                                               [notice]
sk33lz’s picture

I was just experiencing this issue and ended up just restarting my Apache server instance. The issue went away after that.

citricguy’s picture

Confirming that the workaround in #4 works.

exec(): Unable to fork [wget --version 2>&1] exec.inc:135                      [warning]
exec(): Unable to fork [curl --version 2>&1] exec.inc:135                      [warning]
exec(): Unable to fork [which curl 2>&1] exec.inc:135                          [warning]
wget nor curl executables found.                                               [error]

After restarting Apache, 'drush pm-download' works again.