drush-ops / drush

Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
https://www.drush.org
2.34k stars 1.08k forks source link

ESPIPE (Illegal seek) #3319

Open drzraf opened 6 years ago

drzraf commented 6 years ago

$ drush --version Drush Version : 8.1.15 $ strace drush @d6.foo -vd dis securelogin

[....]
Calling hook drush_pm_disable [0.57 sec, 23.47 MB]  # last debug output line
[...]
open("/usr/local/bin/drush", O_RDONLY)  = 5
fstat(5, {st_mode=S_IFREG|0755, st_size=6054177, ...}) = 0
lseek(5, 0, SEEK_CUR)                   = 0
close(5)                                = 0
dup(0)                                  = 5
fstat(5, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
fstat(5, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
lseek(5, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
read(5, 
<hang>

Adding the --yes flag as advised by https://www.drupal.org/node/1034016 (2011/2014) made it work. After that, subsequent runs of the command worked successfully without the need for the --yes flag anymore. Various users, using the same binary, were affected.

greg-1-anderson commented 6 years ago

Does this happen regardless of the module being disabled?

Does this also happen with drush up, as in the original issue?

Do you have a policy file that is forcing a no for the drush_confirm?

drzraf commented 6 years ago

Hit this today, when trying to enable the module (securelogin) drush up just says "No code updates available" without a prompt. I"ve no drush_confirm inside /etc/drush /usr/share/drush nor ~/.drush