I am struggling with a remote drush error since days, and don't find the cause. I already checked the Internet up and down for an answer, but could not find a solution for my problem (here,here and many more):
I have one specific D7 setup that I remotely manage by drush, running Drush 8 on both sides (started with 7 on both sides, and upgraded meanwhile both to 8)
My local Drush can do a
drush @anysite_in_aliases status and it works, so I assume there is no problem at my local drush.
My remote drush can do that as well - if I log in at my remote server and call
drush status in the drupal directory, it works.
Only if I call
drush @specialsite status I get this:
Drush command terminated abnormally due to an unrecoverable error. [error]
I tried to use
--debug on it, the relevant part is:
Drush bootstrap phase : bootstrap_drupal_database() [0.28 sec, 8.04 MB] [bootstrap] Successfully connected to the Drupal database. [0.28 sec, 8.04 MB] [bootstrap] Find command files for phase 4 (max=7) [0.28 sec, 8.04 MB] [debug] Drush bootstrap phase : bootstrap_drupal_full() [0.28 sec, 8.04 MB] [bootstrap] Cannot modify header information - headers already sent by (output started at [warning] phar:///home/example/bin/drush/includes/output.inc:41) common.inc:705 [1.16 sec, 32.14 MB] Drush command terminated abnormally due to an unrecoverable error. [1.17 sec, 32.68 MB] [error] End redispatch via drush_invoke_process(). [3.62 sec, 7.99 MB] [notice]
And here I stuck. I know that there must be a whitespace before/after a php tag somewhere, or an error message that is sent before the header. But I can't find out where I can get nearer to the culprit. I've read up and down all the causes for that error - but my problem is: WHAT causes that error??
BTW: I am using Uberspace as server (CentOS 6), already thought maybe is drush called as php-cgi?? How do I check this?
My aliases lines:
$aliases['example.live'] = array( 'uri' => 'http://example.org', 'root' => '/var/www/virtual/example/html', 'remote-host' => 'example.org', 'remote-user' => 'example', );
Could anybody enlighten me?