I get the following errors.

PHP Fatal error:  Cannot redeclare drush_core_rsync() (previously declared in /usr/share/php/drush/commands/core/rsync.core.inc:17) in /usr/share/drush/commands/core/rsync.core.inc on line 62
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                                      [error]
Error: Cannot redeclare drush_core_rsync() (previously declared in /usr/share/php/drush/commands/core/rsync.core.inc:17) in /usr/share/drush/commands/core/rsync.core.inc, line 62

Comments

moshe weitzman’s picture

Category: bug » support
Status: Active » Fixed

Looks like you gave remnants of an old drush lying around. i would remove /guest-130325 guest-130325 /usr/share/drush or /guest-130325 /usr/share/php/drush.

P2790’s picture

That is initially what I thought after googling the problem.
I do not have any directories under /guest-130325.

I don't think I've quite understood what you've said. How would I remove this stuff? Am I removing users or directories?

Thanks for your time

greg.1.anderson’s picture

rm -rf /usr/share/php/drush
- or -
rm -rf /usr/share/drush

or do both, and then re-install Drush. To be save, you might want to 'mv' instead of 'rm'. Drush will look for global command files in /usr/share/drush/commands, so it would be a bad idea to install drush at /usr/share/drush. (include_once will probably save you if you do this, but it still gives me pause.)

P2790’s picture

Thanks for your help!

Status: Fixed » Closed (fixed)

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

raj45’s picture

Issue summary: View changes

I agree with @greg.1.anderson, use mv rather than rm. I used rm and got the message -su: alias: drush: not found when I tried to log in again. Luckily I could recover the /usr/share/drush directory, leave it as it was, and install a fresh Drush 8.0.3.