Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
Core Commands
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Jul 2013 at 22:15 UTC
Updated:
11 Sep 2013 at 12:05 UTC
Hello,
I am encountering an issue with "drush archive-dump --destination=/var/www/backup/backup.tar.gz" where the sql database file is missing from the archive. I think it started happening after I updated drush through the command line using "drush dl drush". The debug is as follows:
[paul@42783 production]$ drush archive-dump --destination=/var/www/backup/backup.tar.gz -d Bootstrap to phase 0. [0 sec, 3.46 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 3.65 MB] [bootstrap]
Cache HIT cid: 5.9-commandfiles-0-7008d9a54a97efffb4c9f416cc74e26b [0.01 sec, 3.67 MB] [debug]
Bootstrap to phase 0. [0.04 sec, 7.76 MB] [bootstrap]
Bootstrap to phase 2. [0.05 sec, 7.76 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.05 sec, 7.76 MB] [bootstrap]
Initialized Drupal 7.22 root directory at /var/www/html/production [0.07 sec, 9.19 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.07 sec, 9.19 MB] [bootstrap]
Initialized Drupal site default at sites/default [0.07 sec, 9.2 MB] [notice]
Cache HIT cid: 5.9-commandfiles-2-d0694fde84f442a7d33c2119cff575f2 [0.07 sec, 9.2 MB] [debug]
Found command: archive-dump (commandfile=archive) [0.08 sec, 9.89 MB] [bootstrap]
Backend invoke: /usr/bin/php /usr/share/pear/drush/drush.php --php=/usr/bin/php --backend=2 --verbose --debug --root=/var/www/html/production --uri=http://default sql-conf --all 2>&1 [command]
[0.17 sec, 10.27 MB]
/usr/bin/php /usr/share/pear/drush/drush.php --php=/usr/bin/php --backend=2 --verbose --debug --root=/var/www/html/production --uri=http://default sql-conf --all 2>&1 [0.17 sec, [notice]
10.28 MB]
The external command could not be executed due to an application error. [0.39 sec, 10.29 MB] [error]
DB definition not found for @self [0.39 sec, 10.28 MB] [notice]
Calling chdir(/var/www/html/production) [0.39 sec, 10.28 MB] [debug]
Calling chdir(/var/www/html/production) [0.39 sec, 10.28 MB] [debug]
Calling chdir(/var/www/html) [0.39 sec, 10.28 MB] [debug]
Executing: tar --exclude "production/sites" --dereference -cf /var/www/backup/none.20130731_213633.tar production
Calling chdir(/var/www/html/production) [0.45 sec, 10.29 MB] [debug]
Calling chdir(/var/www/html) [0.45 sec, 10.29 MB] [debug]
Executing: tar --dereference -rf /var/www/backup/none.20130731_213633.tar production/sites/all
Calling chdir(/var/www/html/production) [0.65 sec, 10.29 MB] [debug]
Calling chdir(/var/www/html) [0.65 sec, 10.29 MB] [debug]
Executing: tar --dereference -rf /var/www/backup/none.20130731_213633.tar production/sites/example.sites.php
Calling chdir(/var/www/html/production) [0.68 sec, 10.29 MB] [debug]
Calling chdir(/var/www/html) [0.68 sec, 10.29 MB] [debug]
Executing: tar --dereference -rf /var/www/backup/none.20130731_213633.tar production/sites/default/default.settings.php
Calling chdir(/var/www/html/production) [0.71 sec, 10.29 MB] [debug]
Backend invoke: /usr/bin/php /usr/share/pear/drush/drush.php --php=/usr/bin/php --backend=2 --verbose --debug --root=/var/www/html/production --uri=http://default core-status 2>&1 [command]
[0.74 sec, 10.31 MB]
/usr/bin/php /usr/share/pear/drush/drush.php --php=/usr/bin/php --backend=2 --verbose --debug --root=/var/www/html/production --uri=http://default core-status 2>&1 [0.74 sec, 10.31 MB] [notice]
Bootstrap to phase 0. [0 sec, 3.46 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 3.65 MB] [bootstrap]
Cache HIT cid: 5.9-commandfiles-0-7008d9a54a97efffb4c9f416cc74e26b [0.01 sec, 3.67 MB] [debug]
Bootstrap to phase 0. [0.84 sec, 7.76 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.85 sec, 7.76 MB] [bootstrap]
Initialized Drupal 7.22 root directory at /var/www/html/production [0.86 sec, 9.19 MB] [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.86 sec, 9.2 MB] [bootstrap]
Initialized Drupal site default at sites/default [0.86 sec, 9.2 MB] [notice]
Cache HIT cid: 5.9-commandfiles-2-c32acd775c18a90c5b41d0fc9accf5ab [0.87 sec, 9.2 MB] [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.87 sec, 9.23 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.87 sec, 9.25 MB] [bootstrap]
Successfully connected to the Drupal database. [0.88 sec, 9.25 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.89 sec, 10.17 MB] [bootstrap]
Cache HIT cid: 5.9-commandfiles-5-6cd87c7e4fac82ee2379d107d8e8d2c5 [1.4 sec, 50.07 MB] [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_login() [1.4 sec, 50.66 MB] [bootstrap]
Successfully logged into Drupal as Guest (uid=0) [1.4 sec, 50.67 MB] [bootstrap]
Found command: core-status (commandfile=core) [1.4 sec, 50.67 MB] [bootstrap]
Drupal version : 7.22
Site URI : http://default
Database driver : mysql
Database hostname : localhost
Database username : root
Database name : production
Database : Connected
Drupal bootstrap : Successful
Drupal user : Anonymous
Default theme : custom
Administration theme : seven
PHP configuration : /etc/php.ini
Drush version : 5.9
Drush configuration :
Drupal root : /var/www/html/production
Site path : sites/default
File directory path : sites/default/files
Temporary file directory path : /tmp
Command dispatch complete [1.43 sec, 50.98 MB] [notice]
Timer Cum (sec) Count Avg (msec)
page 0.558 1 558.33
Peak memory usage was 52.2 MB [1.43 sec, 50.97 MB] [memory]
Calling chdir(/var/www/html) [1.51 sec, 10.35 MB] [debug]
Executing: tar --dereference -rf /var/www/backup/none.20130731_213633.tar production/sites/default
Calling chdir(/var/www/html/production) [1.96 sec, 10.35 MB] [debug]
Undefined index: @self archive.drush.inc:250 [1.96 sec, 10.36 MB] [notice]
Undefined index: @self archive.drush.inc:251 [1.96 sec, 10.36 MB] [notice]
Calling chdir(/tmp/drush_tmp_1375306594_51f983620c87e) [1.96 sec, 10.36 MB] [debug]
Executing: tar --dereference -rf /var/www/backup/none.20130731_213633.tar MANIFEST.ini
Calling chdir(/var/www/html/production) [2.04 sec, 10.36 MB] [debug]
Calling chdir(/var/www/html) [2.04 sec, 10.36 MB] [debug]
Executing: tar -tf /var/www/backup/none.20130731_213633.tar production/sites/default/default.settings.php
production/sites/default/default.settings.php
production/sites/default/default.settings.php
Calling chdir(/var/www/html/production) [2.12 sec, 10.37 MB] [debug]
Executing: gzip --no-name -f /var/www/backup/none.20130731_213633.tar
Calling is_readable(/var/www/backup/none.20130731_213633.tar.gz) [13.89 sec, 10.37 MB] [debug]
Calling is_writable(/var/www/backup) [13.89 sec, 10.37 MB] [debug]
Calling rename(/var/www/backup/none.20130731_213633.tar.gz, /var/www/backup/backup.tar.gz) [13.89 sec, 10.37 MB] [debug]
Archive saved to /var/www/backup/backup.tar.gz [13.89 sec, 10.37 MB] [ok]
Command dispatch complete [13.89 sec, 10.28 MB] [notice]
Peak memory usage was 11.88 MB [13.89 sec, 10.27 MB] [memory]
The only error from the above output is:
The external command could not be executed due to an application error. [0.39 sec, 10.29 MB] [error]
I also tried running "drush sql-dump --result-file=../backup/production.sql" to download the sql file separately and I received the following error:
PHP Fatal error: Cannot redeclare runserver_drush_help() (previously declared in /usr/share/pear/drush/commands/runserver/runserver.drush.inc:30) in /var/www/html/production/sites/all/modules/drush/commands/runserver/runserver.drush.inc on line 40
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Cannot redeclare runserver_drush_help() (previously declared in /usr/share/pear/drush/commands/runserver/runserver.drush.inc:30) in
/var/www/html/production/sites/all/modules/drush/commands/runserver/runserver.drush.inc, line 40 [0.15 sec, 9.86 MB]
Is Drush supposed to be installed in two locations on the server? Any help with getting this to work properly would be much appreciated.
Server: Centos 6.4
PHP: 5.3.3
MYSQL: 5.1.69
Thanks
Paul
Comments
Comment #1
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If you still need help, please ask your question again on Drupal Answers and then post a link here to the new question. Please also change the status of this issue to
closed (duplicate).Use our Github project for contributing code, or reporting bugs, or requesting features.