【问题标题】:drush up drupal fails on _drush_recursive_copydrush up drupal 在 _drush_recursive_copy 上失败
【发布时间】:2019-03-24 14:00:38
【问题描述】:

我无法使用 drush 8.1.17 升级到 drupal 8.6.2。不幸的是,drush 没有提供失败的原因。我不知道接下来要做什么,甚至不知道如何进一步调试它。任何帮助表示赞赏,在此先感谢。

它遵循命令$ drush --debug up drupal 的摘录,您可以找到(几乎)完整的日志here(我只删除了 untar 输出以获得更小的文件,以便可以粘贴到 pastebin 上)

Calling chdir(/var/www/html) [94.7 sec, 14.02 MB]                                                                                                               [debug]
Calling is_readable(/tmp/drush_tmp_1539963315_5bc9f9b34e37c/drupal-8.6.2) [94.7 sec, 14.02 MB]                                                                  [debug]
Calling is_writable(/var/www/html) [94.7 sec, 14.02 MB]                                                                                                         [debug]
Calling rename(/tmp/drush_tmp_1539963315_5bc9f9b34e37c/drupal-8.6.2, /var/www/html/drupal-8.6.2) [94.7 sec, 14.02 MB]                                           [debug]
Calling _drush_recursive_copy(/tmp/drush_tmp_1539963315_5bc9f9b34e37c/drupal-8.6.2, /var/www/html/drupal-8.6.2) [94.7 sec, 14.02 MB]                            [debug]
Unable to copy /tmp/drush_tmp_1539963315_5bc9f9b34e37c/drupal-8.6.2 to /var/www/html/drupal-8.6.2. [116.8 sec, 14.02 MB]                                        [error]
Unable to move /tmp/drush_tmp_1539963315_5bc9f9b34e37c/drupal-8.6.2 to /var/www/html/drupal-8.6.2. [116.8 sec, 14.02 MB]                                        [error]
Updating project drupal failed. Attempting to roll back to previously installed version. [116.8 sec, 14.02 MB]                                                  [error]
Returned from hook drush_pm_updatecode [116.8 sec, 13.92 MB]                                                                                                    [debug]
Rolling back update of Drupal core code ... [116.8 sec, 13.92 MB]                                                                                              [notice]
Verifying signature for svn version control engine. [116.8 sec, 13.92 MB]                                                                                       [debug]
Executing: svn info drupal-8.6.2
  sh: 1: svn: not found
Verifying signature for bzr version control engine. [117.1 sec, 10.88 MB]                                                                                       [debug]
Executing: bzr root drupal-8.6.2
  sh: 1: bzr: not found
Calling drush_delete_dir(/var/www/html/drupal-8.6.2, 1) [117.2 sec, 10.88 MB]                                                                                   [debug]
Calling is_readable(/var/www/drush-backups/the_site_com/20181019153440/drupal) [121.8 sec, 10.88 MB]                                                         [debug]
Calling is_writable(/var/www/html) [121.8 sec, 10.88 MB]                                                                                                        [debug]
Calling rename(/var/www/drush-backups/the_site_com/20181019153440/drupal, /var/www/html/drupal-8.6.2) [121.8 sec, 10.88 MB]                                  [debug]
Backups were restored successfully. [121.8 sec, 10.88 MB]                                                                                                          [ok]

一些可能有用的信息:

root@host:/var/www/html# su www-data -s /bin/bash -c 'drush --version'
 Drush Version   :  8.1.17

root@host:/var/www/html# su www-data -s /bin/bash -c 'drush core-status'
 Drupal version                  :  8.5.3
 Site URI                        :  http://default
 Database driver                 :  mysql
 Database hostname               :  the-database-hostname
 Database port                   :
 Database username               :  the-database-username
 Database name                   :  the-database-name
 Database                        :  Connected
 Drupal bootstrap                :  Successful
 Drupal user                     :
 Default theme                   :  mytheme
 Administration theme            :  seven
 PHP configuration               :  /usr/local/etc/php/php.ini
 PHP OS                          :  Linux
 Drush script                    :  /usr/local/bin/drush
 Drush version                   :  8.1.17
 Drush temp directory            :  /tmp
 Drush configuration             :
 Drush alias files               :
 Install profile                 :  standard
 Drupal root                     :  /var/www/html
 Drupal Settings File            :  sites/default/settings.php
 Site path                       :  sites/default
 File directory path             :  sites/default/files
 Temporary file directory path   :  /tmp
 Sync config path                :  sites/default/files/config_xeVhGsWgDSMcUJNlA97zQiNNekC93e2MhX5aEtO5UcOtKQnwq7fjEB9K6Bk15kj53APj6h8Ibg/sync

【问题讨论】:

    标签: drupal drush


    【解决方案1】:

    这可能很容易解释。

    Drupal 8 现在需要 Drush 9。

    请参阅http://docs.drush.org/en/master/install 上的图表。 D8.3- 表示使用 Drush 8 你​​的 Drupal 不能大于或等于 8.3

    我不知道您的项目已经走了多远。但是您可以考虑使用drupal-composer/drupal-project 重新启动,它已经始终具有正确的 Drush 版本作为本地依赖项。它还会告诉您不要再用 Drush 更新 Drupal。用 Composer 来代替。

    【讨论】:

      猜你喜欢
      • 2014-03-07
      • 2015-12-23
      • 2012-10-23
      • 2012-05-01
      • 2012-07-30
      • 2011-11-12
      • 2015-03-26
      • 1970-01-01
      • 2017-03-01
      相关资源
      最近更新 更多