Closed (duplicate)
Project:
Drush
Version:
All-versions-3.0-rc2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Mar 2009 at 14:52 UTC
Updated:
5 Apr 2010 at 07:41 UTC
Ran drush pm update and it correctly found the modules that needed updating, but blew up when attempting to process the updates:
Updates will be made to the following projects:
Chaos tool suite [ctools-6.x-1.0-alpha3], Devel [devel-6.x-1.15], Panels [panels
-6.x-3.0-alpha3]
Note: Updated modules can potentially break your site. It's not recommended to update production sites without prior testing.
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
drush: Failed to backup project directory DRUSH_DRUPAL_ROOT/sites/all/modules/ctools to DRUSH_DRUPAL_ROOT/backup/modules/20090331103753/ctools
PHP Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
PHP Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
PHP Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
PHP Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
PHP Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
PHP Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
PHP Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
Warning: mysqli_real_escape_string(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 323
PHP Warning: mysqli_query(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 108
Warning: mysqli_query(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 108
PHP Warning: mysqli_errno(): Couldn't fetch mysqli in /var/www/html/example.com/html/includes/database.mysqli.inc on line 122
Replaced the actual domain name with example.com for security reasons. The group of PHP warnings was repeated six times before it exited back to the command prompt.
Comments
Comment #1
greg.1.anderson commentedpm-update moved to Drush project. Presumed fixed; please-re-open if problems still persist.
Comment #2
izkreny commentedHello.
I tried to update diff module with this command: drush up diff --backup-dir=/home/users/mm/backup/ktest -d
This is output (I stripped-down and replaced sensitive data):
If I just run drush up diff module is upgraded without problems.
Version of PHP:
and /home/users/mm/backup/ktest folder have 2777 permissions..
Please let me know if maybe I need to open new issue or more data is needed..
Comment #3
greg.1.anderson commentedpm-updatecode works for me if the directory specified by --backup-dir is on the same volume as the project being updated. If I specify a --backup-dir that is on a different volume, then I get:
This is similar to what you're getting, but slightly different. Different messages for different php versions, maybe? (Mine is subtly different than yours: PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7)
According to the php rename manual page:
However, it does not seem that the same is necessarily true for directories. Perhaps backup.inc should be using
drush_core_call_rsync()to copy to the backup directory. In this case, the download should be done to a temporary directory, and the updated version should be copied back over with rsync --delete, just as Owen suggests in #759906: Update core without moving core files out of the way..@mariomaric: If this looks right to you, then I'll close this issue as a duplicate of #759906.
Comment #4
izkreny commentedYup, I can confirm - tested on VirtualBox Ubuntu 9.10 virtual machine with only one partition - it is working.
It is perfectly OK to close this issue if solving #759906: Update core without moving core files out of the way. will take care of this problem. ;)
Marked as duplicate, tnx for feedback Greg.